removing part of string

K

ksnapp

hi, i have a sting that looks like the 24 seconds I need the numbe
alone. I tried a replace with "" as the new text and excell stil
treats the result as text. Any ideas
 
N

Norman Harker

Hi ksnapp!

If it's at the end, you could use a helper column

=--LEFT(A1,LEN(A1)-1)

The -- at the front converts the string return to a number.


--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
R

Ron Rosenfeld

hi, i have a sting that looks like the 24 seconds I need the number
alone. I tried a replace with "" as the new text and excell still
treats the result as text. Any ideas?

If it is always one or more numbers followed by a <space>, then

=--LEFT(A1,FIND(" ",A1))


--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top