=SUMIF(OFFSET(H1,MAX(MAX((H3:H301="v")*ROW(H3:H301))-$D$2,1),,$D$2),"v",OFFSET(H1,MAX(MAX((H3:H301="v")*ROW(H3:H301))-$D$2,1),-2,$D$2))
H3:H301="v" ·Q¦A¥[¥t¤@±ø¥ó AD3:AD301="1"
±ø¥ó·Q¥ÑA1 ±±¨î
A1=1 ====> H3:H301="v"
A1=2 ====> H3:H301="v",AD3:AD301="1" ¨â±ø¥ó¦P®É¦¨¥ß |