AFZAL SOHAIL
Board Regular
- Joined
- May 31, 2023
- Messages
- 156
- Office Version
- 2021
- 2016
- Platform
- Windows
=TEXTBEFORE(J2,"h ")*60 this bit - multiplies the hours by 60 to get minutes TEXTAFTER(TEXTBEFORE(J2,"m"),"h ") will extract just the minutes and add them - so the number between the h and m |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2 | B2 | =LEFT(A2,FIND("h",A2)-1)*60 |
C2 | C2 | =MID(A2,FIND("h ",A2)+2,(FIND("m",A2))-(FIND("h ",A2)+2)) |
D2 | D2 | =(LEFT(A2,FIND("h",A2)-1)*60)+(MID(A2,FIND("h ",A2)+2,(FIND("m",A2))-(FIND("h ",A2)+2))*1) |
1h 30m | 90 |
21h 0m | 1260 |
3h 10m | 190 |
2 hr. 09 min. |
3 hr. 00 min. |
1 hr. 53 min. |