Convert Julian-Style Dates to Gregorian Dates in Excel 2016
Question details
Convert a five-digit day-of-year and two-digit year value into a Gregorian date.

- Product
- Microsoft Excel 2016
- Device & OS
- not provided
- Scenario
- A worksheet contains values such as 11716, where the first three digits are the day of the year and the final two digits are the year.
- Observed behavior
- The desired result is a recognizable calendar date, such as April 26, 2016, for the value 11716.
Confirm that your values use the DDDYY layout and that the two-digit years belong to 2000–2099. Check that each day-of-year value is valid for its year, including leap years.
Use a formula to convert DDDYY values in Excel 2016
Use this formula when the first three digits represent the day of the year and the last two represent a year from 2000 through 2099.
TEXT preserves the five-digit layout when a numeric value has leading zeros. The formula adds 2000 to the two-digit year; adjust that century if your data uses a different one.
Excel's DATE function can roll an invalid day number into another year, so verify that the day is between 1 and 365, or 366 for a leap year.
Enter a DDDYY value such as 11716 in cell A1. A value such as 00116 represents the first day of 2016.
Select cell B1 and enter =DATE(2000+VALUE(RIGHT(TEXT(A1,"00000"),2)),1,VALUE(LEFT(TEXT(A1,"00000"),3))).
Select B1, open Home > Number Format, and choose Short Date. The value 11716 should display as April 26, 2016, depending on your date format.
Drag the fill handle from B1 down alongside the remaining values in column A, then check a few results against known dates.

Convert DDDYY dates with WPS Spreadsheets
Use WPS Spreadsheets to apply the same day-of-year conversion formula and format the results as calendar dates.
- 1. Open your spreadsheet: In WPS Spreadsheets, open your workbook and locate the DDDYY values in column A.
- 2. Enter the formula: Select B1 and enter =DATE(2000+VALUE(RIGHT(TEXT(A1,"00000"),2)),1,VALUE(LEFT(TEXT(A1,"00000"),3))).
- 3. Format the date: Select B1 and use the Home tab's number-format controls to choose a date format.
- 4. Fill and verify: Drag B1's fill handle down to convert other rows, then compare the results with known dates.

Frequently Asked Questions
What date does 11716 represent?
In DDDYY format, 11716 means the 117th day of 2016: April 26, 2016. Enter it in A1 and use the conversion formula in B1 to check the result.
Why does my formula return a number instead of a date?
Excel stores dates as serial numbers. Select the result cell and choose Home > Number Format > Short Date to display it as a calendar date.
Will the formula handle a value with leading zeros?
Yes. TEXT(A1,"00000") restores the five-digit layout for numeric values, so 00116 is interpreted as day 001 of 2016.
What if my values use YYDDD instead of DDDYY?
The year and day positions must be reversed in the formula. Confirm the source convention first; for YYDDD values from 2000–2099, use =DATE(2000+VALUE(LEFT(TEXT(A1,"00000"),2)),1,VALUE(RIGHT(TEXT(A1,"00000"),3))).
Can this formula detect an invalid day of the year?
No. DATE can roll an out-of-range day into another year. Check that the day is from 1 to 365, or 1 to 366 in a leap year, before relying on the result.




