C1=SUM(INDIRECT("B"&MATCH($A$1,A:A,)+1):INDIRECT("b"&SMALL(IF($A$1:$A$100<>"",ROW($A$1:$A$100),65536),2)-1))
同时按CTRL SHIFT 回车键
C7=SUM(INDIRECT("b"&SMALL(IF($A$1:$A$100<>"",ROW($A$1:$A$100),65536),2)+1):INDIRECT("B"&1000))
同时按CTRL SHIFT 回车键
C1=SUM(C2:C6)
C7=SUM(C8:C12)
按你说的就是这样。