Date from text to excel date format

freddie_1

New Member
Joined
Jan 27, 2016
Messages
12
I have a date in the following format:

Aug 27, 2021 00:00
Aug 26, 2021 00:00

I've tried applying the following formula to get an excel format date but no cigar. I get a #VALUE! error in the cell. I've tried formatting the cell above to a text format and the date cell to date format but makes no difference.

=DATE(MID(A1,9,4),LEFT(A1,3),MID(A1,5,2))

Any help would be appreciated. Ideally I'd just like the date value to be in the format DD/MM/YYYY.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
How about
Excel Formula:
=DATE(MID(A2,9,4),MONTH(LEFT(A2,3)&"1"),MID(A2,5,2))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,652
Members
448,975
Latest member
sweeberry

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