Time conversion help???

J

Jon M

Need to convert "Xh YYm" to excel time format for operations, etc.
Help!

Thanks as always,
 
S

Sheeloo

If you have hours in A1 and minutes in B1
=(A1*60+B1)/(24*60)
will convert it into Excel date/time...

You can split your values into hours and minutes by Data->Text to column by
using space as the delimiter...

If you also have h and mm then either you can search and replace them with
nothing or use LEFT function to extract the numeric part.
 
L

Luke M

If your entry is in A2, formula to convert:
=TIME(LEFT(A2,FIND("h",A2)-1),MID(A2,FIND(" ",A2)+1,2),0)

Assumed that there is a space in entry, and that you are using the standard
2 digits for minutes (nothing like: 4h 132m)
 
Top