![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Location: East Sussex
Posts: 33
|
Hello,
I am trying to use the TODAY function to calculate monthly sales based on sales to date, i.e. if today is the 16th, I want to take total sales month-to-date, and extend it to 30/16ths of the sales total. Any ideas? Nanette |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
you could use
=(DAY(DATE(YEAR(NOW()),MONTH(NOW())+1,0)))/DAY(NOW()) as your multiplier. now() used instead of today() to reduce carpel tunnel. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Location: East Sussex
Posts: 33
|
Thank you for your prompt reply. The formula worked well. Now that it is working, I am told that our MTD sales are to YESTERDAY, not today.
How can I modify this formula to calculate yesterday's factor? NW |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
=(DAY(DATE(YEAR(NOW()),MONTH(NOW())+1,0)))/(DAY(NOW())-1)
should do the trick |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
=TREND({0,1}*A1,{0,1}*DAY(TODAY()-1),DAY(EOMONTH(TODAY(),0))) Note: This formula uses the EOMONTH function which is supplied by the Analysis ToolPak. See the Excel Help topic for "Install and use the Analysis ToolPak" if you need to install this add-in. [ This Message was edited by: Mark W. on 2002-04-16 13:52 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|