Date conversion

N

New User

How do I convert julian date to calendar date?

IE: To:
4010 Jan 10 2004
4365 Dec 31 2004
 
R

Roger Govier

Hi

With the Julian Date in cell A1
=DATE(YEAR(TODAY()),MONTH(1),DAY(0)+RIGHT(A1,3))

Incidentally, 4365 is 30th December 2004. Leap Year this year.
 
N

Norman Harker

Hi New User!

Try:
=DATE(LEFT(A1)+2000,1,RIGHT(A1,3))

Both of your examples interpret correctly (after noting that 2004 is a
Leap Year)

It assumes the left character is a year between 2000 and 2009

Where the day arguments exceeds the number of days in the month of the
month argument the month aggregates automatically.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
N

New User

AM I CONFUSED!

THE JULIAN DATE THAT I AM WORKING WITH IS IN CELL E4.
THE FORMULA THAT I AM WORKING WITH IS
=DATE(IF(0+(LEFT(A1,2))<30,2000,1900)+LEFT(A1,2),1,RIGHT
(A1,3))
I AM NOT SURE HOW TO APPLY E4 TO THE ABOVE FORMULA.THE
JULIAN DATE RANGE COVERS 2003 THROUGH 2004.

THANKS AGAIN FOR THE HELP!
 
N

New User

AM I CONFUSED!

THE JULIAN DATE THAT I AM WORKING WITH IS IN CELL E4.
THE FORMULA THAT I AM WORKING WITH IS
=DATE(IF(0+(LEFT(A1,2))<30,2000,1900)+LEFT(A1,2),1,RIGHT
(A1,3))
I AM NOT SURE HOW TO APPLY E4 TO THE ABOVE FORMULA.THE
JULIAN DATE RANGE COVERS 2003 THROUGH 2004.

THANKS AGAIN FOR THE HELP!
 
R

Roger Govier

Hi

I think the problem arises with definitions of Julian Date.
Peo's reference to Chip's site deals with what most people would regard as
Julian Date.

I guess you use the same thing as here at our factory, where everybody
thinks of the Julian date as being a single digit of the year number
followed by the day number within that year.

With your date in cell E4, modify my original formula to
=DATE(YEAR(TODAY()),MONTH(1),DAY(0)+RIGHT(E4,3))

or better still, Norman's solution (much neater I think)
=DATE(LEFT(E4)+2000,1,RIGHT(E4,3))
 
R

Ron Rosenfeld

How do I convert julian date to calendar date?

IE: To:
4010 Jan 10 2004
4365 Dec 31 2004

If the date is in A1, and if you use the convention that translates two (or
one) digit dates preferentially to 1930-2029, then:

=DATE(INT(A1/1000)+1900+100*(A1<29366),1,0)+MOD(A1,1000)


--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top