+ Reply to Thread
Results 1 to 19 of 19

Need to remove numbes from alphanumberic field

Hybrid View

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    6

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

    Re: Need to remove numbes from alphanumberic field

    Here, try this:

    =TRIM(RIGHT(SUBSTITUTE(A1,"-",REPT(" ",255)),255))
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    07-02-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Need to remove numbes from alphanumberic field

    Gosh so fast amazing but it didnt work out see waht i get :

    Email
    Email
    2-201715299-20-mhboub@yahoo.com
    22040-9655733226-9655733227-ottc99@yahoo.com
    2-205829852-205829851-pv@pharmavision.net


    instead of leavinf email ids, it just left Email

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Need to remove numbes from alphanumberic field

    Then this maybe:

    =LEFT(A1,FIND("~",SUBSTITUTE(A1,"-","~",LEN(A1)-LEN(SUBSTITUTE(A1,"-","")))))

    From 22040-9655733226-9655733227-ottc99@yahoo.com
    First formula will return: ottc99@yahoo.com
    and second: 22040-9655733226-9655733227-

    Is that OK?

  5. #5
    Registered User
    Join Date
    07-02-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Need to remove numbes from alphanumberic field

    again quick thanks a lot for that but unfortunately not it get back with under same

    #VALUE!
    #VALUE!

  6. #6
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Need to remove numbes from alphanumberic field

    Hi
    does every entry follow this pattern - ie a dash - precedes the e-mail address?
    if so, try this formula:

    =TRIM(RIGHT(LEFT(A1,FIND("@",A1)),LEN(LEFT(A1,FIND("@",A1)))-FIND("#",SUBSTITUTE(LEFT(A1,FIND("@",A1)),"-","#",LEN(LEFT(A1,FIND("@",A1)))-LEN(SUBSTITUTE(LEFT(A1,FIND("@",A1)),"-",""))))))&RIGHT(A1,LEN(A1)-FIND("@",A1))

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Need to remove numbes from alphanumberic field

    What kind of error you get?!
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-02-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Need to remove numbes from alphanumberic field

    im left with jsut

    #VALUE!
    #VALUE!

    in fields everything else gone...

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

    Re: Need to remove numbes from alphanumberic field

    Did you check my attachment?

  10. #10
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need to remove numbes from alphanumberic field

    zbors first formula can be extended to returm the numbers
    =SUBSTITUTE(A2,"-"&TRIM(RIGHT(SUBSTITUTE(A2,"-",REPT(" ",255)),255)),"")
    However there is a bogey "2211088-info@omex-g.com", depends on how many of that type there are if it is worth amending the formula or changing the result manually
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  11. #11
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Need to remove numbes from alphanumberic field

    Quote Originally Posted by Marcol View Post
    2211088-info@omex-g.com"
    I miss that one.. nice catch

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

    Re: Need to remove numbes from alphanumberic field

    is that the full text string? it looks suspicious that you got left with stuff after this
    =TRIM(RIGHT(SUBSTITUTE(A1,"-",REPT(" ",255)),255))
    "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

  13. #13
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need to remove numbes from alphanumberic field

    It's a bogey Martin, see post #10, the last hyphen is in the address.

  14. #14
    Registered User
    Join Date
    07-02-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Need to remove numbes from alphanumberic field

    Gosh guys amazing it worked i have to make it left then right as my other software needs email on 1st row,

    it worked hell..


    Lots of thanks to you all of you, i got hell of data like this i can clean and work on them now.....


    Thanks...

  15. #15
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Need to remove numbes from alphanumberic field

    If you are satisfied with the responses then please mark the thread as Solved.

    Good luck.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  16. #16
    Registered User
    Join Date
    07-02-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Re: Need to remove numbes from alphanumberic field

    how do i mark the thread as Solved ?

  17. #17
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Need to remove numbes from alphanumberic field

    Two ways:

    Easy way: Thread Tools --> Mark as Solved

    Standard way: Go Advanced --> Go to the first post --> change the prefix to [SOLVED]

  18. #18
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Need to remove numbes from alphanumberic field

    Just to tidy the thread ...
    This workbook clears the known bogeys with a second pass.
    Attached Files Attached Files

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

    Re: Need to remove numbes from alphanumberic field

    missed this one fred-blogs@carpo.com that's the format my email address is in!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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