Solved

Julian date conversion error

Posted on 2007-04-10
3
2,247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

634 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