+ Reply to Thread
Results 1 to 10 of 10

How do you remove numbers and letters from a large number of cells in one column?

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    Glendale
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question How do you remove numbers and letters from a large number of cells in one column?

    Hey everyone,

    I was wondering if anyone knows how to remove numbers and letters from a column of cells.

    I got about 4000 cells that have a prefix of a seven digit number followed by the letters “LPH” then a space followed by an eight digit number after that.

    Example:
    1000100LPH 00005555
    1000101LPH 00005556
    1000103LPH 00005557
    1000104LPH 00005558

    All I need to stay in the cells are the eight digit number after the “LPH.” The seven digits number and the letters are of no use and I need to delete them all. Is there a way to delete all those unwanted digits and letters without having to do it manually, one by one?
    I’m currently working on Excel2007 and I’m definitely a noob to this so I won’t be offended if you explain it to me as if I were a third grader.

    Any help would be greatly appreciated.

    Thank you.
    ...Excel Noob...

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: How do you remove numbers and letters from a large number of cells in one column?

    If your examples start in cell A1, you could add a formula in B1 such as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then fill that formula down to the end of your list.

    - Moo

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: How do you remove numbers and letters from a large number of cells in one column?

    Assume that your data is in A1. In B1, type this formula and copy it down. =Right(A1,8)

    Alan

    Edit: Very fast Moo!
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    11-13-2012
    Location
    Glendale
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How do you remove numbers and letters from a large number of cells in one column?

    Quote Originally Posted by Moo the Dog View Post
    If your examples start in cell A1, you could add a formula in B1 such as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then fill that formula down to the end of your list.

    - Moo
    Quote Originally Posted by alansidman View Post
    Assume that your data is in A1. In B1, type this formula and copy it down. =Right(A1,8)

    Alan

    Edit: Very fast Moo!
    Oh wow, that was fast. It worked perfectly.

    Thank you guys for the information. Much appreciated!

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: How do you remove numbers and letters from a large number of cells in one column?

    You're welcome, Dark. And thanks, Alan... I rarely sneak one in before the gurus.

    - Moo

  6. #6
    Registered User
    Join Date
    11-13-2012
    Location
    Glendale
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How do you remove numbers and letters from a large number of cells in one column?

    One more noob question. On the same example I posted earlier how do you separate the two numbers into separate cells? I need to be able to sort via the last 8 digits but having both in separate columns would help me find duplicates and inconsistencies versus a client provided spread sheet.

    Thanks in advance! :-)

  7. #7
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: How do you remove numbers and letters from a large number of cells in one column?

    Well, if you wanted the left half of the example to be in one cell, you could use: =LEFT(A1,10) in cell B1, then use =RIGHT(A1,8) in C1

    That would give you
    A1: 1000100LPH 00005555
    B1: 1000100LPH
    C1: 00005555

    If you only want the first 7 numbers from the left, leaving off the LPH, then use =LEFT(A1,7)

    - Moo

  8. #8
    Registered User
    Join Date
    11-13-2012
    Location
    Glendale
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How do you remove numbers and letters from a large number of cells in one column?

    Quote Originally Posted by Moo the Dog View Post
    Well, if you wanted the left half of the example to be in one cell, you could use: =LEFT(A1,10) in cell B1, then use =RIGHT(A1,8) in C1

    That would give you
    A1: 1000100LPH 00005555
    B1: 1000100LPH
    C1: 00005555

    If you only want the first 7 numbers from the left, leaving off the LPH, then use =LEFT(A1,7)

    - Moo
    Ahhh I see. Thanks again Moo, It worked perfectly.

    Cheers!

  9. #9
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: How do you remove numbers and letters from a large number of cells in one column?

    You're welcome, Dark. Be sure to mark the thread as [SOLVED] if you feel the solutions given are what you needed. You can do so by clicking on 'Thread Tools' just above your first post in this thread, and selecting 'Mark Thread as Solved'.

    Thanks,
    Moo

  10. #10
    Registered User
    Join Date
    11-13-2012
    Location
    Glendale
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How do you remove numbers and letters from a large number of cells in one column?

    Quote Originally Posted by Moo the Dog View Post
    You're welcome, Dark. Be sure to mark the thread as [SOLVED] if you feel the solutions given are what you needed. You can do so by clicking on 'Thread Tools' just above your first post in this thread, and selecting 'Mark Thread as Solved'.

    Thanks,
    Moo

    Will do, Moo. Thanks again, much appreciated.

    Dark

+ 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