+ Reply to Thread
Results 1 to 3 of 3

Help matching to multiple columns

  1. #1
    Registered User
    Join Date
    04-15-2012
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help matching to multiple columns

    Hi,

    What I'm trying to do is return a True value if the following is true:

    If the value in A2 of Table 2 is present in the A column of Table 1, then look in the corresponding row at the B column and C column in Table 1 to see if the letter 'Y' is present.

    For example:

    Excel.JPG

    In the above, in the Value Y column, I should get:

    True (because "1" is in the A column of Table 1, and the letter "Y" is in either the B column or C column of Table 1)
    False (because "3" is in the A column of Table 1, but the letter "Y" is not in either the B column or C column of Table 1)
    True (because "4" is in the A column of Table 1, and the letter "Y" is in either the B column or C column of Table 1)
    False (because "7" is in the A column of Table 1, but the letter "Y" is not in either the B column or C column of Table 1)
    True (because "9" is in the A column of Table 1, and the letter "Y" is in either the B column or C column of Table 1)

    I think I need some IFs, LOOKUPs, ANDs, ORs and MATCHes, but I'm not sure and don;t know how to nest them.

    Can anyone help.....?

    Thanks

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Help matching to multiple columns

    Hi magicacaca,


    Welcome to the forum.

    Please post an excel workbook not the image. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    04-15-2012
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2007
    Posts
    2

    Talking Re: Help matching to multiple columns

    Solved with:

    =OR(VLOOKUP(A2,'Table 1'!A:C,2,FALSE)="Y",VLOOKUP(A2,'Table 1'!A:C,3,FALSE)="Y")

+ 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