+ Reply to Thread
Results 1 to 4 of 4

Lookup range of values to see if any of them exist in a single column

  1. #1
    Registered User
    Join Date
    03-08-2012
    Location
    Oxford, UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Lookup range of values to see if any of them exist in a single column

    Hi,

    I have a worksheet which contains 5 columns of email addresses per row. I have another worksheet which contains a single email address column per row.

    I want to find out if any of the 5 email addresses on the first worksheet exist anywhere in the email column of the second worksheet.

    In other words:

    On first worksheet
    Name | Email1 | Email2 | Email3 | Email4 | Email5

    On second worksheet:
    Name | Email

    Do any of the email addresses on the first worksheet exist anywhere in that email column on the second worksheet.

    Hope someone can help

  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: Lookup range of values to see if any of them exist in a single column

    Hi. Welcome to forum.

    Something like this?

    =IF(COUNTIF(B2:F10,Sheet2!B2:B10)>0,"exist","nothing exists")

    Hope to helps you.
    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
    Registered User
    Join Date
    03-08-2012
    Location
    Oxford, UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Lookup range of values to see if any of them exist in a single column

    Hi Fotis,

    Thanks so much for replying. I tried your formula, but it doesn't seem to work for me I'm afraid. I can see what you are doing with the formula, but all I get is the "nothing exists" outcome, even when I can see that one of the email addresses I am testing for does exist in the other sheet.

  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: Lookup range of values to see if any of them exist in a single column

    A little modified formula

    =IF(COUNTIF($B$1:$F$10;Sheet2!B1)>0;"exist";"nothing exists")

    And a conditional formatting option..
    Attached Files Attached Files

+ 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