简体   繁体   English

Excel如果是这样的话

[英]Excel If this and that then

I have two tabels looking like this: 我有两个像这样的表格: 在此处输入图片说明

As you can see I have an empty column "OSAKAAL". 如您所见,我有一个空列“ OSAKAAL”。 I want excel to copy the correct values there, so if it finds exactly the same "KR_kood" and "Aasta" value on the left which is on the right table also, then it copies the "OSAKAAL2" value to the "OSAKAAL" cell. 我希望excel在此处复制正确的值,因此,如果它在右表的左侧也找到完全相同的“ KR_kood”和“ Aasta”值,则将“ OSAKAAL2”值复制到“ OSAKAAL”单元格。

You can use a multi-criteria Index/Match for this. 您可以为此使用多标准索引/匹配。 Make sure to enter with CTRL+SHIFT+ENTER as it's an array formula. 确保输入CTRL + SHIFT + ENTER,因为它是一个数组公式。

In Q2 , you can use: Q2 ,您可以使用:

=INDEX($J$2:$J$7,MATCH($O2&$P2,$L$2:$L$7&$K$2:$K$7,0))

(Adjust the ranges as necessary). (根据需要调整范围)。

You may try this Regular Formula which doesn't require any special key stroke. 您可以尝试不需要任何特殊按键的常规公式。 In Q2 在第二季度

=IFERROR(INDEX($J$2:$J$1000,MATCH(O2&P2,INDEX($L$2:$L$1000&$K$2:$K$1000,),0)),"")

Adjust the ranges used in the formula as per your requirement. 根据需要调整公式中使用的范围。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM