主要公式:
找位置
=MATCH(A2,Sheet2!B:B,0)-2
找数量
=COUNTIF(Sheet2!B:B,A2)
选取内容
=OFFSET(Sheet2!B:B,MATCH(A2,Sheet2!B:B,0)-1,2,COUNTIF(Sheet2!B:B,A2),1)
注:各自内的二三级内容不能有重复,否则不太好搞。
主要公式:
找位置
=MATCH(A2,Sheet2!B:B,0)-2
找数量
=COUNTIF(Sheet2!B:B,A2)
选取内容
=OFFSET(Sheet2!B:B,MATCH(A2,Sheet2!B:B,0)-1,2,COUNTIF(Sheet2!B:B,A2),1)
注:各自内的二三级内容不能有重复,否则不太好搞。