Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
chris_
 
Posts: n/a
Default i know this has to be so easy -newb


At work we have a competition and we keep up with a set of points we get
each day.

I want to create a worksheet that looks like this:

Name | + | - | Total Points


I want to be able to simply enter 3(or any number) in the Plus column
have it add to the total points, keep that running total, and clear the
3 that i put in there so it will be ready for tomorrow.

The same goes for the minus, I want to be able to deduct these points
from the Total Points, then clear the number i entered in the minus
field, saving the running total...

I'm fairly good with the basics of excel, but i couldn't think of a
formula that would keep a running total, while clearing the entered
information.

Thanks in advance!


--
chris_
------------------------------------------------------------------------
chris_'s Profile: http://www.excelforum.com/member.php...o&userid=25009
View this thread: http://www.excelforum.com/showthread...hreadid=385357

  #2   Report Post  
RagDyer
 
Posts: n/a
Default

It's not the best way to approach this.
You have *no* record of past entries, so how can you check if a mistake was
made, or even if an entry was forgotten to be made.

However, check out this link of John McGimpsey:

http://www.mcgimpsey.com/excel/accumulator.html
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"chris_" wrote in
message ...

At work we have a competition and we keep up with a set of points we get
each day.

I want to create a worksheet that looks like this:

Name | + | - | Total Points


I want to be able to simply enter 3(or any number) in the Plus column
have it add to the total points, keep that running total, and clear the
3 that i put in there so it will be ready for tomorrow.

The same goes for the minus, I want to be able to deduct these points
from the Total Points, then clear the number i entered in the minus
field, saving the running total...

I'm fairly good with the basics of excel, but i couldn't think of a
formula that would keep a running total, while clearing the entered
information.

Thanks in advance!


--
chris_
------------------------------------------------------------------------
chris_'s Profile:

http://www.excelforum.com/member.php...o&userid=25009
View this thread: http://www.excelforum.com/showthread...hreadid=385357



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
With Target
If .Column = 2 Then
.Offset(0, 2).Value = .Offset(0, 2).Value + .Value
.Value = ""
ElseIf Target.Column = 3 Then
.Offset(0, 1).Value = .Offset(0, 1).Value - .Value
.Value = ""
End If

End With

ws_exit:
Application.EnableEvents = True
End Sub


'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.




--
HTH

Bob Phillips

"chris_" wrote in
message ...

At work we have a competition and we keep up with a set of points we get
each day.

I want to create a worksheet that looks like this:

Name | + | - | Total Points


I want to be able to simply enter 3(or any number) in the Plus column
have it add to the total points, keep that running total, and clear the
3 that i put in there so it will be ready for tomorrow.

The same goes for the minus, I want to be able to deduct these points
from the Total Points, then clear the number i entered in the minus
field, saving the running total...

I'm fairly good with the basics of excel, but i couldn't think of a
formula that would keep a running total, while clearing the entered
information.

Thanks in advance!


--
chris_
------------------------------------------------------------------------
chris_'s Profile:

http://www.excelforum.com/member.php...o&userid=25009
View this thread: http://www.excelforum.com/showthread...hreadid=385357



  #4   Report Post  
chris_
 
Posts: n/a
Default


ok, i wasn't aware that you could use VB with excel... I see that I have
a sheet called "ThisWorkbook" and I added the code from Bob's post, but
i'm not sure what actions I need to do to make it work with my
worksheet...


could someone please give the noob some kind of step by step help on
how to get this working?


--
chris_
------------------------------------------------------------------------
chris_'s Profile: http://www.excelforum.com/member.php...o&userid=25009
View this thread: http://www.excelforum.com/showthread...hreadid=385357

  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

Chris,

The code is worksheet code, not workbook code. Check the instructions I gave
at the end of the post to see how to install it.

And it is VBA, Visual Basic for Application <g

--
HTH

Bob Phillips

"chris_" wrote in
message ...

ok, i wasn't aware that you could use VB with excel... I see that I have
a sheet called "ThisWorkbook" and I added the code from Bob's post, but
i'm not sure what actions I need to do to make it work with my
worksheet...


could someone please give the noob some kind of step by step help on
how to get this working?


--
chris_
------------------------------------------------------------------------
chris_'s Profile:

http://www.excelforum.com/member.php...o&userid=25009
View this thread: http://www.excelforum.com/showthread...hreadid=385357





  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

.... and then just enter values into the + or - columns (B & C in my code),
and watch the totals (D) update.

--
HTH

Bob Phillips

"Bob Phillips" wrote in message
...
Chris,

The code is worksheet code, not workbook code. Check the instructions I

gave
at the end of the post to see how to install it.

And it is VBA, Visual Basic for Application <g

--
HTH

Bob Phillips

"chris_" wrote in
message ...

ok, i wasn't aware that you could use VB with excel... I see that I have
a sheet called "ThisWorkbook" and I added the code from Bob's post, but
i'm not sure what actions I need to do to make it work with my
worksheet...


could someone please give the noob some kind of step by step help on
how to get this working?


--
chris_
------------------------------------------------------------------------
chris_'s Profile:

http://www.excelforum.com/member.php...o&userid=25009
View this thread:

http://www.excelforum.com/showthread...hreadid=385357





  #7   Report Post  
chris_
 
Posts: n/a
Default


thanks so much bob, everything is working great... I missed the part on
right clicking on the worksheet tab, so that was my problem.

Thanks again.


--
chris_
------------------------------------------------------------------------
chris_'s Profile: http://www.excelforum.com/member.php...o&userid=25009
View this thread: http://www.excelforum.com/showthread...hreadid=385357

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OsCommerce - Easy Populate Script - CSV/TXT Conversion Problem. PriceTrim Excel Discussion (Misc queries) 3 July 5th 05 05:27 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM
Easy formula Question Excel formula fix Excel Worksheet Functions 3 March 29th 05 02:04 AM
Converting worksheets to workbooks. Is there an easy way? Jim Excel Discussion (Misc queries) 1 March 22nd 05 02:31 PM
Easy way to sum multiple worksheets TNMAN Excel Worksheet Functions 4 December 7th 04 05:57 PM


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"