vlookup如何在Excel中通过名称找到价格

发布于 2025-02-12 15:23:51 字数 466 浏览 0 评论 0原文

我目前正在学习Excel,并试图在Excel Vlookup上进行一些锻炼 我遇到的当前问题是

  1. 找到价格产品ID
  2. 查找产品ID
  3. 的价格ID查找产品ID
  4. 查找产品名称by ID
  5. Stock
  6. 查找产品名称by

find find find fin在问题6上 我尝试

=VLOOKUP(I20;C6:D10;2;0)

了#n/a 我不明白为什么,请帮助:)

”

im currently learning excel and trying to do some excercise on excel Vlookup
the current question that i had is

  1. find the price product id
  2. find the price by product id
  3. find the stock by product id
  4. find product name by ID
  5. find product name by stock
  6. find product price by name

i can solve 1 - 6 question and always getting error on question 6
i tried

=VLOOKUP(I20;C6:D10;2;0)

and having #N/A
I dont understand why, pls help :)

the excel screenshot

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

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

发布评论

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

评论(1

烟酒忠诚 2025-02-19 15:23:51

您不能使用vlookup()按产品名称返回价格,因为vlookup()始终在表的第一列上搜索,在您的情况下,产品名称为第二列(如根据您当前的公式)。使用index()/match()在这种情况下

=INDEX(C6:C10,MATCH(I20,D6:D10,0))

You can't use Vlookup() to return price by product name because Vlookup() always search on first column of table and in your case product name is second column (as per your current formula). Use INDEX()/MATCH() in this case like-

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