Solved

julian dates conversion

Posted on 2013-01-22
4
878 Views
Last Modified: 2013-02-03
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
Comment
Question by:Amanda Walshaw
  • 2
4 Comments
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 38807266
What is the first date 734870?

Kevin
0
 
LVL 81

Accepted Solution

by:
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

by:Patrick Matthews
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

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

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now