如何使用 VLOOKUP 查找最高值的对应文本

How to find corresponding text of the Highest value using VLOOKUP

ID| Name       | Description| Price
---------+------------+------------------
 1| Pen        | Blue ink   |  10
 1| Pencil     | HB         |  20
 2| Chair      | 4 legs     |  50
 1| Paper      | A4         |  25

这是一个 table 文具,我正在尝试使用 VLOOKUP 查找最高价格的名称。我不确定,但我在使用

时遇到错误

=VLOOKUP(MAX(D3:D6),A3:C6,2,FALSE)

但是我得到一个错误

A value is not available to the formula and function

我认为我的 VLOOKUP 语句的语法有问题,但我无法弄清楚。任何帮助将不胜感激

索引值,即您要在其中查找查找值(您的最大值)的列需要是最左边的列。 vlookup 只适用于右侧。

所以,index() 和 match() 就像这样:

index(B3:B6,match(max(d3:d6),d3:d6,0))

假设所有列等都没有显示,但您可以从那里获取。