从重复的最大值返回相邻单元格值

时间:2017-05-26 16:36:31

标签: excel

我有一个93,000行的Excel数据列表(见下面的示例)

Column A - Company Name (duplicates)
Column B - Part Numbers (duplicates)
Column C - % Performance Rating for the Part Number in Column B for that Company in Column A

我做了一个支点并创建了一个独特的零件号excel列表,没有重复。我需要一个公式,搜索93K行的零件号范围,并输出具有最高RATING(C列)的公司名称(A列)。例如,对于下面的零件号1317M47G01,它将返回COMPANY C.数据列表中可能有5,000行此零件号,我需要它来搜索所有零件号的实例并返回具有最高RATING的公司名称。

A.Company   B.PART NUMBER C.RATING
COMPANY C   1317M47G01  86%
COMPANY F   8061-626    78%
COMPANY E   6810184M36  77%
COMPANY D   6810184M36  69%
COMPANY C   8061-626    58%
COMPANY B   6810184M36  58%
COMPANY A   1317M47G01  56%
COMPANY B   1317M47G01  47%
COMPANY A   6810184M36  45%
COMPANY C   6810184M36  45%
COMPANY B   8061-626    40%
COMPANY F   1317M47G01  35%
COMPANY A   8061-626    30%
COMPANY E   1317M47G01  30%
COMPANY F   6810184M36  29%
COMPANY D   8061-626    12%
COMPANY D   1317M47G01  12%
COMPANY E   8061-626    10%

1 个答案:

答案 0 :(得分:0)

=INDEX($A$2:$A$10,MATCH(F2,$B$2:$B$10,0))

enter image description here