简体   繁体   English

比较 2 个不同工作表中的 2 列并返回第三个值 Vlookup

[英]Compare 2 columns in 2 different sheet and return 3rd value Vlookup

I have a sheet A like this:我有一张这样的表A: 在此处输入图像描述

And I have Sheet B like this:我有这样的表 B: 在此处输入图像描述

Now I want to get the Result2 from sheet B and fill Sheet A result2 column by matching log & code现在我想从工作表 B 中获取 Result2 并通过匹配日志和代码填充工作表 A result2 列

Sheet B Result2 =  Sheet A result2

How can I write the vlookup formula.如何编写 vlookup 公式。 Please help me.请帮我。

Thank you谢谢

You can do this really easy with SUMIFS because you are trying to get a number:您可以使用 SUMIFS 轻松完成此操作,因为您正在尝试获取一个数字:

在此处输入图像描述

Formula in cell D2 from Sheet A is:工作表 A 的单元格 D2 中的公式为:

=SUMIFS('Sheet B'!$C$2:$C$8;'Sheet B'!$A$2:$A$8;'Sheet A'!A2;'Sheet B'!$B$2:$B$8;'Sheet A'!B2)

Another option would be using an array formula (it must be introduced pressing CTRL + ENTER + SHIFT ):另一种选择是使用数组公式(必须按CTRL + ENTER + SHIFT引入):

=INDEX('Sheet B'!$C$2:$C$8;MATCH(A2&B2;'Sheet B'!$A$2:$A$8&'Sheet B'!$B$2:$B$8;0))

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 VLOOKUP 将 2 个单元格 sheet2 匹配到 sheet1 并返回第 3 个单元格 - Using VLOOKUP to match 2 cells sheet2 to sheet1 and return the 3rd cell 将用户输入与两列进行比较,并从第三个预定义列返回值 - Compare user input to two columns and return value from 3rd predefined column 比较两个Excel的两列并返回第三列 - Compare two columns of two excels and return 3rd column 比较两列的值,如果有马赫,则在第三列返回 - Compare values from two columns and return in 3rd column if there is mach 与列比较,在第三列中识别重复项 - Compare to columns, identify duplicates in a 3rd column excel vlookup 匹配 2 个条件并返回第三个结果 - excel vlookup to match on 2 criterias and return a 3rd result 匹配不同工作表中的 2 列,并将第三列从一张工作表复制到另一张工作表中以匹配单元格 - Match 2 columns in different sheets and copy 3rd column from one sheet into another for matched cells Excel:是否可以使用Vlookup通过使用第二列或第三列来查找值,并从第一列返回该值? - Excel: Is it possible to use Vlookup to look for a value by using 2nd or 3rd column, and return the value from the first column? 如何比较两个工作表并生成差异报告作为第三个工作表? - How to compare two worksheets and generate difference report as 3rd sheet? Python 或 Excel:如何比较 2 列,然后在新列中写入第 3 列的值? - Python or Excel: How can you compare 2 columns and then write the value of a 3rd column in a new column?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM