Sufiyan97
Well-known Member
- Joined
- Apr 12, 2019
- Messages
- 1,616
- Office Version
- 365
- 2013
- Platform
- Windows
I have data as below, formula works fine except for greater or equal to 24 hours
How to get correct time if it is greater or equal to 24 hours
How to get correct time if it is greater or equal to 24 hours
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Time Tracked Text | Time | |||
2 | 4 h 15 m | 4:15:00 | |||
3 | 15 m | 0:15:00 | |||
4 | 15 m | 0:15:00 | |||
5 | 3 h 30 m | 3:30:00 | |||
6 | 2 h 15 m | 2:15:00 | |||
7 | 45 h | 21:00:00 | |||
8 | 44 h | 20:00:00 | |||
9 | 25 h | 1:00:00 | |||
10 | 24 h | 0:00:00 | |||
11 | |||||
12 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B10 | B2 | =IF(ISNUMBER(SEARCH("h",A2)),TIMEVALUE(SUBSTITUTE(SUBSTITUTE(A2," h",":")," m",":00")),TIMEVALUE("00:"&SUBSTITUTE(A2," m",":00"))) |