+ Reply to Thread
Results 1 to 14 of 14

Find text within column

  1. #1
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Find text within column

    Hi folks,

    thanks for your help in advance.

    I have a sheet with various (company) names in one column. In a different sheet, I have a list with names as well. Now I want to check, if the names from the first sheet are included in the second one.

    If the names were exactly the same, I would use =if(countif()). Unfortunately, the names originate from two different sources, thus they might not be completely identical.
    Is there a way to check this? If it were only one cell, that is concerned I guess, I coud use =isnumber(search()), but I have no idea how to apply this to a whole column.

    Thanks again!

  2. #2
    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 text within column

    Does my formula in this thread(without the "not(iferror) in front of it) help you?

    http://www.excelforum.com/excel-gene...ple-words.html

    Can you give us some example of the names? Even better if you'll upload a small sample workbook.
    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.

  3. #3
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Find text within column

    Thanks for the quick reply. I don't understand, what the "2^15" in your other formula does.
    Please see attached an example sheet (very simplified)
    Attached Files Attached Files

  4. #4
    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 text within column

    In C2 and copy down, try this.

    =IF(ISNUMBER(SEARCH(B2,'List 2'!$B$2:$B$13)),"yes","n0")

  5. #5
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Find text within column

    Hmm, very curious.
    In the example sheet it obviously works.
    In my sheet, the formula doesn't work.
    If I select only one cell on purpose (not the range in the column) where I know, the answer is "yes", it also works.
    Any ideas, why that could be the case?

  6. #6
    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 text within column

    simplistic question...but did you convert the range. 'List 2'!$B$2:$B$13)) to fit your real workbook?

  7. #7
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Find text within column

    Yes, of course I did .

  8. #8
    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 text within column

    can you copy some of your real data and upload again the sample workbook?

  9. #9
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Find text within column

    Here we go.
    And by the way: thanks a lot for the time you are taking.
    Attached Files Attached Files

  10. #10
    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 text within column

    Strange for me too. There are some spaces in column J. I tried with TRIM, but no result.

    Sorry, but as it's late here, i have to leave from the office. If you find no solution, i'll take a look tomorrow morning.

  11. #11
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Find text within column

    Hmm, can't figure out what causes the inability to find the text strings. Tried to replicate with a different sample and also didn't work (see attached in sheets 3 and 4)...

    I have no idea what the difference between example1 and example2 might be.
    Attached Files Attached Files

  12. #12
    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 text within column

    Still i don't know why first formula doesn't work, but this ARRAY formula looks to work fine.

    Is it?

    =IF(MAX(IF(ISNUMBER(SEARCH(B3;'List 2'!$J$2:$J$351));1; 0))>0;"YES";"NO")
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: Find text within column

    Hey, awesome, this works! Thanks a lot.

  14. #14
    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 text within column

    You are welcome! Thanks for the feed back.

    I was ready to suggest another regular formula.In C3 of your first sheet and copy down, try.

    =IF(ISTEXT(VLOOKUP("*"&B3&"*",'List 2'!$J$2:$J$351,1,0)),"yes","no")

+ 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