Solved

# julian dates conversion

Posted on 2013-01-22
888 Views
I saved data from sql 2008 directly to excel 2010, i need to convert the julian dates to calendar dates, but the formulas I have found are giving me the incorrect date.

=DATE(YEAR("01/01/"&TEXT(1900+INT(A2/1000),0)),MONTH("01/01/"&TEXT(1900+INT(A2/1000),0)),DAY("01/01/"&TEXT(1900+INT(A2/1000),0)))+MOD(A2,1000)-1

this should work, I am posting a file with the results attached

I have attached the file, am I missing a setting in excel 2010?
Book2-1-.xlsx
0
Question by:Amanda Walshaw
[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

LVL 81

Expert Comment

ID: 38807266
What is the first date 734870?

Kevin
0

LVL 81

Accepted Solution

zorvek (Kevin Jones) earned 400 total points
ID: 38807278
I think it's based on 1 AD which would mean the formula is:

=A1-693594

See attached.

Kevin
Dates.xlsx
0

LVL 92

Assisted Solution

Patrick Matthews earned 100 total points
ID: 38807357
Strictly speaking, "Julian Date" refers to the count of days since January 1, 4713 BC

People often assign different meanings to the term, however.

To answer your question properly, we would need to know what zero signifies in your date scheme (it would be enough to take one of the values, and say what you would translate it to in the Gregorian calendar).

Of course, if Kevin's guess is right, then your question is answered :)
0

Author Comment

ID: 38807423
I kevin this worked, thanks 734870 is 2/1/2013
thankyou mathew for your input
0

## Featured Post

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…