How do I get Excel to do a tally mark total?

G

Guest

I would like to have Excel setup so I can enter a number into F3 that would
be added
to a total in B3...then have the number that was enetered in F3 deleted,
thus leaving
F3 blank and ready for a new entry.

Is this possible and how do I set it up?
 
G

Guest

Right click on the Sheet Tab and select View Code. Paste in this code in the
resulting module.

Private Sub Worksheet_Change(ByVal Target As Range)
if Target.Address = "$F$3" then
if not isempty(Target) then
range("B3").Value = Range("B3").Value + Range("F3").Value
Range("F3").Clearcontents
end if
End if
End Sub
 
Joined
Jul 16, 2009
Messages
3
Reaction score
0
Extended tally mark question

Is there a way to set excel to use the VBA script for more than once? For example the previous senario was if you entered numbers in F3 it would accumulate in B3 and delete in F3. Is it possible to enter a number in F4 and accumulate in B4 and so on and so on in the same script.
 
Joined
Dec 3, 2009
Messages
1
Reaction score
0
tkasual said:
Is there a way to set excel to use the VBA script for more than once? For example the previous senario was if you entered numbers in F3 it would accumulate in B3 and delete in F3. Is it possible to enter a number in F4 and accumulate in B4 and so on and so on in the same script.

Hi I just stumbled across this post and it is exactly what I need! Does anyone have the last answer? I need this to work in multiple cells...Entering data in F2-F7 and having the running "score", if you will, in B2-B7.

Thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top