三列依次为:
=SUBSTITUTE(INDEX(A:A,2*(ROW()-1)+1,1),"盖","")
=MAX(($A$2:$A$100=$D2&"瓶")*$B$2:$B$100) 按CTRL+SHIFT+ENTER结束
=MAX(($A$2:$A$100=$D2&"盖")*$B$2:$B$100) 按CTRL+SHIFT+ENTER结束
三列依次为:
=SUBSTITUTE(INDEX(A:A,2*(ROW()-1)+1,1),"盖","")
=MAX(($A$2:$A$100=$D2&"瓶")*$B$2:$B$100) 按CTRL+SHIFT+ENTER结束
=MAX(($A$2:$A$100=$D2&"盖")*$B$2:$B$100) 按CTRL+SHIFT+ENTER结束