+ Reply to Thread
Results 1 to 3 of 3

Find a text in a String in Excel

Hybrid View

  1. #1
    Registered User
    Join Date
    09-18-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    1

    Find a text in a String in Excel

    Hello,

    I have to find a text in a string in excel and if found return a yes or no

    E.G

    Sheet 1: Col1

    1286532624 [B27C0094-8835-1CCD-8B83-F2612604A745:abc@xyz.com] [09/17/2013 10:00:21]
    1286532624 [B27C0094-8835-1CCD-8B83-F2612604A745:abc@xyz.com] [09/17/2013 10:00:21]
    1286536021 [C2E58BE5-604A-DFDC-3D15-5B7AA107167F:lmn@xyz.com] [09/17/2013 10:00:24]
    1286536191 [C2E58BE5-604A-DFDC-3D15-5B7AA107167F:lmn@xyz.com] [09/17/2013 10:00:24
    1286536191 [C2E58BE5-604A-DFDC-3D15-5B7AA107167F:lmn@xyz.com] [09/17/2013 10:00:24]
    1286536192 [C2E58BE5-604A-DFDC-3D15-5B7AA107167F:pqr@xyz.com[09/17/2013 10:00:24]
    1286536192 [C2E58BE5-604A-DFDC-3D15-5B7AA107167F:pqr@xyz.com] [09/17/2013 10:00:24]


    Sheet 2 : Column 1
    pqr@xyz.com
    lmn@xyz.com
    abc@xyz.com

    So i need to find the text "abc@xyz.com" in (sheet 1:colunm1 whole range)
    and if is present in any of the rows return "Yes" else "NO"

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Find a text in a String in Excel

    Please try this file.
    Attached Files Attached Files
    Last edited by ramananhrm; 09-18-2013 at 03:13 AM.
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find a text in a String in Excel

    Hi and welcome to the forum.

    Perhaps 1 way could be this.

    In column B of sheet 2 put this and copy down.

    =IF(COUNTIF(Sheet1!A1:A1000,"*"&Sheet1!A1&"*"),"yes","no")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

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

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  2. Replies: 5
    Last Post: 05-23-2006, 12:45 PM
  3. [SOLVED] web and excel find text string...
    By sal21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2006, 06:45 PM
  4. Excel - Find & Replace text in a string
    By bklim in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-14-2005, 02:37 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