vlookup没有给我正确的数据

发布于 2025-02-13 10:22:11 字数 394 浏览 0 评论 0原文

我有一个带有表1的Excel工作簿(其中包含我们所有当前项目的列表)和表2(其中包含一些项目以及特定位置的单元数量)。

表1: 项目|描述|单位 -380行

表2: 项目|描述|单位 -48行在

表1中,单位列应比较表2中的项目名称,并从表2中返回单位数量。

我的公式: = vlookup(a5,'segp 2'!$ a $ 1:$ c $ 48,3)

结果: 如果该项目未在表2中列出,则表1中的单元格将从表1中的上一个单元格中返回值。它应返回0或空白(null)

是错误的,或者我应该添加一个If If If If If if if if if if if if if vlookup函数?请问正确的语法是什么?

I have an Excel workbook with Sheet 1 (which contains a list of all our current items) and Sheet 2 (which contains a few items and the number of units at a specific location).

Sheet 1:
Item | Description | Units
-- 380 rows

Sheet 2:
Item | Description | Units
-- 48 rows

In Sheet 1, the units column should compare the item name from Sheet 2 and return the number of units from Sheet 2.

My Formula :
=VLOOKUP(A5,'Sheet 2'!$A$1:$C$48,3)

Result :
If the item is not listed in Sheet 2, then the cell in Sheet 1 returns the value from the previous cell in Sheet 1. It should return 0 or blank(NULL)

Is the formula wrong or should I add a IF ISNULL part outside the VLOOKUP function? What would be the correct syntax for it please?

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

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

发布评论

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

评论(1

等风来 2025-02-20 10:22:11

我建议您这样更改vlookup:

:=VLOOKUP(A5,'Sheet 2'!$A$1:$C$48,3,0)

零驱动匹配。即使它是可选的,我也从不留下不确定的论点。

I suggest you change your vlookup like so:

:=VLOOKUP(A5,'Sheet 2'!$A$1:$C$48,3,0)

The zero drives an exact match. I never leave that argument indeterminate even though it is optional.

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