Solved

Julian date conversion error

Posted on 2007-04-10
3
2,241 Views
Last Modified: 2013-11-16
Hi,

I need to convert a Julian date in Excel that orginated in SAS, but am getting the wrong result by about 50 years. Example:

SAS Julian date: 12432
Represents: 14-Jan-1994

In excel by default this instead gives date 13-Jan-1934  (using TEXT(12432,"dd-mmm-yyyy")

How can i get Excel to return the required date of 14-Jan-1994 ?

Thanks!




0
Comment
Question by:xenium
  • 2
3 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 125 total points
ID: 18885285
=TEXT(A1+21916,"dd-mmm-yyyy")

Or, enter 21916 in a free cell, select the cell, press CTRL=C, select all of the date values to be adjusted, choose the menu command Edit->Paste Special, select Add, click OK. Once the date values are fixed you can format the cells as dates.

Kevin
0
 

Author Comment

by:xenium
ID: 18885390
Thanks, this works, and it seems to click now...
SAS is using a Julian base of  01-Jan-1960  
This is 21916 days after the Excel base of 00-Jan-1900
Is this correct?
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 18885405
Yup.

Kevin
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question