我想从 Sheet 1 中提取单位值来填充 Sheet 2 单元格,但需要 Sheet 1 列的类型和编号与 Sheet 2 的类型和编号完全匹配
Sheet 1 Sheet 2
Unit Type Number Unit Type Number
88 Test 1 Trade 1
77 Pack 2 Pack 2
66 Card 3 Card 3
55 Test 4 Herd 4
44 Group 5 Group 5
寻找结果
Sheet 2
Unit Type Number
Trade 1
77 Pack 2
66 Card 3
Herd 4
44 Group 5
尝试过
=INDEX(Sheet1!A2:A6,MATCH(Sheet1!B2:B6&Sheet1!C2:C6,Sheet2!B2:B6&Sheet2!C2:C6,0))
答案1
假设你的桌子在A1:C6
如果您拥有具有以下FILTER
功能的O365:
=IFERROR(FILTER(Sheet1!$A$2:$A$6,(B2=Sheet1!$B$2:$B$6)*(C2=Sheet1!$C$2:$C$6)),"")
如果您没有过滤功能:
=IFERROR(AGGREGATE(14,6,1/((Sheet1!$B$2:$B$6=B2)*(Sheet1!$C$2:$C$6=C2) )*Sheet1!$A$2:$A$6,1),"")