Convert text information to excel date format

beca

New Member
Joined
May 17, 2011
Messages
44
Hi all, I have a spreadsheet generated from a software with date information. This date information is a text, not in excel date format.

I would like to convert this text to excel date format dd/mm/yyyy.

The spreadsheet looks like below.

1691191064314.png


Thank you all.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
In an adjacent column you can enter:
=DATEVALUE(E7)
for example. This will convert the date string to a date value. The you can set these values to your desired date format.
If you have many dates to convert you may want to use a VBA macro to do the conversions.
Once converted you can copy the dates back to the original cells (column).

How many rows of data need this conversion?

Is this something you need to do regularly or just once?
 
Upvote 0
Use this formula in an adjacent column: =--TEXT(C1,"MM/DD/YYYY") where C1 is the cell with the date as a text.
(Use a double minus sign after the equals and before the word TEXT.) Format the adjacent column as a date.
 
Upvote 0
In an adjacent column you can enter:
=DATEVALUE(E7)
for example. This will convert the date string to a date value. The you can set these values to your desired date format.
If you have many dates to convert you may want to use a VBA macro to do the conversions.
Once converted you can copy the dates back to the original cells (column).

How many rows of data need this conversion?

Is this something you need to do regularly or just once?
Hi, the formula doesn't work. I have uploaded the spreadsheet, would you please check from your end.
Spreadsheet.xlsx
A
1Transaction Apply Date
2May 12, 2023
3May 12, 2023
4May 12, 2023
5Jun 5, 2023
6Jul 7, 2023
7Jul 7, 2023
8Jul 7, 2023
9Jul 14, 2023
10Apr 7, 2023
11Apr 25, 2023
12Apr 25, 2023
13Apr 14, 2023
14Apr 14, 2023
15Apr 14, 2023
16Apr 10, 2023
17Sep 26, 2022
18Oct 24, 2022
19Oct 13, 2022
20Oct 12, 2022
21Nov 11, 2022
22Nov 1, 2022
23Nov 1, 2022
24Jun 6, 2022
25Jun 5, 2023
26Jun 26, 2023
_Report Output_TimeDetails_Nico
 
Upvote 0
Use this formula in an adjacent column: =--TEXT(C1,"MM/DD/YYYY") where C1 is the cell with the date as a text.
(Use a double minus sign after the equals and before the word TEXT.) Format the adjacent column as a date.
Hi, the formula doesn't work. I have uploaded the spreadsheet, would you please check from your end.

Spreadsheet.xlsx
A
1Transaction Apply Date
2May 12, 2023
3May 12, 2023
4May 12, 2023
5Jun 5, 2023
6Jul 7, 2023
7Jul 7, 2023
8Jul 7, 2023
9Jul 14, 2023
10Apr 7, 2023
11Apr 25, 2023
12Apr 25, 2023
13Apr 14, 2023
14Apr 14, 2023
15Apr 14, 2023
16Apr 10, 2023
17Sep 26, 2022
18Oct 24, 2022
19Oct 13, 2022
20Oct 12, 2022
21Nov 11, 2022
22Nov 1, 2022
23Nov 1, 2022
24Jun 6, 2022
25Jun 5, 2023
26Jun 26, 2023
_Report Output_TimeDetails_Nico
 
Upvote 0
Select all of your "dates", call up the Text To Columns dialog box (Data tab, Data Tools panel) and click the Finish button as soon as the dialog box appears. Your value should now all be real dates which you can now format with whatever date format you want.
 
Upvote 0
Select the dates such as A2:A26
Use Data TextToColumns
In the last option screen
Date: select MDY
Click Finish
Format the cells to your preference
 
Upvote 0
Select the dates such as A2:A26
Use Data TextToColumns
In the last option screen
Date: select MDY
Click Finish
Format the cells to your preference
I don't think you have to go past the first dialog page (see my reply to the OP above). Unless it only worked because of my locale (US), when I called up the Text To Column dialog box and clicked the Finish button as soon as the dialog box appeared, it correctly converted all the text dates to real (serial) dates.
 
Last edited:
Upvote 0
I added the mention of Date MDY since the original post stated "I would like to convert this text to excel date format dd/mm/yyyy"

N.B. My system has regional settings of dd-mm-yy. (not USA format)
If the OP's system has similar regional settings, he will have to specify the source data's format "MDY"
 
Upvote 0
I added the mention of Date MDY since the original post stated "I would like to convert this text to excel date format dd/mm/yyyy"

N.B. My system has regional settings of dd-mm-yy. (not USA format)
If the OP's system has similar regional settings, he will have to specify the source data's format "MDY"
Hmm! That is interesting and unexpected... I would have expected the month, as a word, would have made that determination for Text To Columns.
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,040
Members
449,092
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top