Home

How do I convert dates such as '01-NOV-17 05.35.07 PM' to a standard date format?

Highlighted
Meilani Kelley
Occasional Visitor

I need to be able to quickly sort and filter a very large file, but I can't since the dates are in a non-standard format. How can I quickly change the format to a '01-NOV-17' date? It would take hours to change the several thousands of line items one by one.

2 Replies
Highlighted
Can we have the sample of those non-standard date?

Meilani,

 

These dates are treated as texts so you have to convert them to real dates by using this formula:

=DATEVALUE(SUBSTITUTE(A1,".",":"))

 

This formula may give you the serial number of the date!

No problem, you can format these numbers to date format as follows:

 

Highlight them, press Ctrl+1, go to Date category, select the format that you prefer, and then hit OK.

Related Conversations
Is it possible for Edge to play HEVC (H265) MKV files ?
HotCakeX in Discussions on
2 Replies
Date format in Stream
Dave Pyett in Microsoft Stream Forum on
3 Replies
Date filtering of Bing Searches
PhilipE3 in Discussions on
2 Replies
A problem with the Zoom level of a Tab
Tavory in Discussions on
9 Replies