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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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