+ Reply to Thread
Results 1 to 3 of 3

Index Match Combination for two variables

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    NY, NY
    MS-Off Ver
    Excel 2007
    Posts
    5

    Index Match Combination for two variables

    Hi,

    Having some trouble combining if and index and match to find a value in something like the following:

    cow pig dog
    a 2 4 6
    b 66 55 44
    c 23 32 79
    d 11 14 111
    e 3 4 5

    After my dutiful google searching, the best thing I found was an array formula something like this: =INDEX($C$2:$C$5,MATCH(D2,IF($B$2:$B$5=E2,$A$2:$A$5),0))

    But when I tried to apply it, it wasn't working out. Basically what I want is the person to input an a-e and a cow, pig, or dog, and then to spit out the assigned value.

    Thanks!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Index Match Combination for two variables

    Just use match twice in the index
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-15-2011
    Location
    NY, NY
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Index Match Combination for two variables

    Beautiful, thanks. And thanks for typing it up into a doc---i should have done that.

+ 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