# Help in developing Formula for count

#### hemantsharma88

##### New Member
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>

### 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

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

Replies
2
Views
164
Replies
3
Views
183
Replies
7
Views
176
Replies
0
Views
254
Replies
5
Views
363

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.

### Which adblocker are you using?

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

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