+ Reply to Thread
Results 1 to 8 of 8

Parsing a alpha character out of a cell

  1. #1
    Registered User
    Join Date
    08-27-2003
    Location
    Seattle, Washington
    Posts
    17

    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)?
    Last edited by Lram; 10-15-2005 at 11:57 AM. Reason: to correct spelling errors
    Best regards,
    Lram

  2. #2
    Registered User
    Join Date
    10-02-2005
    Posts
    30
    Is it always one character?

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

  3. #3
    Registered User
    Join Date
    08-27-2003
    Location
    Seattle, Washington
    Posts
    17
    Yes, it is always a single alpha character (Caps), and always appended to the numeric value as 99X.

  4. #4
    Registered User
    Join Date
    10-02-2005
    Posts
    30
    =left(a1,len(a1)-1)

  5. #5
    Registered User
    Join Date
    08-27-2003
    Location
    Seattle, Washington
    Posts
    17
    Lilllabeth,

    Thanks, that works great! Now I must read up on that function.

  6. #6
    Registered User
    Join Date
    10-02-2005
    Posts
    30
    Great! Read up on both functions - Left and Len. Look at the Right function, too.

  7. #7
    Ron Rosenfeld
    Guest

    Re: Parsing a alpha character out of a cell

    On Sat, 15 Oct 2005 10:53:43 -0500, Lram
    <[email protected]> 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

  8. #8
    L. Howard Kittle
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    >
    > 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
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1