Cummulative Summing in Cell

Makpo

New Member
Joined
Sep 23, 2011
Messages
28
Hi,

I need to create a vba or a macro that adds numbers from a userform to the number already existing in a particular cell without encoutering circular reference. Any help?:)
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I rephrase, counting consecutive values from a userform into a cell that already had a number, without deleting the number in that cell. Rather the new number from the userform adds to the old one;

C1 has 10
we add 4 to C1 and it results in 14. Please help!
 
Upvote 0
Welcome to the Board!

How's this:

Range("C10").Value = Range("C10").Value + Me.TextBox1.Value

HTH,
 
Upvote 0
Assuming you have an OK button:

Code:
Private Sub CommandButton1_Click()
With Sheets(1).Range("C1")
    .Value = .Value + Val(TextBox1)
End With
End Sub
 
Upvote 0
Wow Guys!

Thanks I actually left my computer and went to out of the house. Yeah! I didn't realize how fast people respond. I just got back. Thanks once again. Next time, I'll stay close to the computer after a post. :)
 
Last edited:
Upvote 0
Wow Guys!

Thanks I actually left my computer and went to out of the house. Yeah! I didn't realize how fast people respond. I just got back. Thanks once again. Next time, I'll stay close to the computer after a post. :)

Don't feel bad, I'll often start to answer a post only to walk away and come back and find that the question's already been answered. You've got to stay on your toes with this bunch. :)
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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