a SUM formula based on a COUNT value

xljruser

New Member
Joined
Feb 1, 2005
Messages
6
I would like to create a formula which sums up cells from another worksheet. Easy enough. In my current worksheet I have =SUM(August!B1:B10). The other worksheet is the previous month, and my current worksheet is the current month.

But how do I change B10 in the formula above to B11, B12 based on a COUNT in the current sheet. Ie If count in my current worksheet = 12, then replace the B11 to B12. If count=14, then change the B10 to B14 and so on. Currently I do this manually, but sometimes I forget. I guess this is more like a SUM formula based on the result of a COUNT formula.

=sum(Aug!B1:B(the value of the =count cell))


Any ideas?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try

=sum(Aug!B1:B&INDIRECT(count cell address))
 

Forum statistics

Threads
1,141,599
Messages
5,707,311
Members
421,502
Latest member
PULBAG

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
Top