[英]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.