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:
February 9th 2018, 18:00:00.000
I have tried using
=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.

<tbody>
</tbody><colgroup><col></colgroup>
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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.

<tbody>
</tbody><colgroup><col></colgroup>
 
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,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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