Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default Date to number conversion

I need a formula that tells me the day of the year for a date. For example:

06/23/2008 = 175
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default Date to number conversion

With the date in cell A1: =A1-DATE(YEAR(A1),1,0)

"Byron720" wrote:

I need a formula that tells me the day of the year for a date. For example:

06/23/2008 = 175

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Date to number conversion

The following function will produce the Julian date you requested.
Substitute the cell address A1 with the cell that contains the date:

=A1-DATE(2008,1,0)

You will probably have to format the cell for a number format of 0 decimals
as it will pick up the data format from the date cell.
--
Kevin Backmann


"Byron720" wrote:

I need a formula that tells me the day of the year for a date. For example:

06/23/2008 = 175

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
stop number to date conversion jeffrey Setting up and Configuration of Excel 2 April 26th 08 08:50 PM
Number Conversion Tim Kuhn Excel Worksheet Functions 2 December 20th 07 05:31 PM
Number Conversion badpuppie Excel Discussion (Misc queries) 7 June 2nd 05 03:42 PM
Number conversion Chance224 Excel Discussion (Misc queries) 1 March 8th 05 07:21 AM
unwanted number to date conversion while pasting data from web Jacek Excel Worksheet Functions 1 February 24th 05 02:59 PM


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