Date and Time Format

babelfish

New Member
Joined
Aug 2, 2007
Messages
13
Hi,

I am trying to view some Datalog files downloaded from a device in a .txt format we have that then need to delimit. The Date and Time format however when it comes off is in the following format
20180711140751

where it looks to be YYYYMMDDHHMMSS

I am struggling to find how to reformat this into a usuable and readable Date and time format.

The delimited text example is below before importing to excel
VAL;20180711172312;0.00
EVE;20180711172418;Switch Instr Off (Instrument Channel)

Any help appreciated.

Cheers
Graeme
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Let's say that your entry is a text entry in cell A4.
Here is a formula that will convert it to a valid date/time entry:
Code:
=DATE(LEFT(A4,4),MID(A4,5,2),MID(A4,7,2)) + TIME(MID(A4,9,2),MID(A4,11,2),MID(A4,13,2))
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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