This one has me stumped.
Suppose I have a list of Locations with rankings according to different criteria (this is my "data table"):
Sheet Name: "Data Sheet"
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Location
[/TD]
[TD]Ranking Criteria #1[/TD]
[TD]Ranking Criteria #2[/TD]
[TD]Ranking Criteria #3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Entity #1[/TD]
[TD]1
[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Entity #2[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Entity #3[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Now, suppose I have an output table on another sheet:
Sheet Name: "Output Sheet"
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Ranking[/TD]
[TD]Entity for Criteria #1[/TD]
[TD]Entity for Criteria #2[/TD]
[TD]Entity for Criteria #3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Entity #1[/TD]
[TD]Entity #3[/TD]
[TD]Entity #3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]Entity #2[/TD]
[TD]Entity #1[/TD]
[TD]Entity #2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]3[/TD]
[TD]Entity #3[/TD]
[TD]Entity #2[/TD]
[TD]Entity #1[/TD]
[/TR]
</tbody>[/TABLE]
Basically, I need the formula to return the cells in red letters, but I can't quite figure it out. It seems to be a trivial Index-Match formula. However, since I want a *single formula* (rather than a separate one for each column in the output sheet), I'm not quite sure how to do it -- it seems like it would require a variable columns against which to match (B, C, or D on "Data Sheet", depending on which Criteria we are using).
In other words, I want to input the Criteria Name and the Rank, and receive the Entity Name as output. Let me know if this doesn't make sense.
Suppose I have a list of Locations with rankings according to different criteria (this is my "data table"):
Sheet Name: "Data Sheet"
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Location
[/TD]
[TD]Ranking Criteria #1[/TD]
[TD]Ranking Criteria #2[/TD]
[TD]Ranking Criteria #3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Entity #1[/TD]
[TD]1
[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Entity #2[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Entity #3[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Now, suppose I have an output table on another sheet:
Sheet Name: "Output Sheet"
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Ranking[/TD]
[TD]Entity for Criteria #1[/TD]
[TD]Entity for Criteria #2[/TD]
[TD]Entity for Criteria #3[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Entity #1[/TD]
[TD]Entity #3[/TD]
[TD]Entity #3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]2[/TD]
[TD]Entity #2[/TD]
[TD]Entity #1[/TD]
[TD]Entity #2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]3[/TD]
[TD]Entity #3[/TD]
[TD]Entity #2[/TD]
[TD]Entity #1[/TD]
[/TR]
</tbody>[/TABLE]
Basically, I need the formula to return the cells in red letters, but I can't quite figure it out. It seems to be a trivial Index-Match formula. However, since I want a *single formula* (rather than a separate one for each column in the output sheet), I'm not quite sure how to do it -- it seems like it would require a variable columns against which to match (B, C, or D on "Data Sheet", depending on which Criteria we are using).
In other words, I want to input the Criteria Name and the Rank, and receive the Entity Name as output. Let me know if this doesn't make sense.