Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Sequentially adding a day to total


A B C D E F G
H
4 | Month | J J A S O N
Year to date
5 | Heading | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 3.00
|

In the above example, the letters above the numbers identify the month.
(J-June J-July A-Aug S-Sept O-Oct N-Nov and the numbers are money)

I am looking for a formula that will add only the numbers in row 5 up to the
current month but not past that. So above, I wish it to add June, July and
Aug in this example.

At the end of August, I wish the formula to know that we are in September
now and Add the total from September to the previous months (Row 5, column
B,C and D)

This formula is for a calendar year.

Thank you in advance for your help.

-BadBoy
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Sequentially adding a day to total


A B C D E F G H
4 |Month| J J A S O N YTD
5 |Heading|1.00|1.00|1.00|1.00|1.00|1.00| 3.00

In the above example, the letters above the numbers identify the month.
(J-June J-July A-Aug S-Sept O-Oct N-Nov and the numbers are money)

I am looking for a formula that will add only the numbers in row 5 up to the
current month but not past that. So above, I wish it to add June, July and
Aug in this example.

At the end of August, I wish the formula to know that we are in September
now and Add the total from September to the previous months (Row 5, column
B,C and D)

This formula is for a calendar year.

Thank you in advance for your help.

-BadBoy

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default Sequentially adding a day to total

If your months go up to only December
=SUMPRODUCT(--(COLUMN(A5:G5)+5<=MONTH(A1)),A5:G5)

If you have a full year and the last month (May) money value is in L5
=IF(AND(MONTH(TODAY())5,MONTH(TODAY())<12),SUMPRO DUCT(--(COLUMN(A5:G5)+5<=MONTH(TODAY())),A5:G5),SUM(A5:G5 )+SUMPRODUCT(--(COLUMN(H5:L5)-7<=MONTH(TODAY())),H5:L5))

Caveat: I have assumed that since today is Sept 2, you meant to add Sept
values
So I am summing months up to and including current month
If you need to sum only completed months so adjustment is needed: repalce =<
by <
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"BadBoy" wrote in message
...

A B C D E F G
H
4 | Month | J J A S O N
Year to date
5 | Heading | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 3.00
|

In the above example, the letters above the numbers identify the month.
(J-June J-July A-Aug S-Sept O-Oct N-Nov and the numbers are money)

I am looking for a formula that will add only the numbers in row 5 up to
the
current month but not past that. So above, I wish it to add June, July and
Aug in this example.

At the end of August, I wish the formula to know that we are in September
now and Add the total from September to the previous months (Row 5, column
B,C and D)

This formula is for a calendar year.

Thank you in advance for your help.

-BadBoy



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Sequentially adding a day to total

Bernard, you're the best man!

Thank you so much for your help :P

"Bernard Liengme" wrote:

If your months go up to only December
=SUMPRODUCT(--(COLUMN(A5:G5)+5<=MONTH(A1)),A5:G5)

If you have a full year and the last month (May) money value is in L5
=IF(AND(MONTH(TODAY())5,MONTH(TODAY())<12),SUMPRO DUCT(--(COLUMN(A5:G5)+5<=MONTH(TODAY())),A5:G5),SUM(A5:G5 )+SUMPRODUCT(--(COLUMN(H5:L5)-7<=MONTH(TODAY())),H5:L5))

Caveat: I have assumed that since today is Sept 2, you meant to add Sept
values
So I am summing months up to and including current month
If you need to sum only completed months so adjustment is needed: repalce =<
by <
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"BadBoy" wrote in message
...

A B C D E F G
H
4 | Month | J J A S O N
Year to date
5 | Heading | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 3.00
|

In the above example, the letters above the numbers identify the month.
(J-June J-July A-Aug S-Sept O-Oct N-Nov and the numbers are money)

I am looking for a formula that will add only the numbers in row 5 up to
the
current month but not past that. So above, I wish it to add June, July and
Aug in this example.

At the end of August, I wish the formula to know that we are in September
now and Add the total from September to the previous months (Row 5, column
B,C and D)

This formula is for a calendar year.

Thank you in advance for your help.

-BadBoy




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding data sequentially Dave Newman Excel Discussion (Misc queries) 1 March 28th 07 03:01 AM
KEEPING THE TOTAL IN C3 WHEN ADDING B3 bouncer8 Excel Discussion (Misc queries) 3 August 19th 06 01:21 AM
KEEPING THE TOTAL IN C3 WHEN ADDING B3 bouncer8 Excel Discussion (Misc queries) 1 August 18th 06 02:41 PM
Adding Data Using Multiple Worksheets to Total into a Grand Total Lillie Excel Worksheet Functions 1 April 19th 05 08:34 PM
adding total business....how to? Juco Excel Worksheet Functions 3 January 10th 05 11:14 PM


All times are GMT +1. The time now is 02:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"