Note: The other languages of the website are Google-translated. Back to English
English English

Excel Formula: Convert Number to Date

doc convert date to julia 1

Sometimes, while you import date data from other devices, it may be changed to a series number. How can you convert the numbers to Excel dates?

If you want to follow along with this tutorial, please download the example spreadsheet.
doc convert date to julia 1

Case 1 convert 5-digit number to date displayed

 

Generic formula:

TEXT(number,"mm/dd/yyyy")

Syntaxt and Arguments

Number: the series number that you want to convert to Excel date.

Return Value

This formula returns a value in Excel date format.

How this formula work

To convert the numbers in the list B3:B6 to dates, please use below formula:

=TEXT(B3,"mm/dd/yyyy")

Press Enter key and drag fill handle down to cell C6.
doc convert date to julia 1

Explanation

In Excel, the date is stored as number. Generally, Excel counts days from Jan 1, 1990, which means, the first date, Jan 1, 1990, is stored as 1 in Excel. In other words, number 43545 is 43545 days far from Jan 1, 1990, which is the date Mar 21, 2019.

TEXT function: convert number to a specific text format.

Remark

You can change the text format to other date formats as you need in the formula.

For example:

TEXT(number,"mm-dd-yyyy")

Case 2 convert number (yyyymmdd) to date

 

Generic formula:

=DATE(LEFT(number,4),MID(number,5,2),RIGHT(number,2))

Syntaxt and Arguments

Number: the series number that you want to convert to Excel date.

Return Value

This formula returns a number value, then you can convert the number to a date format as you need.

How this formula work

To convert the numbers in the list E3:E6 to dates, please use below formula:

=DATE(LEFT(E3,4),MID(E3,5,2),RIGHT(E3,2))

Press Enter key and drag fill handle down to cell C6.
doc convert date to julia 1

Then click Home > drop-down list of Number Format to choose Short Date or Long Date as you need.
doc convert date to julia 1

Explanation

LEFT function: extracts string from left of the text string.

MID function: returns the specific characters from the middle of text string.

RIGHT function: extracts the text from right of the text string.

DATE function: creates a date based on the given year, month, and day


Relative Formulas

Relative Functions


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (3)
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Thanks a lot for this helpful article! I've been trying to figure out where the date number 44438 originates from and now I know.Though I noticed there is a mistake in the description: "Excel counts days from Jan 1, 1990, which means, the first date, Jan 1, 1990, is stored as 1 in Excel". I believe Excel starts counting from Jan 1, 1900 because otherwise I wouldn't get the right date.Thanks again
This comment was minimized by the moderator on the site
kalo supaya bulannya menjadi huruf gmna kak,? misal 09 menjadi Sep
Rated 4.5 out of 5
This comment was minimized by the moderator on the site
Hi, Ruhadi, for converting month name to number, this tutorial list methods can help you. How To Convert Month Name To Number In Excel?
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations