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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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