Formulas slowing down spreadsheet

Corleone

Well-known Member
Joined
Feb 2, 2003
Messages
841
Office Version
  1. 365
Good morning
I have a spreadsheet with a number of tabs on it
I recently changed the formula set up on one of the tabs so that when the main tab containing activities was filtered, the graphs would then reflect the filtered data.

Im sure there are other ways i could set it up so the graphs dynamically, but for now im looking for a solution without having to change the set up too much.

Anyway.. using the formulas below work perfectly fine, however it slows the spreadsheet down significantly with the calculation processes it now has to run through (there are around 14,000 of these formulas on the sheet)
Is there a way of producing the same formula but one which runs quicker

=SUMPRODUCT(SUBTOTAL(3,OFFSET(ACTIVITIES!$C$2,ROW(ACTIVITIES!$C$2:$C$5000)-ROW(ACTIVITIES!$C$2),0,1)),--(ACTIVITIES!$C$2:$C$5000=$A3),--(ACTIVITIES!$N$2:$N$5000=C$1))

Im using Excel 2010

Thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Add a new column on the ACTIVITIES sheet that does the Subtotal part:

=SUBTOTAL(3,C2)

and then use that column (let's say it's column Z) in your SUMPRODUCT formula so that you can at least skip the volatile OFFSET part:

=SUMPRODUCT(ACTIVITIES!$Z$2:$Z$5000,(ACTIVITIES!$C$2:$C$5000=$A3)*(ACTIVITIES!$N$2:$N$5000=C$1))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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