seperate words in a cell

J

JR

If I have a report that fills in a cell as the following:

198.30 minutes

How would I write a formula to convert the cell into the 198.30 only?

Thanks
 
R

Ron Coderre

Try something like this:

For text in A1
B1: =VALUE(LEFT(A1,FIND(" ",A1)-1))

or (with some error checking)
B1: =IF(ISERROR(VALUE(LEFT(A1,FIND(" ",A1)-1))),"",VALUE(LEFT(A1,FIND("
",A1)-1)))


Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 
Top