Look up and return value based on more than one factor

toMarsandBack

New Member
Joined
Dec 26, 2016
Messages
3
I've been searching high and low for a formula that will return a value from a table based on multiple factors (seems to be some combination of IF and Vlookup formula). I looked through the forum to see if anyone has already posted a question similar to mine but I didn't find an exact match (is an excel formula as unique as a snowflake?) Anyways, with that being said, I understand that the people providing help on this forum have to take time out of their day to come up with answers so I'm more than willing to make a donation to the forum. I've spent way too much time on this and just need a good answer at this point.

Sheet 1
PlayerPositionTeamOpponentvs. player
JohnPGLALMEM?????
MarkSGLALMEM?????

<tbody>
</tbody>

PlayerPositionTeamOpponent
MikePGMEMLAL

<tbody>
</tbody>

I need a formula that will use values in the Opponent and Position columns in sheet1 - in this case MEM and PG - and return the corresponding value - in this case Mike. Simply put, Mike is the Memphis PG that is guarding the Lakers PG.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,522
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Welcome to Mr Excel

You need and array formula.

E2 of Sheet1
=IFERROR(INDEX(Sheet2!$A$2:$A$100,MATCH(1,IF(Sheet2!$B$2:$B$100=B2,IF(Sheet2!$C$2:$C$100=D2,1)),0)),"Not Found")

confirmed with Ctrl+Shift+Enter, not just Enter

Hope this helps

M.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
In E2 of Sheet1 control+shift+enter, not just enter:

=INDEX(Sheet2!$A$2:$A$10,MATCH($B2,IF(Sheet2!$C$2:$C$10=$D2,Sheet2!$B$2:$B$10),0))
 

Watch MrExcel Video

Forum statistics

Threads
1,129,557
Messages
5,637,040
Members
416,955
Latest member
Gohar hussain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top