Skip to main content

Excel Formula: Convert Number to Date

Author: Sun Last Modified: 2020-11-26

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

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


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, Edge and Firefox.
Comments (4)
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Helló,
Segítségre lenne szükségem az alábbi karaktersorokat, hogyan tudom képlettel dátummá alakítani? (éééé.hh.nn óó:pp)
9223372036854770000 - általános beállítású
132865418967917000 - általános beállítású
Előre is nagyon szépen köszönöm.
Ãœdv: KicsiBors :)
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?
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
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations