close

I have a weather station that outputs a text file with two columns, one with
a 4 digit year, and another with the julian day. I need to convert the
julian day to a standard date format (i.e. 3/25/2006). I can use the quot;DAYquot;
function in excel to return the day from the julian day, but it only works if
February has 29 days. Does anyone have a calculation to convert the julian
day to the correct standard date format taking into consideration the year.
I have been using the following formula to do it, but it only works on or
after march 1st. I have to change it for 1/1 through 2/28 for the other 3
years.

=DATEVALUE(CONCATENATE((MONTH(B1 1)),quot;-quot;,(DAY(B1 1)),quot;-quot;,A1))

Where B1 is the julian day and A1 is the 4 digit year.

Thank you for your time and effort.

Sincerely,
Chad Nordberg
Hi Chad

Try
=DATE(A1,1,1) B1

--
Regards

Roger Govierquot;Chad Nordbergquot; lt;Chad gt; wrote in
message ...
gt;I have a weather station that outputs a text file with two columns, one
gt;with
gt; a 4 digit year, and another with the julian day. I need to convert
gt; the
gt; julian day to a standard date format (i.e. 3/25/2006). I can use the
gt; quot;DAYquot;
gt; function in excel to return the day from the julian day, but it only
gt; works if
gt; February has 29 days. Does anyone have a calculation to convert the
gt; julian
gt; day to the correct standard date format taking into consideration the
gt; year.
gt; I have been using the following formula to do it, but it only works on
gt; or
gt; after march 1st. I have to change it for 1/1 through 2/28 for the
gt; other 3
gt; years.
gt;
gt; =DATEVALUE(CONCATENATE((MONTH(B1 1)),quot;-quot;,(DAY(B1 1)),quot;-quot;,A1))
gt;
gt; Where B1 is the julian day and A1 is the 4 digit year.
gt;
gt; Thank you for your time and effort.
gt;
gt; Sincerely,
gt; Chad Nordberg
gt;
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()