Excel Recalculation Speed

brenner

Board Regular
Joined
Sep 13, 2007
Messages
96
I want to count the next 12 values within Column C. However, based on the values in column K, there may not be 12 values of the same product code remaining hence the countif formula.

This formula has really slowed down the spreadsheet and I'm looking for a simpler/faster formula


=SUM(OFFSET(C22,0,0,MIN(COUNTIF($K22:K$9313,K22),12),1))

thanks!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I want to count the next 12 values within Column C. However, based on the values in column K, there may not be 12 values of the same product code remaining hence the countif formula.

This formula has really slowed down the spreadsheet and I'm looking for a simpler/faster formula


=SUM(OFFSET(C22,0,0,MIN(COUNTIF($K22:K$9313,K22),12),1))

thanks!

What is the first cell housing this formula?
 
Upvote 0
Or try :

=SUM(C22:INDEX(C22:C10000,MIN(COUNTIF($K22:K$10000,K22),12),0))

Regards
Bosco
 
Upvote 0
sorry for not posting sample data, i'll remember to do that in the future. bosco's solution seems to be the fastest, but thank you all!

Brenner
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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