Prev Previous Post   Next Post Next
  #10   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 17 Dec 2004 13:03:06 -0800, "Jake"
wrote:

Is there a way to get excel to output the numerical value of today’s day of
the month? For example, today is 12/17/04. I want the value in the cell to
be “17” today. When I open the file tomorrow, I want it to automatically
change to “18”. I have figured out how to get excel to DISPLAY these numbers
(=today(), then change formatting to custom date, dd). However, the true
value of the cell is still the date code (in this example, 38338). So if I
multiply that cell by 1, the result is 38338, not 17. I want 17. Can this
be done?


=DAY(TODAY())


To give a bit more detail on why I want to do this – I want to be able to
calculate the percentage of this month that is complete. So I want to have a
ratio that equals today’s date divided by the number of days in the month.
Right now, I manually update a cell to today’s day every time I open the
spreadsheet but I want excel to update automatically.


=DAY(TODAY())/DAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,0))

=17/31

=0.548387097




--ron


 
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
Date updates from worksheet to chart & changes date to a date series! Help!! Jayjg Charts and Charting in Excel 2 January 22nd 05 03:00 PM
Date Formula Robyn Bellanger Excel Discussion (Misc queries) 2 December 17th 04 07:25 PM
Date formula Robyn Bellanger Excel Discussion (Misc queries) 2 December 16th 04 12:41 AM
Problem with Date format from VBA code twig Excel Discussion (Misc queries) 3 December 7th 04 06:01 PM
How do I convert a Julian date into a regular date? Jessica Excel Discussion (Misc queries) 4 December 2nd 04 02:54 AM


All times are GMT +1. The time now is 08:54 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"