+ Reply to Thread
Results 1 to 3 of 3

Vlookup or index/match with multiple column and criteria?

  1. #1
    xirx
    Guest

    Vlookup or index/match with multiple column and criteria?

    Is it possible to ckeck multiple columns in a table lookup.

    E.g: Find the value in column C for which values
    in colums A and B are equal to 1 (yields "c")

    A B C
    0 1 a
    1 0 b
    1 1 x

    The only solution I see is to use a helper column to
    concatenate A and B and to a match on the concatenated
    search keys...

    Is there a solution without helper cells?

  2. #2
    KL
    Guest

    Re: Vlookup or index/match with multiple column and criteria?

    Hi xirx,

    try this array formula (ctrl+shift+enter):

    =INDEX(C1:C10,MATCH(E1&F1,A1:A10&B1:B10,0))

    Regard,
    KL


    "xirx" <[email protected]> wrote in message
    news:[email protected]...
    > Is it possible to ckeck multiple columns in a table lookup.
    >
    > E.g: Find the value in column C for which values
    > in colums A and B are equal to 1 (yields "c")
    >
    > A B C
    > 0 1 a
    > 1 0 b
    > 1 1 x
    >
    > The only solution I see is to use a helper column to
    > concatenate A and B and to a match on the concatenated
    > search keys...
    >
    > Is there a solution without helper cells?




  3. #3
    Domenic
    Guest

    Re: Vlookup or index/match with multiple column and criteria?

    Try...

    =INDEX(C1:C3,MATCH(1,(A1:A3=1)*(B1:B3=1),0))

    ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    In article <[email protected]>,
    xirx <[email protected]> wrote:

    > Is it possible to ckeck multiple columns in a table lookup.
    >
    > E.g: Find the value in column C for which values
    > in colums A and B are equal to 1 (yields "c")
    >
    > A B C
    > 0 1 a
    > 1 0 b
    > 1 1 x
    >
    > The only solution I see is to use a helper column to
    > concatenate A and B and to a match on the concatenated
    > search keys...
    >
    > Is there a solution without helper cells?


+ 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