ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   seperate words in a cell (https://www.excelbanter.com/excel-worksheet-functions/69926-seperate-words-cell.html)

JR

seperate words in a cell
 
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

Ron Coderre

seperate words in a cell
 
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


"JR" wrote:

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



All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com