VLOOKUP是否比较单元格
我目前正在使用 Excel 的 VLOOKUP 函数,我想知道 VLOOKUP 是否实际上比较单元格,或者它只是直接使用它对面的单元格?
这是我的公式 "=VLOOKUP(A2,Sheet3!A2:B1814,2,FALSE)"
VLOOKUP 函数可以查找第一个产品图像,但不适用于其余图像(对于大多数图像,它会给出 #N/A,因为右侧图片中的单元格为空,这可以),但是如果你看左图,单元格 A4 与右图中的单元格 A3 相同,但它仍然给我#N/A(这是因为它们不在同一个单元格中) )
所以我的问题是,有没有办法让Excel通过搜索行来检查表1(左图)以查看表2(右图)上是否有匹配的名称?
谢谢
I am currently using the VLOOKUP function for excel and I was wondering does the VLOOKUP actually compare cells or does it just use the cell straight across from it?
This is my formula "=VLOOKUP(A2,Sheet3!A2:B1814,2,FALSE)"
As you can see the VLOOKUP function works find for the first product image but it doesnt for the rest of them( it will give #N/A for most of them because the cell in the pic in the right is empty which is ok), but if you look at the picture on the left, cell A4 is the same as cell A3 on the picture on the right and it is still given me #N/A(this is because they are not in the same cells)
So my question is, is there a way for excel to check the table 1(left pic) to see is there a matching name on table2(right pic) by searching the rows?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须对表数组使用绝对引用,否则当您向下复制公式时,区域将发生移动。
You have to use absolute references for your table array, otherwise the area will be shifted, when you copy your formula down.
IMG 100243 和 7216 不起作用,因为您的公式在每一行中都会发生变化。解决这个问题的一个非常简单的方法是创建一个命名范围。
这至少应该解决该问题。如果这不起作用请告诉我
IMG 100243 and 7216 won't work because your formula changes in each row. A really easy way to fix this is to create a named range.
That should at least resolve that problem. Let me know if that doesn't work