+ Reply to Thread
Results 1 to 11 of 11

Remove numbers at the end of a cell

  1. #1
    Registered User
    Join Date
    12-13-2010
    Location
    Charlotte
    MS-Off Ver
    Excel 2003
    Posts
    6

    Cool Remove numbers at the end of a cell

    I have a list of emailNumber. I need to separate the email and number into two columns (vs both in cell 1). The number varies in length of characters. I cannot split it by numbers as sometimes there is a number in the email.



    I have tried this formula and it wont work, as there is no space before the number.

    =LEFT(A1,LEN(A1)-LEN(MID(A1,FIND(CHAR(22),SUBSTITUTE(A1," ",CHAR(22),LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))+1,255))-1)

    Example data:

    [email protected]3495
    [email protected]232

    I would like column 2 to be [email protected] and [email protected] and column 3 to be 3495 and 232


    Any help would be greatly appreciated!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Remove numbers at the end of a cell

    Try this in C1:

    =LOOKUP(99^99, --RIGHT(A1, row($a$1:$a$10)))

    And this in B1:
    =Substitute(A1, b1, "")

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Remove numbers at the end of a cell

    I was about to post that (or very similar...)

    =ABS(LOOKUP(10^10,--RIGHT(A1,ROW($1:$100))))

    but then... what about possible leading zeros??? Still stumped with that one.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    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 numbers at the end of a cell

    And in case there some email addresses that do not have trailing numbers
    in C1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In B1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    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

  5. #5
    Registered User
    Join Date
    12-13-2010
    Location
    Charlotte
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Remove numbers at the end of a cell

    Quote Originally Posted by zbor View Post
    Try this in C1:

    =LOOKUP(99^99, --RIGHT(A1, row($a$1:$a$10)))

    And this in B1:
    =Substitute(A1, b1, "")

    Perfect, luckily I didn't have leading zeros! (re Glenn)

    I did change the second one to be A1,C1 (if anyone else needs to use the formulas)


    Thanks so much!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Remove numbers at the end of a cell

    Great! I'm glad to have helped! If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Remove numbers at the end of a cell

    An afterthought in case there should ever be leading zeros.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Dave

  8. #8
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Remove numbers at the end of a cell

    Copy data into 2 columns
    Col 1: Press Ctrl + H, Line on type: .com* , line below type: .com
    Replace All =>> done
    Col 2: Press Ctrl + H, Line on type: *.com , line below type don't type anything
    Replace All =>> done

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Remove numbers at the end of a cell

    Quote Originally Posted by jesseka View Post
    I did change the second one to be A1,C1 (if anyone else needs to use the formulas)
    Yes, mine mistake while typing.
    There could be more problems like
    Please Login or Register  to view this content.
    So if you run on any undesired output on above approaches write it back so we can create workaround.
    Last edited by zbor; 10-06-2016 at 06:26 AM.

  10. #10
    Registered User
    Join Date
    02-28-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Remove numbers at the end of a cell

    Awesome replies.

  11. #11
    Registered User
    Join Date
    02-28-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Remove numbers at the end of a cell

    Awesome replies.

+ 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. [SOLVED] How do I remove duplicate numbers from a cell?
    By StreekyD in forum Excel General
    Replies: 7
    Last Post: 11-18-2015, 02:02 PM
  2. [SOLVED] Remove the numbers at the end of a name in a cell
    By MATU70 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-21-2014, 02:44 AM
  3. [SOLVED] How to remove numbers from a Cell and just keep the Text?
    By dksodhi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2012, 07:01 AM
  4. formula to remove numbers out of a cell.
    By RobertJohn in forum Excel General
    Replies: 5
    Last Post: 03-29-2008, 07:59 PM
  5. formula to remove numbers out of a cell.
    By mikeburg in forum Excel General
    Replies: 1
    Last Post: 03-28-2008, 10:58 PM
  6. [SOLVED] remove text from cell containing numbers
    By Tim in forum Excel General
    Replies: 2
    Last Post: 03-22-2006, 10:35 AM

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