vlookup or index?

Joined
Aug 2, 2011
Messages
1
Reaction score
0
I need to lookup values under various conditions. For example, I have the following hard-coded data table in B30:E41 (data table doesn't post well...see attached):


1 78 667 1,912
1 12 746 1,930
1 110 766 1,971
2 64 1,020 2,505
2 36 1,051 2,598

I've written the following formula in an effort to return 1,971 from the 4th column:

{=+INDEX(E30:E41,MATCH(1,(B30:B41=1)*(C30:C41=MAX(C30:C41)),0))}

The problem is I need column B to be dynamic so that if I change B32 to "2", I would like the formula to return "1,912" as that corresponds to the maximum value in column C that is matched with a "1" from column B....

Any help would be appreciated!!
 

Attachments

  • vlookup or index.png
    vlookup or index.png
    38 KB · Views: 114

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top