Book1 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | when loaded to table | ||||||
2 | Column1 | Column1 | |||||
3 | 12:09:01 AM Jun 18, 2022 | 18/06/2022 0:09 | |||||
4 | |||||||
Sheet1 |
Time | Time2 | Column3 | Column4 | Column5 |
12:08:53AM Jun 18, 2022 | 12:08:53AM | Jun | 18, | 2022 |
12:08:57AM Jun 18, 2022 | 12:08:57AM | Jun | 18, | 2022 |
12:09:01AM Jun 18, 2022 | 12:09:01AM | Jun | 18, | 2022 |
12:09:05AM Jun 18, 2022 | 12:09:05AM | Jun | 18, | 2022 |
12:09:09AM Jun 18, 2022 | 12:09:09AM | Jun | 18, | 2022 |
12:09:13AM Jun 18, 2022 | 12:09:13AM | Jun | 18, | 2022 |
12:09:17AM Jun 18, 2022 | 12:09:17AM | Jun | 18, | 2022 |
12:09:21AM Jun 18, 2022 | 12:09:21AM | Jun | 18, | 2022 |
12:09:25AM Jun 18, 2022 | 12:09:25AM | Jun | 18, | 2022 |
12:09:29AM Jun 18, 2022 | 12:09:29AM | Jun | 18, | 2022 |
12:09:33AM Jun 18, 2022 | 12:09:33AM | Jun | 18, | 2022 |
12:09:37AM Jun 18, 2022 | 12:09:37AM | Jun | 18, | 2022 |
12:08:53AM Jun 18, 2022 | 12:08:53 | AM | Jun 18, 2022 | 0.506168981 | 44730 | 6/18/22 12:08 53 PM |
=0+MID(A1&" "&REPLACE(A1,9,0," "),12,LEN(A1)+1)
PerhapsCoding4Fun - Looks like that might work but I have over 10,000 rows to convert. I took your formulas and put them in separate columns and Voila, the last column has most of what I need - brilliant! Thank you so much. Just one exception, the 12:08 is AM and not PM as the last column represents. That will be a problem in a calculation that goes over midnight.
12:08:53AM Jun 18, 2022 12:08:53 AM Jun 18, 2022 0.506168981 44730 6/18/22 12:08 53 PM
There is a leading zero on the time. This is a data extraction from a recording pulse oximeter and is usually done during sleeping hours which, obviously, can include hours before or after 10PM and early morning hours. In any case, I applied your formula to both times and got the expected result - thank you very much!! Some day I hope to become more expert in Excel but it is comforting to know that there are brilliant minds out there who are willing to assist. Thank you again.One example is almost always not enough. For the example you posted, we cannot tell if the time value has a leading zero for single hour time values nor can we tell if the day number has a leading zero for dates before the 10th of the month. If the time value always has a leading zero, then this formula will work whether the day value has a leading zero or not...
Excel Formula:=0+MID(A1&" "&REPLACE(A1,9,0," "),12,LEN(A1)+1)
12:08:57AM Jun 18, 2022 | 6/18/2022 12:08:57 AM |
03:03:57AM Jun 18, 2022 | 6/18/2022 3:03:57 AM |
This works. Thanks.