Calculation Efficiency

mrhstn

Active Member
Joined
Jul 25, 2017
Messages
316
Hi all

I'm looking for a little bit of advice on calculation efficiency.

I have a workbook with around 500,000 formulas all of which are quite cumbersome and it takes in the order of 30 minutes to calculate. I don't think it should be taking as long so I'm wondering where I have gone wrong.

An example formula might be something similar to:

Code:
=IFERROR(SUMIFS(tbl_Metrics[Value], tbl_Metrics[Metric], $A$3, tbl_Metrics[Station], $B4, tbl_Metrics[Week], D$1, tbl_Metrics[Year], D$2)/COUNTIFS(tbl_Metrics[Metric], $A$3, tbl_Metrics[Station], $B4, tbl_Metrics[Week], D$1, tbl_Metrics[Year], D$2), "-")


I do have some where I've got a few array constants so I've wrapped them in a SUMPRODUCT.


Code:
=IFERROR(SUMPRODUCT(SUMIFS(tbl_Metrics[Value], tbl_Metrics[Metric], {"GB*","FR*"}, tbl_Metrics[Station], $B4, tbl_Metrics[Week], D$1, tbl_Metrics[Year], D$2))/SUMPRODUCT(COUNTIFS(tbl_Metrics[Metric], {"GB*","FR*"}, tbl_Metrics[Station], $B4, tbl_Metrics[Week], D$1, tbl_Metrics[Year], D$2)), "-")



tbl_Metrics is near enough 500,000 rows in itself


I've tried splitting the formulas down into helper columns to see if that helped, there was no time saving. I've read over FastExcels article on improving calculation efficiency, which normally helps, but this time I'm a bit stumped.

I'm doing this at work using Excel 2016 (64bit).

Does anyone have any suggestions to help improve performance on this?

TIA
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
You need Computer stronger, Chips stronger, RAM stronger. Or, you must use code VBA change by function top.
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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