Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default a Month to Date and Year TD page in one sheet changing each day?

Hi Mark

Not sure if I fully understand your request, but assuming you wanted to
see the totals up to yesterday, whilst inputting today's values then
this can be achieved fairly easily. Obviously, as soon as you open the
sheet tomorrow, values entered today would be included, but then not the
values being input during the day again

With Dates in Column A, starting at row 2, and values in column B,
for Month to date enter in cell C1
=SUMPRODUCT(--(MONTH($A$2:$A$1000)=MONTH(TODAY())),
--($A$2:$A$1000<=--TODAY())-1),$B$2:$B$1000)

For Year to Date enter in cell D1
SUMPRODUCT(--($A$2:$A$1000=DATE(YEAR(TODAY()),1,1)),
--($A$2:$A$1000<=--TODAY()-1),$B$2:$B$1000)

Change the ranges to suit but ensure that they are of equal size.

--
Regards

Roger Govier


"Mark A. Fresh" <Mark A. wrote in
message ...
Can a single Excel worksheet be created to calculate month-to-date and
year-to-date with input on a daily basis, changing the daily input,
but
keeping the previous values for MTD and YTD?



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 month and year to form date Dino Excel Discussion (Misc queries) 2 November 18th 05 01:59 AM
counting date entries by month & year Di Excel Worksheet Functions 7 August 24th 05 08:39 PM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
create a date from year, day and month Baerbel Excel Worksheet Functions 3 November 13th 04 06:46 PM
Combine & Display “Fixed” & “Automatically Updated” Date Parts texcel Excel Worksheet Functions 1 November 1st 04 05:38 PM


All times are GMT +1. The time now is 05:53 PM.

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

About Us

"It's about Microsoft Excel"