How to Convert Text to Date in Excel (10 Ways)

Here’s an overview of a list of dates in textual values that will be converted to dates.

Convert Text to Date Preview


How to Convert Text to Date in Excel: 10 Ways

We have Dates in the text format in the Date column which are Left-aligned. The real dates will be Right-aligned. The text dates are in dd-mm-yyyy format. We will use this data table to explain the methods of converting text to date.

Dataset to Convert Text to Date in Excel


Method 1 – Change the Format Using the Number Format

We’ll use the sample dataset.

Change Format Using Number Format to Convert Text to Date in Excel

Steps:

  • Select the Date column.
  • Press Ctrl + 1.

selecting data

The Format Cells Dialog Box will open.

  • Select the Category as Date option.
  • Choose any type as your wish in the Type option. We have chosen the mm/dd/yyyy format.
  • Press OK.

changing format

Result:

Convert Text to Date Result Using Number Format

Read More: How to Convert General Format to Date in Excel


Method 2 – Use the VALUE function

We have added the Real Date column.

data in text format

Steps:

  • Select Cell E5.
  • Insert the following formula:
=VALUE(C5)

Using VALUE function to Convert Text to Date in Excel

The VALUE function converts the text in Cell C5 into a numeric value.
  • Press Enter.
  • Drag down the Fill Handle tool.

using fill handle

You will get the corresponding values of the texts in the Real Date column.

output of VALUE function

  • Follow Method 1 in the Real Date column to change the format into Date.

changing format to get data in date format

Result:

Convert Text to Date Result Using VALUE Function


Method 3 – Using the DATEVALUE Function

We’ll use the sample dataset.

Dataset to convert text to date using DATEVALUE function

Steps:

  • Select Cell E5.
  • Insert the following formula:
=DATEVALUE(C5)

applying DATEVALUE function

In the formula, the DATEVALUE function converts the text in Cell C5 into a numeric value.
  • Press Enter and drag down the Fill Handle tool.

using fill handle to copy formula

You will get the corresponding values of the texts in the Real Date column

output of DATEVALUE function

  • Follow Method 1 in the Real Date column to change the format into Date.

Result:

Convert Text to Date result Using DATEVALUE Function in Excel


Method 4 – Use Mathematical Operators

You can use Addition, Double Negation, Multiplication, and Division operators.

date in text format to change text to date

Steps:

  • Select Cell E5.
  • Insert the following formula:
=C5+0
  • Press Enter.

adding 0 with text to convert text to date in excel

Here, in the formula, adding to the text converts it into numeric value.
  • Select Cell E6.
  • Use the following formula
=--C6
  • Press Enter.

Using double negative before text to convert text to date in excel

In the formula, adding a double negative to the text converts it into numeric value.

You can convert the text into a value by using Multiplication and Division Operator as follows.

multiplying text by 1 to convert text to date in excel

  • Follow Method 1 in the Real Date column to change the format into Date.

dividing text by 1 to convert text to date in excel

Result:

Convert Text to Date result by math operator


Method 5 – Using the Find & Select Option

In the Date column in the text dates the month, date and year are separated by using the “.” sign. We’ll replace them with a “/” separator.

date in text format to use Find & Select Feature

Steps:

  • Go to the Home tab.
  • Select the Editing drop-down.
  • Choose Find & Select and select Find.

selecting Find and Replace to convert text to date in excel

The Find and Replace Wizard will appear.

  • Select the Replace option.
  • Write “.” in the Find what box and “/” in the Replace with box.
  • Click Replace All.

using find and replace box to convert text to date in excel

Another Wizard will pop up and select OK.

change after replace

The text dates will have the replaced separator.

format after replace

  • Follow Method 1 in the Real Date column to change the format from Text into Date.

Result:

Convert Text to Date result using find and replace feature

Read More: Text Won’t Convert to Date in Excel


Method 6 – Change Date Delimiters Using the SUBSTITUTE function

We’ll replace “.” with the “/” separator. We have added two columns named Changed Date and Real Date.

date in text format to use SUBSTITUTE function

Steps:

  • Select Cell E5.
  • Insert the following formula:
=SUBSTITUTE(C5,".","/")

using SUBSTITUTE function to convert text to date in excel

In the formula, the SUBSTITUTE function replaces “.”  by “/” inCell C5.
  • Press ENTER and drag down the Fill Handle tool.

applying fill handle tool to copy formula with SUBSTITUTE function

The text dates will have the replaced separator.

result of substitute function

  • Follow Method 1 in the Real Date column to change the format from Text into Date.

Result:

Convert Text to Date result using SUBSTITUTE function in Excel


Method 7 – Use Text to Columns

You can use the Text to Columns Option to convert Text dates with any type of separator to Date format.

date in text format to use Text to Columns option

Steps:

  • Go to the Data tab and, in the Data Tools group, select the Text to Columns option.

using text to columns option to convert text to date in excel

The Convert Text to Columns Wizard will open, which has 3 stages.

  • Select the Delimited Option
  • Click Next.

Opening convert text to columns wizard

  • In Step 2, click Next.

Text to Columns Option

  • Select the Date format MDY (you can choose any other type according to your data).
  • Type the cell where you want the output in the Destination box.
  • Click Finish.

final step of using Text to Columns Option

Result:

Convert Text to Date result using text to columns option in excel


Method 8 – Convert a Complex Text to a Date Using Text to Columns Option

If you have complex dates like below to convert into Date, then you can use the Text to Columns Option and the DATE function.

complex text to date dataset

Steps:

  • Go to Text to Columns.

applying data tools

The Convert Text to Columns Wizard will appear which has 3 Steps.

  • Select the Delimited option.
  • Click Next.

Text to Columns Option for complex data

  • Select Comma and Space as Delimiters.
  • Click the Treat consecutive delimiters as one option.
  • Press Next.

second step to use Text to Columns Option

  • Select Do not import column(skip) to skip the name of the days.
  • Type the cell name where you want the output in the Destination box.
  • Click Finish.

final step to use Text to Columns Option for complex dataset

You will get the split data in three columns containing Month, Day, and Year.

splitted data from date in text format

  • Select Cell D6.
  • Insert the following formula:
=DATE(G5,MONTH(1&E5),F5)

using date function to convert text to date in excel for complex data

G5 will give the Year value
MONTH(1&E5) will convert the Month into the corresponding Month number.
F5 is Day

  • Press Enter and drag down the Fill Handle tool.

using fill handle to copy formula for complex data

Result:

Convert Text to Date output


Method 9 – Use Excel Paste Special

You need a value 0, which is in Cell E5.

date in text format to use paste special method

Steps:

  • Select Cell E5 and press Ctrl + C.

copying 0 to convert text to date in excel

  • Select the range of Texts in the Date column.
  • Right-click on the selection.
  • Select Paste Special.

opening paste special

The Paste Special Dialog Box will appear.

  • Select All for Paste and Add as Operation.
  • Press OK.

opening Paste Special box

The texts will be converted into values.

output of paste special feature

  • Follow Method 1 to change the format to Date.

Result:

Convert Text to Date result using paste special in Excel


Method 10 – Change 8-Digit or 6-Digit Numbers to Dates

Here, the numbers in the green box are in the yyyy-mm-dd format, the numbers in the red box are in the dd-mm-yyyy format, and the numbers in the blue box are in the yy-dd-mm format.

8 digit numbers

Steps:

  • Select Cell E5.
  • Insert the following formula:
=DATE(LEFT(C5,4),MID(C5,5,2),RIGHT(C5,2))
  • Press Enter and copy the formula for Cell E6.

using date left mid right functions to convert text to date in excel

LEFT(C5,4) will give the Year value
MID(C5,5,2) is Month.
RIGHT(C5,2) provides the Day value

  • Select Cell E7.
  • Insert the following formula:
=DATE(RIGHT(C7,4),MID(C7,3,2),LEFT(C7,2))
  • Press Enter and copy the formula for Cell E8.

using date left mid right functions

RIGHT(C7,4) will give the Year value
MID(C7,3,2) is Month.
LEFT(C7,2) provides theDay value

  • Select Cell E9.
  • Insert the following formula:
=DATE(20&LEFT(C9,2),RIGHT(C9,2),MID(C9,3,2))
  • Press Enter and copy the formula for Cell E10.

using date left mid right functions for another format

20&LEFT(C9,2) will give the Year value
RIGHT(C9,2) is Month.
MID(C9,3,2) provides the Day value

Read More: How to Convert Number to Date in Excel


Practice Section

We have provided a Practice section like below in a sheet named Practice.

practice section


Download the Practice Workbook


Related Articles


<< Go Back to Convert to Date | Date-Time in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjima Hossain
Tanjima Hossain

TANJIMA HOSSAIN is a marine engineer who enjoys working with Excel and VBA programming. For her, programming is a handy, time-saving tool for managing data, files, and online tasks. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. She holds a B.Sc. in Naval Architecture & Marine Engineering from BUET and is now a content developer. In this role, she creates tech-focused content centred around Excel and VBA. Apart from... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo