如何使用vlookup查找最高值的相应文本

发布于 2025-01-22 06:23:50 字数 468 浏览 1 评论 0原文

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

这是我试图使用vlookup找到最高价格的固定表。我不确定,但是我使用时会遇到错误

= vlookup(max(d3:d6),a3:c6,2,false)

但随后我遇到了一个错误

公式和函数不可用的值

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

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

This is a table of stationary that I am trying to use VLOOKUP to find the name of the highest price. I'm not sure but I am getting an error when I use

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

but then I get an error

A value is not available to the formula and function

I think there is something wrong with the syntax of my VLOOKUP statement but I can't figure it out. Any help would be much appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

快乐很简单 2025-01-29 06:23:50

索引值,即您要查找查找值(最大值)的列需要是最左边的列。 Vlookup仅在右边工作。

因此,index()带有match(),就像这样:

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

假设所有列等您不显示它们,但是您可以从那里拿走。

The index value ie the column where you want to find the lookup value (your max value) needs to be the leftmost column. vlookup only works to the right.

So, index() with match() like so:

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

Assuming all the columns etc as you don't show them, but you can take it from there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文