+ Reply to Thread
Results 1 to 6 of 6

Removing letters in a cell

  1. #1
    Registered User
    Join Date
    01-14-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    15

    Removing letters in a cell

    I have searched and didnt quite find an answer.

    What i am trying to do is remove two letters in a long list of cells.

    I.e UN1268 to just 1268
    i.e UN0268 to just 0268

    the list is long! A2:A2205

    I dont think there should be a Code written for this. I dont want to go through every cell and delete UN.

    Maybe an If statment would work?

    Any ideas?

  2. #2
    Registered User
    Join Date
    05-06-2009
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Removing letters in a cell

    =RIGHT(A2,LEN(A2)-2)
    If they are all UN then 4 digits, you can shorten that formula to
    =RIGHT(A2,4)

  3. #3
    Registered User
    Join Date
    01-14-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Removing letters in a cell

    Quote Originally Posted by kellyfspringer View Post
    =RIGHT(A2,LEN(A2)-2)
    If they are all UN then 4 digits, you can shorten that formula to
    =RIGHT(A2,4)
    Where would you put that to reference all 2250 cells? yes they are all UN followed by 4 digits.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Removing letters in a cell

    Select the column. Hit Ctrl-H to open the Find and replace dialog. Enter

    Find what: UN
    Replace with: leave empty

    Click Replace All.

  5. #5
    Registered User
    Join Date
    05-06-2009
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Removing letters in a cell

    I'm sorry...
    I would put the formula =RIGHT(A2,4) in cell B2, then copy it down.

    to copy down:
    If you move your mouse over the bottom right corner of the cell that you want to copy, you can then click and drag down to cell B2205, and the cells will automatically reference the appropriate row in column A.

  6. #6
    Registered User
    Join Date
    01-14-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Removing letters in a cell

    Quote Originally Posted by teylyn View Post
    Select the column. Hit Ctrl-H to open the Find and replace dialog. Enter

    Find what: UN
    Replace with: leave empty

    Click Replace All.

    Just like butter.

    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