.Cells(3, 4).FormulaR1C1 = "=sum(r[-" & a & "]c[0]:r[-3]c[" & b & "])" 转载于:https://www.cnblogs.com/lbnnbs/p/4785059.html