Summing
Hi
why do you want a macro for this and don't insert the formula in the cells
directly and copy this formula. so something like
=SUM(A1:C1)
and copy this down
"teresa" wrote:
Hi,
I have three columns of data and 100 rows,
I want the 4th column to sum each row,
the code I have is as follows:
Think there is something wrong with my SUM Function
Dim i, j
For i = 1 To 100
Cells(i, 4) = Sum(Cells(i, 1), Cells(i,3))
End Sub
|