30 Advanced Excel Tips for 2026

Excel Champs / Excel Formulas List / How to Convert Text to Date in Excel (Formula)
By Puneet Gogia (Microsoft MVP)

How to Convert Text to Date in Excel (Formula)

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

If a date is stored as text, the quickest fix is =DATEVALUE(A1), which returns the date serial number — then format the cell as Date (Ctrl+1) to see it properly. You can spot text dates because they sit left-aligned in the cell and don’t respond to date arithmetic.

DATEVALUE only works when the text is in a layout Excel recognises, so for anything unusual you pull the parts out yourself with the DATE function: =DATE(RIGHT(A1,4),MID(A1,4,2),LEFT(A1,2)) rebuilds a date from a string like 15.01.2026 by taking the year from the right, the month from the middle, and the day from the left. Adjust the character positions to match your own layout.

For a whole column at once with no formula, the fastest route is Data → Text to Columns → Next → Next → Date (DMY) → Finish, which converts the values in place. Power Query’s Change Type → Using Locale handles it too, and is the better choice for imported data you’ll refresh.

Dates play an important role when we need to analyze trends. This is one of the most important things that you need to capture in the right way. Apart from the basic date format that Excel uses to store dates, there are some other date formats that are acceptable.

Now the thing is: when we capture a date in the wrong format, Excel treats that date as text, and then we can’t use that date in any calculation.

When it comes to text date formats, there is no one particular format. It depends on the person who is entering those dates. The bottom line is: We do need some methods which we can use to convert a text to an actual date with the right format.

So today, in this post, I’d like to share with you the methods that we can use to convert text to a date in Excel: DATEVALUE, and then 10 formulas for the most common irregular formats. For converting text to a date, we need to use a combination of different functions.

So let’s get started.

1. Convert a Text to a Date

Using the DATEVALUE function is the basic method to convert a date stored as text into an actual date.

Let’s say you have a list of dates in your worksheet and all the cells where dates are entered have text format but all those dates are in the correct date format.

In the below example, we have a date in a cell but when I try to add a number to that date I’m getting an error, even though the date is written correctly.

Excel datevalue function to convert text to date

But if you look at the cell format, it’s text. So here, the best way is to use the DATEVALUE function. You just need to refer to that cell in the function, and it will convert that text into an actual date (a date serial number).

convert text to date list with datevalue function

And then you can change its format to date.

=DATEVALUE(A1)

DATEVALUE reads the text using the date settings of your computer. So, a text like 06/05/2019 becomes 6 May on a computer with day-month-year settings and 5 June on one with month-day-year settings. When DATEVALUE can’t read the text at all, it returns #VALUE!.

Note: There are some situations where DATEVALUE can’t help us to get a date from a text. There are many irregular date formats, and to deal with them, we need to create a custom formula using different functions.

In the next 10 examples, I will share with you how we can use these different functions.

text to date list

2. Date with Back Slashes

The Excel date system supports dates with forward slashes. And if we have a date with backslashes, it will treat it as text.

convert text to date with black slashes invalid

To solve this problem, we can use the below formula (for a date like 15\06\2019, day first).

=DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2))
convert text to date with black slashes

3. Date with Month Name

Now, we have a date format where the month is entered with its name. For Excel, this is not a date anymore, even if it’s presenting a date clearly.

convert text to date with month name full

The below formula can help us with this.

=DATEVALUE(RIGHT(A3,2)&"-"&TEXT(MID(A3,6,3),"MMM")&"-"&LEFT(A3,4))
convert text to date with month name full formula

4. Date with Dots

It’s a common kind of problem where we get dots inside a date. This is a kind of format used by people who are not aware that this is not a proper date format.

And, this is the formula to correct it.

=DATE(RIGHT(A4,4),MID(A4,4,2),LEFT(A4,2))

5. Date with the Month Name and a Comma

This format is almost the same as the format we discussed in point 3.

And, we can correct it with the below formula.

=DATEVALUE(LEFT(A5,2)&"-"&TEXT(MID(A5,4,3),"MMM")&"-"&RIGHT(A5,4))

6. Date with the Day Name

Sometimes people store a date with the day’s name. And if that date is not in a proper format, Excel will treat it as text.

Use this formula for this type of text date.

=DATEVALUE(MID(A6,FIND(",",A6)+6,2)&"-"&MID(A6,FIND(",",A6)+2,3)&"-"&RIGHT(A6,4))

7. Date with a Day Name in the End

Here we have a date with the day name at the end. Now, the problem with this format is it has a comma between the date and day name.

But, we can get the valid date using the below formula.

=DATEVALUE(MID(A7,10,2)&"-"&MID(A7,6,3)&"-"&LEFT(A7,4))

8. Date Having a Suffix with Day

We have a “th” suffix with the day number and it makes it a text instead of a date as Excel is not able to recognize it.

The below formula will help you to get the real date.

=DATEVALUE(LEFT(A8,FIND("th",A8)-1)&"-"&MID(A8,FIND(" ",A8)+1,3)&"-"&RIGHT(A8,4))

This formula only works with “th”. For days like 1st, 2nd, 3rd or 22nd, FIND can’t find “th” and the formula returns #VALUE!. As all these suffixes are two letters long, the following formula works for all of them by removing the two characters before the first space:

=DATEVALUE(LEFT(A8,FIND(" ",A8)-3)&"-"&MID(A8,FIND(" ",A8)+1,3)&"-"&RIGHT(A8,4))

9. Date with Space Between Day, Month, and Year

When we have a date format with spaces between the day, month, and year, we can use the below formula to correct the date format.

=DATE(RIGHT(A9,4),MID(A9,4,2),LEFT(A9,2))

10. Date with Short Month Name

Here we have a date format with a short month name at the start of the date.

We can use the following formula to convert it to a valid date format.

=DATEVALUE(MID(A10,5,2)&"-"&LEFT(A10,3)&"-"&RIGHT(A10,4))

11. Date Without Any Space Between Day, Month, and Year

And here’s a date where there is no space between the day, month, and year (like 150619 for 15-Jun-2019).

The below formula will help us to get the correct date format.

=DATE(2000+RIGHT(A11,2),MID(A11,3,2),LEFT(A11,2))

Here, I have added 2000 to the two-digit year. Without it, DATE treats a year like 19 as 1919, because Excel adds any year from 0 to 1899 to 1900.

Convert Text to Date with Text to Columns

If you have a whole column of text dates in one format, you don’t need a formula. Text to Columns can convert them in place:

  1. First of all, select the column with the text dates.
  2. After that, go to Data ➜ Text to Columns, select Delimited, and click Next twice.
  3. In step 3, select Date and pick the order of your text, like DMY for 15.06.2019.
  4. In the end, click Finish.

This works for dates with dots, dashes, slashes or spaces, as long as all of them are in the same order.

Convert Text to Date with VALUE or Paste Special

When the text is already in a format your computer understands, and only the cell holds it as text (like a date with an apostrophe in front), you can also use VALUE, or add zero to the cell:

=VALUE(A1)
=A1+0

And to convert the cells in place, type 1 in an empty cell, copy it, select the text dates, go to Paste Special, choose Multiply, and click OK. Then apply a date format to the cells.

Frequently Asked Questions

Why does my converted date show as a number?

Excel stores dates as serial numbers, like 43631 for 15-Jun-2019. The formula has worked; just change the cell format to a date format (Home ➜ Number Format ➜ Short Date).

Why does DATEVALUE return #VALUE!?

The text isn’t in a format that matches your computer’s date settings, or it has extra characters like spaces or suffixes. Use one of the formulas above to rebuild the date, or TRIM the text first.

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

A text date is usually aligned to the left of the cell, while a real date is aligned to the right. You can also check with ISTEXT, which returns TRUE for a text date.

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel

28 thoughts on “How to Convert Text to Date in Excel (Formula)”

  1. Hi Puneet,

    I need a practice file for making practice.

    Regards
    jas

    Reply
  2. how do I convert this text into a Standard Date or even a number so I can sort by date properly:
    Thursday, July 20, 2023

    Reply
  3. ‘Jan’17
    ‘Feb’17
    ‘Jan’18
    ‘Feb’18
    ‘Jan’19
    ‘Feb’19

    in above data, 17, 18 & 19 are the years. how can i convert this format to MMM-YY?

    Reply
  4. Aug 12, 2022 THIS DATE IS NOT WORKING I WANT IT IN THIS FORMAT 12-08-2022 OR 12-AUG-2022

    Reply

Leave a Comment