Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
help me
 
Posts: n/a
Default Dates Subtracting dates.

first of all I would like to have one row with any date in it (formated for a
regular date) example 12/15/04, in the next cell I would like to have
computed the number of the day in the year example 01/10/03 is the 10th day
of the year so that cell would have a 10 in it.

another example is to day 12/15/04 which is day 350.
  #2   Report Post  
John Mansfield
 
Posts: n/a
Default

In cell A1 add the date 12/31/2004. In cell B1 add the date 01/01/2004. In
cell C1 add the formula "=A1-B1". Change the format in cell C1 to "Number"
(go to the standard toolbar and hit Format - Cells - Number with decimal
places equal to zero).

----
Regards,
John Mansfield
http://www.pdbook.com

"help me" wrote:

first of all I would like to have one row with any date in it (formated for a
regular date) example 12/15/04, in the next cell I would like to have
computed the number of the day in the year example 01/10/03 is the 10th day
of the year so that cell would have a 10 in it.

another example is to day 12/15/04 which is day 350.

  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 16 Dec 2004 16:11:01 -0800, "help me"
wrote:

first of all I would like to have one row with any date in it (formated for a
regular date) example 12/15/04, in the next cell I would like to have
computed the number of the day in the year example 01/10/03 is the 10th day
of the year so that cell would have a 10 in it.

another example is to day 12/15/04 which is day 350.



=A1-DATE(YEAR(A1),1,0)

Format as Number with 0 decimal places.


--ron
  #4   Report Post  
help me
 
Posts: n/a
Default

THANK YOU THIS IS EXACTLY WHAT I WAS LOOKING FOR.

"Ron Rosenfeld" wrote:

On Thu, 16 Dec 2004 16:11:01 -0800, "help me"
wrote:

first of all I would like to have one row with any date in it (formated for a
regular date) example 12/15/04, in the next cell I would like to have
computed the number of the day in the year example 01/10/03 is the 10th day
of the year so that cell would have a 10 in it.

another example is to day 12/15/04 which is day 350.



=A1-DATE(YEAR(A1),1,0)

Format as Number with 0 decimal places.


--ron

  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 16 Dec 2004 19:17:05 -0800, "help me"
wrote:

THANK YOU THIS IS EXACTLY WHAT I WAS LOOKING FOR.


You're welcome. Thanks for the feedback.


--ron


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
grouping dates by week/month/etc. on cat. axis Kamal Hood Charts and Charting in Excel 4 January 23rd 05 10:06 AM
Ploting dates against a calendar and not as a simple events Barb Reinhardt Charts and Charting in Excel 2 January 22nd 05 02:41 AM
Can I get email alerts when dates in excel are nearing? lucrecat Excel Discussion (Misc queries) 2 December 14th 04 05:14 AM
Dates pjd Excel Discussion (Misc queries) 3 December 8th 04 03:44 AM
Dates in spreadsheets Robert Newman Excel Discussion (Misc queries) 2 December 2nd 04 10:03 AM


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