Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula for converting xx/xx/xxxx dates to a number between 1 and

I need an Excel formula to convert a date (mm/dd/yyyy) to a serial number,
i.e. January 1st = 001, 1st February = 032, 31st and so on to December 31st =
365 . The serial number needs to reset to 001 on Jan 1st of each new year.

Is there a quick way to convert any given date from any given year to this
3-digit day number?

Thanks in advance,
Rodney

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Formula for converting xx/xx/xxxx dates to a number between 1 and

If the date is in excel date format try the below formula with a date in cell
A1

'as text
=TEXT(A1-DATE(YEAR(A1),1,1)+1,"000")

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

If this post helps click Yes
---------------
Jacob Skaria


"Rodney Reed" wrote:

I need an Excel formula to convert a date (mm/dd/yyyy) to a serial number,
i.e. January 1st = 001, 1st February = 032, 31st and so on to December 31st =
365 . The serial number needs to reset to 001 on Jan 1st of each new year.

Is there a quick way to convert any given date from any given year to this
3-digit day number?

Thanks in advance,
Rodney

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Formula for converting xx/xx/xxxx dates to a number between 1 and

You can save a mathematical operation like this...

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

Note to OP... you will probably have to format the cells as General.

--
Rick (MVP - Excel)


"Jacob Skaria" wrote in message
...
If the date is in excel date format try the below formula with a date in
cell
A1

'as text
=TEXT(A1-DATE(YEAR(A1),1,1)+1,"000")

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

If this post helps click Yes
---------------
Jacob Skaria


"Rodney Reed" wrote:

I need an Excel formula to convert a date (mm/dd/yyyy) to a serial
number,
i.e. January 1st = 001, 1st February = 032, 31st and so on to December
31st =
365 . The serial number needs to reset to 001 on Jan 1st of each new
year.

Is there a quick way to convert any given date from any given year to
this
3-digit day number?

Thanks in advance,
Rodney


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
Dates converting to MS serial number Marco Excel Discussion (Misc queries) 3 March 19th 08 01:09 AM
How do I changet a text telephone number (xxx) xxx-xxxx to xxxxxx. Bayou Johnny Excel Worksheet Functions 2 September 19th 07 02:20 AM
Format a number (i.e. 1111111111111111) to show XXXX-XXXX-1111-11 rjbind Excel Discussion (Misc queries) 1 July 13th 07 03:45 AM
change dots to dashes in an account format (xx.xxxx.xxxx) to xx-xx Michael Excel Discussion (Misc queries) 1 July 1st 05 10:44 PM
Converting dates to a number Kathy New Users to Excel 3 April 27th 05 09:18 AM


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