Go Back

Get date from day number

We can easily use excel DATE function to get date from day number of a given year. This function is useful when we know the day number, say nth day of the year, and we want to know its date. This post provides a clear guide on how to use the DATE function to get date from day number.

Figure 1: How to use DATE function to get date from day number

General syntax of the formula

=DATE (year, mnth, daynumber)


  • Year- refers to the year of which you want to get the date
  • Month- Refers to the month
  • Daynumber- refers to the number of the day

How the formula works

This function easily identifies the dates given the day numbers. The function can build the dates from separate year, month and day values. It is able to roll forward to correct dates when the days and months supplied are out of range.

In our example above, we have the day number in column D, and would like to have the specific dates in column E. to do this, we simply feed the formula =DATE(2017,3,C4) into cell D4 and press Enter. To get the dates for the other entries, we simply copy down the formula across the other cells in the column.


Figure 2: Example of how to get date from day number


Step 1: Fill the “Day of the year” column with the number of days you have.

Step 2: In the date column, D, put the formula in cell B2, =DATE(2017,3,A2)

Step 3: Press Enter to get the date of the year.

Step 4: Copy down the formula to get dates for the other days.

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

I would like: If cell E2 has a date then populate B2 with week number using date from E2 If cell E2 is blank - then populate B2 with week number using date from C2 So far I can get the correct week number if E2 has a date, however if E2 is blank I cannot get the correct week number in B2 from C2
Solved by G. H. in 19 mins
My invoice number codes are made from using the date. For instance the first invoice for today would be 20180326001 (yyyymmdd001), the second today would be 20180326002 (yyyymmdd002). I am trying to get these codes to generate automatically from Excel when I enter the date I create the invoice... for instance I date each invoice the day I create it: 26/03/18, is there a way to generate an invoice code from the date?
Solved by A. W. in 25 mins
Trying to count and chart how many inventory lots were available on any given date. Question Example: For 9/1/2013 - how many lots were available? Each lot has a "Release Date" and "Expiration Date" and is "Available" every day from the "Release Date" to and including the "Expiration Date". Example: 134530-001 was available every day from 8/8/2013 (day after the "Release Date) and 8/18/2013. Data available is: Lot number (Column A), release date (Column B), expiration date (Column C).
Solved by C. J. in 16 mins

Leave a Comment