Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Array date to Excel date


Tuk Jan 27, 2009 11:29 PM

Anyone have a a single Excel formula to convert the typical array data: "Year, Day of Year, Hour/min" to an MS Excel date?

The one we have doesn't really use the year and messes up on leap years etc.


amynoel Jan 28, 2009 01:58 AM

we use the following formula in Excel:

=DATE(B3874,1,C3874)+INT(D3874/100)/24+MOD(D3874,100)/1440

where

Column B is Year
Column C is Julian Day
Column D is Time


Hope this helps.


Tuk Jan 28, 2009 07:13 PM

Yes, it helps thank you.


TWW Jul 6, 2010 09:09 PM

I copied this from a source I don't remember (may have benn CS website) and it has seemed to work well.

=(B3-1900)*365+1+INT((B3-1901)/4)+C3+INT(D3/100)/24+(D3/100-INT(D3/100))*100/60/24

Column B is Year
Column C is Julian Day
Column D is Time (HHMM)

Log in or register to post/reply in the forum.