如果diffenet表中的多个属性与excel

时间:2015-07-09 11:17:55

标签: excel vba excel-formula

enter image description here

我需要"If both columns (GRADE,FINISH,THICKNESS,WIDTH,HEIGHT) are maches sum of the count in the "NO" column should appear in "PURCHASE" column."的公式这里条件相同(GRADE,FINISH,THICKNESS,WIDTH,HEIGHT)可能会出现多次,在这种情况下,相同属性的值应该添加,它将在列中计算"PURCHASE"你可以看到图像中的红色。所以我们得到了单个产品的库存。

1 个答案:

答案 0 :(得分:0)

试试这个

=IF(A2&B2&C2&D2&E2=Sheet1!A2&Sheet1!B2&Sheet1!C2&Sheet1!D2&Sheet1!E2,Sheet1!G2,"")  

另外,您可以将工作表中的列连接到新列,然后匹配

"=INDEX(Sheet1!G:G,MATCH(F2,Sheet1!I:I,0))"  

GRADE   FINISH  THICKNESS   WIDTH   HEIGHT  Concatenate  
12       13          14      15       16    A2&B2&C2&D2&E2