## Excel Formula: Convert Number to Date

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?

### 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.

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.

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

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

### 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 Toolsets:  12 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...

#### 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.
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
HellÃ³,
9223372036854770000 - Ã¡ltalÃ¡nos beÃ¡llÃ­tÃ¡sÃº
132865418967917000 - Ã¡ltalÃ¡nos beÃ¡llÃ­tÃ¡sÃº
Ãœdv: KicsiBors :)
This comment was minimized by the moderator on the site