Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bdsirius
 
Posts: n/a
Default Is there a way to calulate M-T-D or Y-T-D in Excelt?

Data is being entered on a daily basis into Excel. Each day the total for
the month or year needs to be summed.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ragdyer
 
Posts: n/a
Default Is there a way to calulate M-T-D or Y-T-D in Excelt?

Column labels in Row1.
Dates in Column A.
Data in Column B, from B2 to B366
Enter this formula in C2, and copy down to C366:

=IF(B2,SUM($B$2:B2),"")
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"bdsirius" wrote in message
...
Data is being entered on a daily basis into Excel. Each day the total for
the month or year needs to be summed.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Is there a way to calulate M-T-D or Y-T-D in Excelt?

Hi
With your dates in column A and values in column B and assuming that row 1
contains headers then set up a series of dates in say column F2:F14 with
dates for the Year in question e.g. 1/1/05, 1/2/05, .... 1/12/05 (note these
are UK style dates, change to date format for your locality).

Put a heading in G1 Month Sales, in H1 Year to Date Sales
in G2
=SUMPRODUCT(--(MONTH($A$2:$A$1000)=MONTH($F2)),$B$2:$B$1000)
copy down through G3:G14
In H2
=SUMPRODUCT(--(YEAR($A$2:$A$1000)=YEAR($F2)),$B$2:$B$1000)

If you only wanted data for the year to date and the current month to date,
then for the month value use
=SUMPRODUCT(--(MONTH($A$2:$A$1000)=MONTH(TODAY())),$B$2:$B$1000)

Regards

Roger Govier


bdsirius wrote:
Data is being entered on a daily basis into Excel. Each day the total for
the month or year needs to be summed.

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
One worksheet to calulate different items simultaneously John Excel Worksheet Functions 4 November 28th 05 07:07 PM
how to calulate time in hours cbetween two different dates? shonkoo Excel Worksheet Functions 3 October 30th 05 03:30 AM
Need to calulate a sum for once a month X #days X #times used per. pattyh Excel Worksheet Functions 0 September 28th 05 05:07 PM
how to calulate time unique New Users to Excel 1 July 5th 05 05:26 PM


All times are GMT +1. The time now is 03:04 AM.

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"