Julian date to standard date

doqa

New Member
Joined
Oct 27, 2010
Messages
15
I need a Julian date turned into a standard date. However, the only catch is the Julian date is attached to a company code. E.g., I need to be able to take the 300 from 300XXXX and turn it into 10/27/2010.

Then I need to be able to turn 10/27/2010 to 10/27/2011 (our product has an expiration date of a year from when it is produced). So the end result is I need to be able to take the first four numbers from a number, turn that Julian date into a standard date, and then add a year to that standard date.

Thanks in advance for your help. :)
 
You're right about the leap year, the way I was doing it won't work. Assuming you always have 8 digits (including leading zero if applicable, like 02461843) then this formula will get the correct date and add a year, taking leap years into account

=EDATE(DATE(2010+LEFT(A2),1,MID(A2,2,3)),12)

Note: if you are using Excel 2003 or earlier you need Analysis ToolPak enabled to use EDATE

If you might have missing leading zeroes then try

=IF(LEN(A2)=8,EDATE(DATE(2010+LEFT(A2),1,MID(A2,2,3)),12),DATE(2011,1,LEFT(A2,LEN(A2)-4)))
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top