+ Reply to Thread
Results 1 to 6 of 6

Series of 8 character numbers - how to remove 1st 2 digits and last digit on each number.

  1. #1
    Registered User
    Join Date
    04-19-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2007
    Posts
    2

    Series of 8 character numbers - how to remove 1st 2 digits and last digit on each number.

    Cell A1 = 10002170
    Cell A2 = 10068007

    How do i remove 1st 2 digits and last digits on the numbers in each cell.

    End result should look like this :

    Cell A1 = 00217
    Cell A2 = 68007

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Series of 8 character numbers - how to remove 1st 2 digits and last digit on each numb

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please click the * icon below if I have helped.

  3. #3
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Series of 8 character numbers - how to remove 1st 2 digits and last digit on each numb

    your example doesn't follow a rule, cell a1 excludes the final 0 but a2 is the last 5 digits, is this correct? that makes it harder because you can't use a simple mid() formula

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Series of 8 character numbers - how to remove 1st 2 digits and last digit on each numb

    Melvin's suggestion will work if the string/value length is the same, but if the lenth differs, try this isntead

    =MID(A1,3,LEN(A1)-4)

    If you need the answer to be value (left/mid/right all return text/string) then either use...
    =value(MID(A1,3,LEN(A1)-4))
    or
    =MID(A1,3,LEN(A1)-4)*1
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    04-19-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Series of 8 character numbers - how to remove 1st 2 digits and last digit on each numb

    Apologes, you are correct .

    The end result should look as follows:

    Cell A1 = 00217
    Cell A2 = 06800

  6. #6
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Series of 8 character numbers - how to remove 1st 2 digits and last digit on each numb

    great sounds like you have your answer, use a mid formula. if so lets mark this thread as solved

+ 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