Parsing a alpha character out of a cell

L

Lram

I have a spreadsheet containing weather data - the cells containing
windspeed and wind direction contain a data flag in addition to the
numeric value, example 90S for wind direction and 2.1S for wind speed.
I wish to get rid of the alpha character so I can work with the numeric
values.

How do I parse each cell to remove the alpha character(s)?
 
L

Lilliabeth

Is it always one character?

Is the one character always at the right (end) of the entry?
 
L

Lram

Yes, it is always a single alpha character (Caps), and always appende
to the numeric value as 99X
 
L

Lilliabeth

Great! Read up on both functions - Left and Len. Look at the Right
function, too.
 
R

Ron Rosenfeld

I have a spreadsheet containing weather data - the cells containing
windspeed and wind direction contain a data flag in addition to the
numeric value, example 90S for wind direction and 2.1S for wind speed.
I wish to get rid of the alpha character so I can work with the numeric
values.

How do I parse each cell to remove the alpha character(s)?

If the data flag is always there, and always a single character, then:

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


--ron
 
L

L. Howard Kittle

If the values need to be numeric, you may want to do this to convert back to
numbers.

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

HTH
Regards,
Howard
 

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