date and time conversion

deb

Active Member
Joined
Feb 1, 2003
Messages
400
Excel 365

I have dates and time (text format) European style that I need to setup like American formatting as a date.

23.05.2012 14:11:56 changed to 05/23/2012 14:11:56
24.08.2011 17:24:39 changed to 08/24/2011 17:24:39
06.04.2012 12:18:58 changed to 04/06/2012 12:18:58
06.04.2012 11:59:27 changed to 04/06/2012 11:59:27
24.08.2011 16:03:28 changed to 08/24/2011 16:03:28


Thanks in advance,
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
For a value in cell A1, use this formula:
Code:
=DATEVALUE(MID(A1,4,2) & "/" & LEFT(A1,2) & "/" &  MID(A1,7,4)) + TIMEVALUE(RIGHT(A1,8))
which will convert it to a valid date/time.

Then you can apply your Custom format of:
mm/dd/yyyy hh:mm:ss
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

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