How do I return the column header matching multipl

2019-08-28 18:40发布

I am trying to do a lookup of a subset of data using multiple criteria and returning the column header that meets the defined criteria. tab1 tab2 Each unique identifier has received an award from a judge (tab1). I would like to use a formula (or a macro) to return who the judge was that awarded the highest award in tab2.

In the worksheet on the second tab, I have been trying to use an index and match formula in the "Judge" column to accomplish this. However, my formula returns #N/A. My formula is currently configured: {=INDEX(Data!$B$2:$D$2,MATCH(A3&B3,Data!$A$3:$A$12&Data!$B$3:$D$12,0))}

The result should be the judge (Bates, Parks, or Gemini) that awarded the unique identifier the award level defined (the highest). Thanks in advance.

标签: excel lookup
1条回答
地球回转人心会变
2楼-- · 2019-08-28 19:29

Use:

=INDEX(DATA!$2:$2,MATCH(B3,INDEX(DATA!A:D,MATCH(A3,DATA!A:A,0),0),0))

enter image description here

查看更多
登录 后发表回答