+ Reply to Thread
Results 1 to 5 of 5

Help on deleting the first and last digit in a cell

  1. #1
    Registered User
    Join Date
    10-22-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    23

    Help on deleting the first and last digit in a cell

    Hello, I need to delete the first and last digits of a particular cell and move it into a new cell.

    EX:

    Cell A2 has: 170004032912 another EX: 000005487966
    B2 needs to be: 7000403291 needs to be: 0000548796

    Please help! Thanks so much in advance!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help on deleting the first and last digit in a cell

    Based on your samples

    B2: =MID(A2,2,LEN(A2)-2)

  3. #3
    Registered User
    Join Date
    10-22-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Help on deleting the first and last digit in a cell

    Wow, that was fast ... thanks so much!!! Sorry to bug, I have another one:

    I need to delete the first part of a cell:

    EX:

    Cell A2 has: BR SABER TOOTH SKULL SMALL
    B2 needs to be: SABER TOOTH SKULL SMALL

    Another EX:

    Cell A2 has: EHEIM PRO 3 FILTER 2071
    B2 needs to be: PRO 3 FILTER 2071

    Thanks a million!

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help on deleting the first and last digit in a cell

    Based on the new question

    B2: =REPLACE(A2,1,FIND(" ",A2),"")

  5. #5
    Registered User
    Join Date
    10-22-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Help on deleting the first and last digit in a cell

    Amazing - thanks!!!

+ 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