ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   remove text from cell containing numbers (https://www.excelbanter.com/excel-discussion-misc-queries/78898-remove-text-cell-containing-numbers.html)

Tim

remove text from cell containing numbers
 

How can i remove the text from a cell to leave the mumbers?
I can remove it when there is only one block, IE 16m to read 16

But what about 16m 30s to read 16.30?

or even better as the above means 16minutes 30seconds i would love it to
read 16.50



Gary''s Student

remove text from cell containing numbers
 
If G22 contains your example, then:


=LEFT(G22,2) & "." & MID(G22,5,2)
will yield 6.30
--
Gary's Student


"Tim" wrote:


How can i remove the text from a cell to leave the mumbers?
I can remove it when there is only one block, IE 16m to read 16

But what about 16m 30s to read 16.30?

or even better as the above means 16minutes 30seconds i would love it to
read 16.50



Ron Coderre

remove text from cell containing numbers
 
Try something like this:

Select the range of cells
<Edit<Replace
Find what: m
Replace with: (clear this field so it contains nothing)
Click the [Replace All] button

Leave the dialog open....

Find what: s
Replace with: /60
Click the [replace all] button

The values should now be numeric with a fraction format
Example: 16m 30s will become 16 1/5

Change the number format to Gereral or Number

Does that help?

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

XL2002, WinXP-Pro


"Tim" wrote:


How can i remove the text from a cell to leave the mumbers?
I can remove it when there is only one block, IE 16m to read 16

But what about 16m 30s to read 16.30?

or even better as the above means 16minutes 30seconds i would love it to
read 16.50




All times are GMT +1. The time now is 02:59 PM.

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