+ Reply to Thread
Results 1 to 2 of 2

converting julian day and year to a date?

  1. #1
    Chad Nordberg
    Guest

    converting julian day and year to a date?

    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
    [email protected]


  2. #2
    Roger Govier
    Guest

    Re: converting julian day and year to a date?

    Hi Chad

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

    --
    Regards

    Roger Govier


    "Chad Nordberg" <Chad [email protected]> wrote in
    message news:[email protected]...
    >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
    > [email protected]
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1