=sum(INDIRECT("a2:a"&a1))错了,应该是:=sum(INDIRECT("a2:a"&a1+1))
if(A1=5,sub(A2:A6),if(A1=10,sub(A2:A6),0))你没有给出其它情况,我把其它情况的值取0了。
sum(indirect("ar:a"&a1+1)))
=sum(offset(a2,,,a1,1))