ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Dates
  3. How to Convert Text to Dates in Excel

How to Convert Text to Dates in Excel

By ExcelReady Team·Updated November 1, 2026·5 min read

The short answer

To convert text to a date in Excel, use =DATEVALUE(A2) or =VALUE(A2) when the text matches your computer's date format, then format the result as a date. For a whole column, use Data > Text to Columns and choose Date. For formats Excel can't read, like 20240315, rebuild the date with DATE, LEFT, MID and RIGHT.

Key takeaways

  • Text dates sit on the left of the cell and don't change when you apply a date format.
  • =DATEVALUE(A2) or =VALUE(A2) converts text that matches your regional date format.
  • Text to Columns with the Date option converts a whole column in place.
  • For unusual formats, build the date yourself: =DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2)).
  • If the result shows a number like 45366, format the cell as a date.
On this page+
  1. How to tell if a date is stored as text
  2. How to convert text to a date with DATEVALUE or VALUE
  3. How to convert a whole column with Text to Columns
  4. How to convert unusual formats with DATE, LEFT, MID and RIGHT
  5. How to convert text dates with times
  6. Common mistakes when converting text to dates
  7. Practise it

To convert text to a date in Excel, you turn the text into the serial number Excel uses for dates, then format it. Text that matches your date settings converts with DATEVALUE or VALUE. A whole column converts with Text to Columns. Odd formats like 20240315 need DATE with LEFT, MID and RIGHT. This guide shows when to use each, so imported dates finally sort, filter and calculate.

How to tell if a date is stored as text#

A text date looks like a date but behaves like a word. Excel can't sort it in date order, filter it by month or subtract it from another date. Look for these signs:

SignReal dateText date
Alignment (default)RightLeft
=ISTEXT(A2)FALSETRUE
Format as GeneralTurns into a number like 45366Stays the same
Changing the date formatDisplay changesNothing happens

Text dates usually come from CSV exports, other software or copy-and-paste from web pages. Sometimes Excel also shows a green triangle in the corner of the cell. Real dates are numbers underneath. If that idea is new, the comparison of TEXT and VALUE explains how Excel moves between text and numbers.

How to convert text to a date with DATEVALUE or VALUE#

Use DATEVALUE or VALUE when the text is in a format your Excel already understands. If A2 holds the text 15/03/2024 on a computer set to day-month-year dates:

Excel formula
=DATEVALUE(A2)

The result is 45366, the serial number for 15 March 2024. Format the cell as a date (Windows: Ctrl+1; Mac: ⌘1, then choose Date) and it displays as a date.

VALUE does the same job and also handles numbers stored as text:

Excel formula
=VALUE(A2)

A shorter trick is the double minus, =--A2, which forces Excel to treat the text as a number. All three work only when Excel can read the text as a date. The VALUE function guide has more examples, and the comparison of DATE and DATEVALUE explains when each one fits.

Both functions depend on your regional settings. On a computer set to US dates, 15/03/2024 fails, because there is no 15th month. Text written as 2024-03-15 is the safest input, because Excel recognises that order in most settings.

How to convert a whole column with Text to Columns#

Text to Columns converts the cells in place, with no helper column. It's the quickest fix for a column of imported dates:

  1. Select the column of text dates.
  2. Go to Data > Text to Columns.
  3. Choose Delimited and click Next twice.
  4. Under Column data format, choose Date and pick the order your text uses, such as DMY or MDY.
  5. Click Finish.

The DMY or MDY choice is what makes this powerful. You tell Excel how the text is written, whatever your computer's settings say. So a US export like 03/15/2024 converts correctly on a UK computer if you choose MDY.

If the dates use dots, like 15.03.2024, you can also try Find and Replace (Windows: Ctrl+H; Mac: ⌃H). Replace . with /. Excel re-reads each cell after the change, and cells that now match your date format become real dates.

How to convert unusual formats with DATE, LEFT, MID and RIGHT#

When Excel can't read the text at all, take it apart and rebuild it with DATE. DATE takes a year, a month and a day as numbers, in that order. LEFT, MID and RIGHT cut those pieces out of the text.

For 20240315 (year, month, day with no separators):

Excel formula
=DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2))

LEFT takes 2024, MID takes 03 starting at position 5, and RIGHT takes 15. DATE turns them into 15 March 2024. Excel converts the text pieces into numbers automatically.

Here are more patterns:

Text in A2Formula
20240315=DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2))
15.03.2024=DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2))
03-15-2024=DATE(RIGHT(A2,4),LEFT(A2,2),MID(A2,4,2))

This approach never depends on regional settings, because you say exactly which part is the day and which is the month. That makes it the most reliable method for files shared between countries.

How to convert text dates with times#

If the text includes a time, such as 2024-03-15 14:30, VALUE usually converts both parts at once. The result is a number with a decimal, like 45366.6042, where the decimal is the time of day.

Format the cell with a custom format such as dd/mm/yyyy hh:mm to see both. To keep only the date, wrap it in INT, which drops the decimal: =INT(VALUE(A2)).

Common mistakes when converting text to dates#

Most failed conversions come from hidden characters, formats or regional settings. Check these:

  1. The result is a number. That's correct. Format the cell as a date.
  2. Extra spaces. A leading or trailing space makes DATEVALUE fail. Use =DATEVALUE(TRIM(A2)).
  3. Day and month swapped. 03/04/2024 can be 3 April or 4 March. Check a date with a day above 12 to see which order the source uses, then use Text to Columns or DATE.
  4. Two-digit years. Excel reads 24 as 2024, but 35 as 1935, because years 30 to 99 go into the 1900s by default. Use four-digit years where you can.
  5. Formatting doesn't convert. Changing a text cell's format to Date does nothing. The value itself must be converted first.

Once your dates are real, you can calculate with them, for example adding days, months or years to a date.

Practise it#

Cleaning up imported dates is one of the most common real-world Excel tasks, and a favourite in job tests. Practise date basics in a live spreadsheet to get comfortable with DATE and serial numbers, then practise TEXT and VALUE to master converting between text and numbers. Each lesson checks your formula instantly. Or try the exercise on this page first.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The system export gives dates as yyyymmdd text, like 20240315. Click B2 and turn A2 into a real date with DATE, using LEFT for the year, MID for the month and RIGHT for the day.

fx
ABCD
1
Raw date
Date
2
20240315
3
20231102
4
20240228
5
20250709
6
7
8

Tip: The year is the first 4 characters, the month is 2 characters starting at position 5, and the day is the last 2.

Practise this in a lesson

LessonHow Excel stores dates: DATE, YEAR, MONTH, DAYLearn why every date is secretly a number, then build dates with DATE and take them apart with YEAR, MONTH and DAY.LessonTEXT and VALUE: numbers to text and backFormat dates and dollar amounts inside sentences with TEXT, and turn digits stored as text into real numbers with VALUE.Function guideVALUEFix numbers stored as text with Excel's VALUE function, so SUM and lookups work again. Examples, common mistakes and a live practice exercise.

Frequently asked questions

How do I know if a date is stored as text?

+

Text dates usually sit on the left of the cell, while real dates sit on the right. You can also check with =ISTEXT(A2), or change the format to General: a real date turns into a number, text stays the same.

Why does DATEVALUE return #VALUE!?

+

The text doesn't match a date format Excel recognises with your regional settings, for example 20240315 or 15.03.2024 on a computer set to US dates. Rebuild those with DATE and LEFT, MID and RIGHT instead.

How do I convert text to a date without a formula?

+

Select the column, go to Data > Text to Columns, click Next twice, choose Date with the order your text uses (such as DMY), and click Finish. Excel converts the cells in place.

Why does my converted date show as a number?

+

Excel stores dates as serial numbers, so DATEVALUE returns something like 45366. Format the cell as a date with Ctrl+1 on Windows or ⌘1 on Mac and pick a date format.

How do I convert 20240315 to a date in Excel?

+

Use =DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2)). LEFT takes the year, MID the month and RIGHT the day, and DATE puts them together as a real date.

Sources

  • DATEVALUE function - Microsoft Support
  • DATE function - Microsoft Support
  • VALUE function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How to tell if a date is stored as text
  2. How to convert text to a date with DATEVALUE or VALUE
  3. How to convert a whole column with Text to Columns
  4. How to convert unusual formats with DATE, LEFT, MID and RIGHT
  5. How to convert text dates with times
  6. Common mistakes when converting text to dates
  7. Practise it

Keep reading

Comparisons· 7 min read

DATE vs DATEVALUE in Excel

DATE builds a real Excel date from three numbers: year, month and day, as in =DATE(2024,3,15). DATEVALUE converts text that looks like a date, such as "2024-03-15", into a real date. Use DATE whenever you can split out the parts, because it never depends on regional settings. Use DATEVALUE for a quick fix on clean date text.

Text· 6 min read

Combine a Date With Text in Excel (Without Numbers)

To combine a date and text in Excel, wrap the date in TEXT before you join it: ="Due "&TEXT(B2,"d mmm yyyy") returns Due 15 Mar 2024. Joining the date directly, as in ="Due "&B2, shows the serial number instead, like Due 45366, because Excel stores dates as numbers. The format code inside TEXT controls how the date looks.

Comparisons· 7 min read

TEXT vs VALUE in Excel: Numbers to Text and Back

TEXT and VALUE do opposite jobs. TEXT turns a number or date into text with a format you choose, such as =TEXT(B2,"#,##0.00"), so you can join it to words. VALUE turns text that looks like a number, such as "1250", back into a real number you can add up. Use TEXT for display and VALUE for maths.

More on dates

  • How to Count Dates by Month in Excel
  • DATE, YEAR, MONTH and DAY in Excel
  • Get the Day Name From a Date in Excel
  • Days Between Two Dates in Excel (and DATEDIF)
  • Days Until a Deadline in Excel (Countdowns)
  • Due Date Formulas in Excel: Days, Workdays, Months
All dates articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free