Help in developing Formula for count

hemantsharma88

New Member
Joined
Mar 28, 2013
Messages
1
Hi frnds need your help, below is query

in below data i want to count the no of months till the amount sum upto alleast 25. like in this case count is 5 because till may amount is 25 plus. how can i put this in formula as i have more than 200 rows and hve to calculate till wht month desired amount is achieved which is 25 in this case.
Monthamt
jan 12
feb3
mar4
apr5
may6
june7
july8

<TBODY>
</TBODY>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi,

You can have in cell C2:

Code:
=sum($B$2:B2)

and then copy formula down in Column C

HTH
 
Upvote 0
Hi frnds need your help, below is query

in below data i want to count the no of months till the amount sum upto alleast 25. like in this case count is 5 because till may amount is 25 plus. how can i put this in formula as i have more than 200 rows and hve to calculate till wht month desired amount is achieved which is 25 in this case.
Month
amt
jan
12
feb
3
mar
4
apr
5
may
6
june
7
july
8

<TBODY>
</TBODY>

Hello and welcome,
=MIN(IF(SUBTOTAL(109,OFFSET(B2,0,0,ROW(B2:B200)-ROW(A2)+1,1))>C1,ROW(B2:B200)-ROW(B2)+1))
Confirm COntrol+shift+enter
 
Upvote 0

Forum statistics

Threads
1,203,617
Messages
6,056,312
Members
444,858
Latest member
ucbphd

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