Veeery Slow calculation - file 5 to 10MB, a lot of formulas

igeron

New Member
Joined
Oct 25, 2010
Messages
11
Dear Experts,

I built an excel template, to make complex analyses. The template file takes around 4-5mb when empty and close to 10 MB when filled.

I used a lot of If, sumif, countif, sumproduct, offset, names, macros and graphs. Some of the typical formulas;

=IF(D78=0,"",(SUMPRODUCT((OFFSET('Sheet1'!$A$41,,,EEN)=$C$2)*(OFFSET('Sheet1'!$H$41,,,EEN)<14),(OFFSET('Sheet1'!$Z$41,,,EEN))))/$D78)

or

=SUMIF((OFFSET('Sheet1'!$P$41,,,EEN)),$C$2&$C84,OFFSET('Sheet1'!$AG$41,,,EEN))

I had some UDFs, but I removed them to make it faster. Still, even hiding a row takes 2-3 seconds.
Please help, how I can make it faster.

Thanks
Igal
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Try and avoid OFFSET as it is volatile and will recalculate whenever anything in the workbook does. INDEX is usually a better option.
 
Upvote 0
Hi Rorya,

thanks for the tip, index helped much, but still I have some way to go :(
do you think I may have other volitiles or is there a way to spot volitile functions within the file?

I am using a lot of sumproduct and suspect that they may slow the file as well.
 
Upvote 0
See this page (and that site in general) for calculation tips. If you have a lot of SUMPRODUCT, look at using key columns and SUMIF, or pivot tables instead.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top