Adding Progressive Months Totals

B

BadBoy

Row 3 Column B Apr-09
Row 5 Column B 17,293

Row 3 Column C May-09
Row 5 Column c 16,849

Row 3 Column D Jun-09
Row 5 Column D 17,364

Row 3 Column E Jul-09
Row 5 Column E 24,066

Row 3 Column F Aug-09
Row 5 Column F 17,151

Row 3 Column G Sep-09
Row 5 Column G 17,151

Row 3 Column H Oct-09
Row 5 Column H 17,151

Row 3 Column I Nov-09
Row 5 Column I 16,372

Row 3 Column J Dec-09
Row 5 Column J 17,940

Row 3 Column K Jan-10
Row 5 Column K 16,440

Row 3 Column L Feb-10
Row 5 Column L 15,666

Row 3 Column M Mar-10
Row 5 Column M 28,663


Row 3 Column N Year To Date Totals
Row 5 Column N 92,723

I am looking for a formula to place in Row 5 Column N, that will add the
numbers from all months before the our current month (September) starting
with April.

Next month, I wish it to add April through September.

The following month add April through October and so on.

Each month it will add all months before the month we are currently in.


I would be so darn happy if this can be done.

Thank you in advance.

-Bad
 
J

Jacob Skaria

One way

Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula>}"

=SUM(INDIRECT("B5:" &
CELL("address",OFFSET(B5,0,MATCH(MONTH(TODAY()),MONTH(B3:M3),0)-2))))

If this post helps click Yes
 
P

Pete_UK

Are those Excel dates on row 3, formatted to mmm-yy, or are they text
strings?

If they are dates then you could use a formula like this in N5:

=SUMPRODUCT((MONTH(B3:M3)<MONTH(TODAY()))*(YEAR(B3:M3)=YEAR(TODAY
())),B5:M5)

Hope this helps.

Pete
 
B

BadBoy

Thank you so much! You have done it!

Well done.

May I ask though, my total shows 301,369.43 but it should actually read
301,370

Can this be fixed?
 
B

BadBoy

Thank you Pete :p

Pete_UK said:
Are those Excel dates on row 3, formatted to mmm-yy, or are they text
strings?

If they are dates then you could use a formula like this in N5:

=SUMPRODUCT((MONTH(B3:M3)<MONTH(TODAY()))*(YEAR(B3:M3)=YEAR(TODAY
())),B5:M5)

Hope this helps.

Pete
 
B

BadBoy

Ok all good now and thank you both again

Jacob Skaria said:
One way

Please note that this is an array formula. Within the cell in edit mode (F2)
paste this formula and press Ctrl+Shift+Enter to apply this formula. If
successful in 'Formula Bar' you can notice the curly braces at both ends like
"{=<formula>}"

=SUM(INDIRECT("B5:" &
CELL("address",OFFSET(B5,0,MATCH(MONTH(TODAY()),MONTH(B3:M3),0)-2))))

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top