+ Reply to Thread
Results 1 to 4 of 4

Remove leading zero from alphanumeric string

Hybrid View

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    Fort Worth, TX
    MS-Off Ver
    Excel 2007
    Posts
    30

    Remove leading zero from alphanumeric string

    I'm having trouble removing leading zeros if any from an alphanumeric string, a mapsco grid

    Current Data:
    062Z
    008P
    114A


    I would like my output to display as:
    62Z
    8P
    114A

    I tried the trim(=TRIM(B2)), but I think it only removes spaces, not zeros. Any help is appreciated.

    Thanks,
    Kelly

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Remove leading zero from alphanumeric string

    Maybe try:
    Formula: copy to clipboard
    =LEFT(A1,LEN(A1)-1)*1&RIGHT(A1,1)


    Assuming that there is only one letter at the end of the sequence.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    09-12-2012
    Location
    Fort Worth, TX
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Remove leading zero from alphanumeric string

    works great! thank you so much

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Remove leading zero from alphanumeric string

    Glad it all worked out.

    Good luck.

    abousetta

+ 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