Add two columns together back to first and deleting data on second

MichelGagnon

New Member
Joined
Oct 19, 2017
Messages
6
Hi!

I am trying to add the numbers in column C (starting at C3 to C2000) with the numbers in column E and have the results go back to C.
Ex: C3=C3+E3
Then C3=0

I have found this code online that I have adapted, but it doesn’t seem to work.
Nothing happens except that it tells me that I have a circular reference.

Sub numSum()
For i = 3 To 2000
Sheet1.Range("C" & i).Value = Sheet1.Range("C" & i).Value + Sheet1.Range("E" & i).Value
Sheet1.Range("E" & i).Value = 0
Next i
End Sub
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I found my problem!!

Sub numSum()
For i = 3 To lRow
Worksheets("Inventory_list").Range("C" &i).Value = Worksheets("Inventory_list").Range("C" &i).Value + Worksheets("Inventory_list").Range("E" &i).Value
Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,542
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top