怎么把excel里的列A里的每四行求和一次把值放到b列中以从A1开始到A12结束为例子:b1=sum(a1:a4),b2=sum(a1:a4),b3=sum(a1:a4),b4=sum(a1:a4),b5=sum(a5:a8),b6=sum(a5:a8),b7=sum(a5:a8),b8=sum(a5:a8),b9=sum(a9:a12),b10=sum(a9:a12)
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/07 23:43:42
怎么把excel里的列A里的每四行求和一次把值放到b列中以从A1开始到A12结束为例子:b1=sum(a1:a4),b2=sum(a1:a4),b3=sum(a1:a4),b4=sum(a1:a4),b5=sum(a5:a8),b6=sum(a5:a8),b7=sum(a5:a8),b8=sum(a5:a8),b9=sum(a9:a12),b10=sum(a9:a12)
怎么把excel里的列A里的每四行求和一次把值放到b列中
以从A1开始到A12结束为例子:b1=sum(a1:a4),b2=sum(a1:a4),b3=sum(a1:a4),b4=sum(a1:a4),b5=sum(a5:a8),b6=sum(a5:a8),b7=sum(a5:a8),b8=sum(a5:a8),b9=sum(a9:a12),b10=sum(a9:a12),b11=sum(a9:a12),b12=sum(a9:a12)有没有公式来计算?
怎么把excel里的列A里的每四行求和一次把值放到b列中以从A1开始到A12结束为例子:b1=sum(a1:a4),b2=sum(a1:a4),b3=sum(a1:a4),b4=sum(a1:a4),b5=sum(a5:a8),b6=sum(a5:a8),b7=sum(a5:a8),b8=sum(a5:a8),b9=sum(a9:a12),b10=sum(a9:a12)
B1单元格写入公式
=SUM(OFFSET(A$1,ROW(A1)*4-4,4,))
或
=SUM(OFFSET(A$1:A$4,ROW(A1)*4-4,))
下拉复制公式
不对,你要的是
b1=sum(a1:a4),b2=sum(a1:a4),b3=sum(a1:a4),b4=sum(a1:a4).
B1单元格公式改成
=SUM(OFFSET(A$1,INT((ROW(A1)-1)/4)*4,4,))
或
=SUM(OFFSET(A$1:A$4,INT((ROW(A1)-1)/4)*4,))
下拉复制公式