Let's say cells A1 and A2 have these values:
13 Jan, 02:21 am
12 Jan, 10:15 pm
And many more values like those below in that column.
What formula could I use so that the B column would look like this?
2020-01-12 22:15
I'm confused about DATE(), DATEVALUE(), TIMEVALUE(), etc.
In PHP it is so much easier: https://www.php.net/manual/en/function.strtotime.php
Best Answer
I could find no magic function in google sheet. However, you may use the following.
Before applying this function, you need to add year value like
then
The above function is equivalent with
As cell value will be 43843.09792 as number, you need to change cell value format as DATETIME.
Google Sheet Example https://docs.google.com/spreadsheets/d/1nvvKiLyzZNdekx5-hDpDqzJ6T401G-mASqiKCZbUiQk/edit?usp=sharing