PC Review


Reply
Thread Tools Rate Thread

converting julian day and year to a date?

 
 
=?Utf-8?B?Q2hhZCBOb3JkYmVyZw==?=
Guest
Posts: n/a
 
      27th Feb 2006
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 "DAY"
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)),"-",(DAY(B1+1)),"-",A1))

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

Thank you for your time and effort.

Sincerely,
Chad Nordberg
(E-Mail Removed)

 
Reply With Quote
 
 
 
 
Roger Govier
Guest
Posts: n/a
 
      27th Feb 2006
Hi Chad

Try
=DATE(A1,1,1)+B1

--
Regards

Roger Govier


"Chad Nordberg" <Chad (E-Mail Removed)> wrote in
message news:66B0772A-1E94-4284-9EB3-(E-Mail Removed)...
>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
> "DAY"
> 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)),"-",(DAY(B1+1)),"-",A1))
>
> Where B1 is the julian day and A1 is the 4 digit year.
>
> Thank you for your time and effort.
>
> Sincerely,
> Chad Nordberg
> (E-Mail Removed)
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Date to Julian Sam Microsoft Access 4 6th Jan 2010 03:19 AM
Converting a date to a text field w/o converting it to a julian da LynnMinn Microsoft Excel Worksheet Functions 2 6th Mar 2008 03:43 PM
how to convert from julian date to mm/dd/year =?Utf-8?B?cm9iaW4gd2F0ZXJzb25n?= Microsoft Excel Misc 6 9th Sep 2007 04:18 AM
Print the day of the year (or Julian date) on an Outlook calendar? =?Utf-8?B?TC4gQS4gVy4=?= Microsoft Outlook Calendar 1 2nd Mar 2007 12:06 AM
Pulling a date from a two digit year and julian date Ziggs Microsoft Access 3 25th Dec 2006 07:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:50 AM.