XL AI Automation
Home › Guides › How to convert text to dates in Excel

How to convert text to dates in Excel

6 min read · Updated 4 December 2026

You import a report and the dates look fine, but sorting puts 10-11-2026 before 02-11-2026, filters show every date as a separate word, and pivot tables refuse to group by month. The dates are stored as text, not as real Excel dates.

How to tell if a date is text

  • It is left-aligned in the cell (real dates are right-aligned by default).
  • =ISNUMBER(A2) returns FALSE. A real date is a number underneath, so it returns TRUE.
  • Changing the number format does nothing.

This happens most often with exports from ERPs, banks and Tally, and with formats like 06.11.2026 that Excel does not recognise, or day-first dates on a computer set to month-first.

Method 1: Text to Columns (fastest for one column)

  1. Select the date column.
  2. Go to Data → Text to Columns.
  3. Choose Delimited, click Next, untick all delimiters, click Next.
  4. Under Column data format choose Date and pick the order your text uses, usually DMY for Indian files.
  5. Click Finish.

This works for 06-11-2026, 06/11/2026 and often 06.11.2026. Check a few cells afterwards: the day and month should not have swapped.

Method 2: A DATE formula (works for any fixed layout)

If the text is always day, month, year with two digits, two digits and four digits, build the date yourself:

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

For 06.11.2026 this gives 6 November 2026, whatever your computer's date settings are. Format the result as dd-mm-yyyy, then copy and Paste Special → Values over the original column if you want to replace it.

For text like 03-Nov-26, =DATEVALUE(A2) usually works because the month is a word.

Method 3: Power Query (best for monthly reports)

  1. Select the data and choose Data → From Table/Range.
  2. Right-click the date column → Change Type → Using Locale…
  3. Choose Data Type Date and Locale English (India) (or any day-first locale).
  4. Click Close & Load.

Next month, paste the new data and click Refresh. The conversion repeats automatically.

Common problems

  • Day and month swapped: you picked MDY instead of DMY. Undo and choose the right order.
  • Some cells still text: they may have extra spaces. Use =TRIM(A2) first.
  • Numbers like 46000 instead of dates: the conversion worked. Apply a date format.