Excel vlookup 帮助
使用 vlookup,当发生匹配时,我想显示工作表 2 中发生匹配的同一行的 C 列的值。我想出的公式采用工作表 2 C 列的值,但它是从工作表 3 上粘贴公式的行而不是匹配发生的行获取的。
这是我的公式不起作用:
=IF(VLOOKUP(Sheet1!A:A,Sheet2!A:A,1,FALSE),Sheet2!C:C,"NODATA")
如何从匹配发生的行中获取值?
Using vlookup, when a match occurs, I want to display the value of column C from sheet 2 from the same row where the match occurred. The formula I came up with takes the value from column C sheet 2 but it takes it from the row where the formula is pasted on sheet 3 instead of where the match occurred.
Here's my formula that doesn't work:
=IF(VLOOKUP(Sheet1!A:A,Sheet2!A:A,1,FALSE),Sheet2!C:C,"NODATA")
How can I take the value from the row where the match occurred?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
需要明确的是,我并不完全确定我理解您想要实现的目标。也许以下内容会有所帮助...
假设我的工作簿中有 3 张工作表,如下所示:
在工作表 3 的 B 列中,我有以下公式:
解释一下:
VLOOKUP
从工作表 3 中查找值, Sheet1 中的 Col AMATCH
返回 Sheet1 中 VLOOKUP 结果的行INDEX
然后使用行号从 Sheet2 中的值中选取正确的值再次,不确定如果这正是您想要的。它可能会帮助您开始...
To be clear, I am not entirely certain I understand what you are trying to achieve. Maybe the following helps...
Suppose I have 3 sheets in a workbook as follows:
In column B of Sheet 3 I have the following formula:
To explain:
VLOOKUP
looks up the value from Sheet 3, Col A in Sheet1MATCH
returns the row in Sheet1 of the VLOOKUP resultINDEX
then uses the row number to pick the right value from the value in Sheet2Again, not sure if this is what you wanted exactly. It may help you get you started...
您需要手动获取要查找的索引,然后获取该索引处的值:
You need to manually get the index you're looking for, then get the value at that index: