How do I return the column header matching multiple criteria using Excel

。_饼干妹妹 提交于 2019-12-13 03:15:31

问题


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. 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.


回答1:


Use:

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



来源:https://stackoverflow.com/questions/47732104/how-do-i-return-the-column-header-matching-multiple-criteria-using-excel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!