Excel not recognizing date in a csv imported date

theokaygadsby

New Member
Joined
Mar 14, 2018
Messages
2
Hello, thank you for reading.

I'm working with dates that are exported from Kibana like this:
[TABLE="width: 213"]
<tbody>[TR]
[TD]February 9th 2018, 18:00:00.000[/TD]
[/TR]
[TR]
[TD]I have tried using [/TD]
[/TR]
[TR]
[TD]=LEFT(A1,FIND(",",A1)-1))
and various combinations of the TEXT and DATEVALUE functions, and have not been able to get the value recognized as a date.

my goal is to extract the date into one column and the time into another and be able to sort on date, and format as different date formats as needed.
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
This works:
=DATEVALUE(IF(ISERROR(1*MID(A1,FIND(" ",A1)+2,1)),LEFT(A1,3)&" "&MID(A1,FIND(" ",A1)+1,1)&", "&MID(A1,FIND(",",A1)-4,4),LEFT(A1,3)&" "&MID(A1,FIND(" ",A1)+1,2)&", "&MID(A1,FIND(",",A1)-4,4)))

But you might also try Flash Fill which works.
[TABLE="width: 202"]
<tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 
Upvote 0
Also, Power query works, too. Replace th with ",", nd with ",", and st with ","; split columns by comma, change date field to Date.
 
Upvote 0
Thank You! that worked very well for me. Power Query is new to me, and I am new to Mr. Excel but I am glad it's out there. Thank You again!
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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