+ Reply to Thread
Results 1 to 4 of 4

In A column are like this '[email protected] : pass', i need to remove this part ': pass'

  1. #1
    Registered User
    Join Date
    06-18-2009
    Location
    home
    MS-Off Ver
    Excel 2003
    Posts
    11

    In A column are like this '[email protected] : pass', i need to remove this part ': pass'

    In A column, i have hundreds email account cells like this :
    Please Login or Register  to view this content.

    i need to remove the rigth part
    Please Login or Register  to view this content.

    so the cells just leave like this
    Please Login or Register  to view this content.




    please help guys, how to do that, GBU for that answering
    i like this forum, a lot unique stuff here

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: In A column are like this '[email protected] : pass', i need to remove this part ': pass

    =trim(left(a1,find(":",a1)-1))

    assuming data is in column A
    Regards,
    Vandan

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: In A column are like this '[email protected] : pass', i need to remove this part ': pass

    Give this a shot...

    =LEFT(A1,FIND(":",A1)-2) >> copy down
    HTH
    Regards, Jeff

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

    Re: In A column are like this '[email protected] : pass', i need to remove this part ': pass

    =trim(left(a1,find(":",a1)-1)) oh look 3 answers nearly all the same!
    or use find replace
    find space:*
    replace with nothing
    Last edited by martindwilson; 06-08-2012 at 04:46 AM.
    "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

+ 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