+ Reply to Thread
Results 1 to 4 of 4

Thread: Stripping Letters Out of a Column

  1. #1
    Registered User
    Join Date
    10-21-2011
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Stripping Letters Out of a Column

    Right, ladies and gents, I have a bit of conundrum here.

    I've got a spreadsheet that has a column that has letters THEN a number. I only need the number.

    The issue is that I can't just do a replace all because there're about 1 million rows in this list and there're about 100,000 different letter sequences before the numbers. The letter sequences are all also different lengths.

    Is there a way to strip all the letters from this column alone (I suppose I could transfer it to another spreadsheet and strip out all letters, so do with that as you will) without ruining the rest of the spreadsheet?

    Thanks in advance,

    Bob
    Last edited by bobbertr; 12-14-2011 at 05:19 AM.

  2. #2
    Forum Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    3.0
    Posts
    2,472

    Re: Stripping Letters Out of a Column

    Hi,

    This array (CTRL, SHIFT & ENTER) formula returns just the numeric portion of the cell contents

    =1*MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$99),1)),0),COUNT(1*MID(A1,ROW($1:$99),1)))

    note that the maximum length of the contents of A1 should be 99 characters. If this is going to be longer, alter the ROW($1:$99) portions of the formula.
    Please disregard anything in the above post. It may well have been edited without my consent, as has been the case with several posts and threads recently.

  3. #3
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Stripping Letters Out of a Column

    Hi

    I've got a spreadsheet that has a column that has letters THEN a number. I only need the number.
    And also you mentioned that you have too much data, I think a more simple formula will work well.

    Pls try this in B1 per example.

    =LOOKUP(9^9;1*RIGHT(TRIM(A1);COLUMN($2:$2)))
    Hope to helps you.
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  4. #4
    Registered User
    Join Date
    10-21-2011
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Stripping Letters Out of a Column

    Thank you very much, that worked perfectly.

+ 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.2.0