Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
help me
 
Posts: n/a
Default converting dates into numbers

converting a given date to its respective day of the year, by this i mean

January 31st is, day 31 of the year
feb 01 is , day 32 of the year
feb 02 is , day 33 of the year

I would like to enter any given date into one column and the next column to
calculate the day in a number only (1-365 days in a year)
  #2   Report Post  
Paul B
 
Posts: n/a
Default

Here is one way, with date in A1, put this in a cell and format as general

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

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"help me" wrote in message
...
converting a given date to its respective day of the year, by this i mean

January 31st is, day 31 of the year
feb 01 is , day 32 of the year
feb 02 is , day 33 of the year

I would like to enter any given date into one column and the next column

to
calculate the day in a number only (1-365 days in a year)



  #3   Report Post  
JulieD
 
Posts: n/a
Default

Hi

if the dates you've entered include years you can use the following formula

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

format the cell to a number or general after entering.

Cheers
JulieD

"help me" wrote in message
...
converting a given date to its respective day of the year, by this i mean

January 31st is, day 31 of the year
feb 01 is , day 32 of the year
feb 02 is , day 33 of the year

I would like to enter any given date into one column and the next column
to
calculate the day in a number only (1-365 days in a year)



  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

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

format as general since it will probably default to a date

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"help me" wrote in message
...
converting a given date to its respective day of the year, by this i mean

January 31st is, day 31 of the year
feb 01 is , day 32 of the year
feb 02 is , day 33 of the year

I would like to enter any given date into one column and the next column
to
calculate the day in a number only (1-365 days in a year)




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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Sorting imported "numbers" Confused on the tundra Excel Discussion (Misc queries) 5 December 17th 04 07:33 PM
Combo Box Showing numbers not dates Mo Excel Discussion (Misc queries) 1 December 14th 04 05:39 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM
Converting text to numbers Scott Excel Discussion (Misc queries) 3 November 26th 04 09:17 PM


All times are GMT +1. The time now is 02:06 AM.

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"