Parsing a alpha character out of a cell
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)? -- Lram ------------------------------------------------------------------------ Lram's Profile: http://www.excelforum.com/member.php...nfo&userid=238 View this thread: http://www.excelforum.com/showthread...hreadid=476500 |
Is it always one character? Is the one character always at the right (end) of the entry? -- Lilliabeth ------------------------------------------------------------------------ Lilliabeth's Profile: http://www.excelforum.com/member.php...o&userid=27741 View this thread: http://www.excelforum.com/showthread...hreadid=476500 |
Yes, it is always a single alpha character (Caps), and always appended to the numeric value as 99X. -- Lram ------------------------------------------------------------------------ Lram's Profile: http://www.excelforum.com/member.php...nfo&userid=238 View this thread: http://www.excelforum.com/showthread...hreadid=476500 |
=left(a1,len(a1)-1) -- Lilliabeth ------------------------------------------------------------------------ Lilliabeth's Profile: http://www.excelforum.com/member.php...o&userid=27741 View this thread: http://www.excelforum.com/showthread...hreadid=476500 |
Lilllabeth, Thanks, that works great! Now I must read up on that function. -- Lram ------------------------------------------------------------------------ Lram's Profile: http://www.excelforum.com/member.php...nfo&userid=238 View this thread: http://www.excelforum.com/showthread...hreadid=476500 |
Great! Read up on both functions - Left and Len. Look at the Right function, too. -- Lilliabeth ------------------------------------------------------------------------ Lilliabeth's Profile: http://www.excelforum.com/member.php...o&userid=27741 View this thread: http://www.excelforum.com/showthread...hreadid=476500 |
On Sat, 15 Oct 2005 10:53:43 -0500, Lram
wrote: 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 |
Parsing a alpha character out of a cell
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 "Lram" wrote in message ... 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)? -- Lram ------------------------------------------------------------------------ Lram's Profile: http://www.excelforum.com/member.php...nfo&userid=238 View this thread: http://www.excelforum.com/showthread...hreadid=476500 |
All times are GMT +1. The time now is 06:44 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com