Sumif worksheet recalc process

cb366374

Board Regular
Joined
Feb 25, 2012
Messages
95
Regarding how SUMIF recalculates...I have a large worksheet with many grouped rows (1600+) and 115k sumif formulas with a pretty crazy dependency tree. Each time an input changes or a group of rows is expanded the worksheet recalculates and it takes quite some time.

Assuming a sumif is referring to a column (call it A), checking against some criteria, and then summing column B, if I alter a cell in column B where the criteria does NOT hold true, does it still trigger a recalc? Most of the 115k sumif functions refer to a large column of numbers but few rows within that column should pass the criteria test. Based upon the performance of the spreadsheet, it appears they are all recalculating, not just the ones that the row passes the criteria. Just trying to debug this thing and hoping this information could help. Thanks in advance!

In the example below, if I change Washington to 600, will it trigger the sumif() function also?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Oregon[/TD]
[TD]1400[/TD]
[/TR]
[TR]
[TD]Washington[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]Oregon[/TD]
[TD]600[/TD]
[/TR]
[TR]
[TD]Idaho[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]=sumif(A1:A4,"Oregon",B1:B4)[/TD]
[/TR]
</tbody>[/TABLE]
 
I will try to pull something together if we can't figure it out in the next day or two. It would be fairly complicated to replicate, even a scaled down version. I'll try to report back either way.

Another thing I noticed, when I remove the frozen panes, it seems to run the FastExcel "FullCalc Sheet" much faster (from 30+ seconds to 0.5 seconds). But even after removing the freeze, it still takes a while to expand/collapse groups of rows. I think there are still a lot of dependent formulas firing once the row expansion/collapse causes the recalc. Identifying those formulas has proved difficult but we're making progress. Thanks for your help thus far.
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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