+ Reply to Thread
Results 1 to 9 of 9

Remove a string of numbers from excel cell leaving only text

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    los angeles
    MS-Off Ver
    Excel 2003
    Posts
    3

    Remove a string of numbers from excel cell leaving only text

    Hello, I need to remove only numbers from excel cell - I have tried using the "constant" function but did not work. I have thousands of cells with a consistent 4 digit number like this:

    1000 the rest is text

    How can I remove only numbers but leave all text in the cell and then if I can trim the cell so there are not any spaces at the beginning afte removing the numbers. Any help would be much appreciated!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Remove a string of numbers from excel cell leaving only text

    May be try like this...

    In A1 Cell
    1000 the rest is text

    In B1 Cell

    =MID(A1,5,5^6)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Remove a string of numbers from excel cell leaving only text

    welcome to the forum. could you provide more egs for us to see a pattern? you mentioned it's always 4 digits & you want to remove spaces at the beginning after removing, so right now, my guess can only be:
    =MID(A1,6,255)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Remove a string of numbers from excel cell leaving only text

    consistent 4 digit number
    also this just in case there would be no spaces between the numebrs and text. a typo i prefer say 1000the rest is text
    =TRIM(RIGHT(A1,(LEN(A1)-4)))
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Registered User
    Join Date
    12-04-2013
    Location
    los angeles
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Remove a string of numbers from excel cell leaving only text

    HI thank you - sorry I meant that all the numbers will be different and the text will be different for each cell - so it could be

    1000 tlasdjfskldaf;
    4008 aslkdfjasdlf;
    4555 asldkfjas;d

    what I meant is that it's consistently 4 digits-

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Remove a string of numbers from excel cell leaving only text

    what does a proper string look like?
    =trim(mid(a1,5,255)) is another one
    you could also use text to columns fixed width and skip the first column
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    12-04-2013
    Location
    los angeles
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Remove a string of numbers from excel cell leaving only text

    oh sorry I think that worked, however, I forgot to mention that not all cells have the numbers but just the text, so the only solution is running an =if(find((" but what would I indicate to find a number?

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Remove a string of numbers from excel cell leaving only text

    =if(isnumber(left(a1,4)+1),trim(mid(a1,5,255)),a1)

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Remove a string of numbers from excel cell leaving only text

    This should do it

    =TRIM(REPLACE(A1,1,4,""))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Remove text from cell(s) leaving only certain text?
    By Chestnuts in forum Excel General
    Replies: 7
    Last Post: 08-02-2013, 09:21 AM
  2. Remove numbers from text string
    By mkvassh in forum Excel General
    Replies: 2
    Last Post: 09-23-2011, 07:37 AM
  3. Removing Text and Leaving just numbers
    By FRIEL in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-16-2009, 08:12 AM
  4. remove text before and/or after a string in a cell
    By hmatharo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2008, 09:57 PM
  5. copying numbers and leaving the text
    By melvin in forum Excel General
    Replies: 2
    Last Post: 01-07-2005, 11:55 AM

Tags for this Thread

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