I have a spreadsheet in Excel where in column, for example, B at the cell B5 and down there is a date entered in text format as YYYY-MM-DD HH:MM:SS. I want to convert it in a such way that Excel will be able to recognize it as date, because then I need to use filters and so on.
I found this question and tried to do it as follows: go to Format Cells, select Date Category, change my locale to Australia, select YYYY-MM-DD, but it doesn't work.
Can anybody help me to convert all text dates in a selected column to Excel dates? Hours, minutes and seconds aren't very important.
Here's what you need to do:
Make sure the cells with the text dates are formatted as General.
Use the DATEVALUE function to convert the text dates to Excel serial numbers. For example, if B5 has a YYYY-MM-DD HH:MM:SS, then in cell D5 type:
=DATEVALUE(B5)
See also: Convert Dates Stored as text to Dates (Microsoft Office)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With