ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Date to number conversion (https://www.excelbanter.com/excel-discussion-misc-queries/192312-date-number-conversion.html)

Byron720

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

bpeltzer

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


Kevin B

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



All times are GMT +1. The time now is 10:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com