O
Old Tone
How do I extract decimal numbers from alphanumeric strings to perform
calculations on the number, eg 25.1 km or 100 m.
calculations on the number, eg 25.1 km or 100 m.
B. R.Ramachandran said:Hi,
Use the formula,
=1*LEFT(A1,FIND(" ",A1)-1)
The formula should work if the alphanumeric strings are of the format you
shown in your examples, i.e., number and unit separated by a space.
Regards,
B. R. Ramachandan
Don Guillett said:try
to get 16:30
=TEXT(LEFT(D2,FIND("m",D2)-1)&":"&MID(D2,FIND(" ",D2),FIND("s",D2)-FIND("
",D2)),"hh:mm")
to get 16.5
=LEFT(D2,FIND("m",D2)-1)&TEXT(MID(D2,FIND(" ",D2),FIND("s",D2)-FIND("
",D2))/60,".#")