OilEconomist
Active Member
- Joined
- Dec 26, 2016
- Messages
- 439
- Office Version
- 2019
- Platform
- Windows
Thanks in advance for any assistance provided by anyone.
Please excuse the title as it should state "Convert Downloaded Minutes and Seconds from Date and Time Back To Minutes and Seconds.
The solution to this can be VBA or just simple Excel.
The following is a sample set of data which I have downloaded (Column A) which is suppose to be minutes and seconds. Please note that the original data set is much larger than this or I would just manually make the change.
I need to extract the minutes into column C and the seconds in column D. For this small sample size I have manually done it (Columns C & D). The issue is that once the data is pasted, it is stored as a date and time format and I cannot figure out what formula to use to extract the minutes and seconds.
In column F I use an hour formula to extract the hours, but if it's greater than 24 minutes it only calculates everything after the 24 minutes (27 minutes shows as 3 minutes) (see Row 4 and Row 9 issue). In column G I was trying to use a formula for the minutes, but could not figure anything out to give me just minutes.
Please excuse the title as it should state "Convert Downloaded Minutes and Seconds from Date and Time Back To Minutes and Seconds.
The solution to this can be VBA or just simple Excel.
The following is a sample set of data which I have downloaded (Column A) which is suppose to be minutes and seconds. Please note that the original data set is much larger than this or I would just manually make the change.
Book2 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | DOWNLOADED DATA | MANUAL | FORMULA | ||||||
2 | MINUTES | SECONDS | MINUTES | SECONDS | |||||
3 | 19:28:00 | 19 | 28 | 19 | 7:28 PM | ||||
4 | 27:50:00 | 27 | 50 | 3 | 3:50 AM | ||||
5 | 19:48 | 19 | 48 | 19 | 7:48 PM | ||||
6 | 23:46 | 23 | 46 | 23 | 11:46 PM | ||||
7 | 25:19:00 | 25 | 19 | 1 | 1:19 AM | ||||
8 | 18:43 | 18 | 43 | 18 | 6:43 PM | ||||
9 | 3:50 | 3 | 50 | 3 | 3:50 AM | ||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F3:F9 | F3 | =HOUR(A3) |
G3:G9 | G3 | =TIME(HOUR(A3), MINUTE(A3), SECOND(A3)) |
I need to extract the minutes into column C and the seconds in column D. For this small sample size I have manually done it (Columns C & D). The issue is that once the data is pasted, it is stored as a date and time format and I cannot figure out what formula to use to extract the minutes and seconds.
In column F I use an hour formula to extract the hours, but if it's greater than 24 minutes it only calculates everything after the 24 minutes (27 minutes shows as 3 minutes) (see Row 4 and Row 9 issue). In column G I was trying to use a formula for the minutes, but could not figure anything out to give me just minutes.