excel vba 求和
用vba表达如果b1=10表示次数,则a3=1,a4=2.....a12=10c3=a1*b3直到b1所示次数,即c3=a1*b3,c4=a1*b4....c12=a1*...
用vba表达
如果b1=10表示次数,则a3=1,a4=2.....a12=10
c3=a1*b3直到b1所示次数,即c3=a1*b3,c4=a1*b4....c12=a1*b12
d3=c3,d4=c3+c4.....d12=c3+c4+....c12, 展开
如果b1=10表示次数,则a3=1,a4=2.....a12=10
c3=a1*b3直到b1所示次数,即c3=a1*b3,c4=a1*b4....c12=a1*b12
d3=c3,d4=c3+c4.....d12=c3+c4+....c12, 展开
2个回答
展开全部
Excel怎么求和?这个视频告诉你!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Sub tt()
Dim k As Integer
k = 0
For i = 1 To Cells(1, 2)
Cells(i + 2, 3) = Cells(1, 1) * Cells(i + 2, 2)
Next i
For j = 1 To Cells(1, 2)
Cells(i + 2, 4) = k + Cells(i + 2, 3)
k = Cells(i + 2, 4)
Next j
End Sub
Dim k As Integer
k = 0
For i = 1 To Cells(1, 2)
Cells(i + 2, 3) = Cells(1, 1) * Cells(i + 2, 2)
Next i
For j = 1 To Cells(1, 2)
Cells(i + 2, 4) = k + Cells(i + 2, 3)
k = Cells(i + 2, 4)
Next j
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询