English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Imagine that i wanted to record the scores of a basketball game. Let's say the scores for the respective teams are in cells A1 and A2. Let's say the scores are 34 and 23. Then, team 'A1' scores a 3, which would change their score to 37. I want to be able to put 3 in cell C1, which would cause cell A1 to update to the new score. Is that possible in Excel?

2007-02-07 04:25:38 · 3 answers · asked by firsttime 2 in Computers & Internet Software

..............

2007-02-07 04:52:29 · update #1

Let me clarify... Every update to the first teams score has to be done from C1. So sum() cannot work.

unnga has the correct idea so far.

2007-02-07 04:54:12 · update #2

3 answers

Yes you can, but you need to write a vba macro for that.

The answer is approximated in the link below.

2007-02-07 04:40:21 · answer #1 · answered by unnga 6 · 0 1

In cell A1 but the formula =B1+C1
In cell B1 put the beginning value (34)
As the team scores, increase the value of C1 (3 points)
Cell A1 would display the value 37 (B1+C1).
As you continue to add to C1 (the team scores 2 more points, so C1 becomes 5) A1 will also increase by 2
You can make it a little easier by setting C1 to the value "=3", rather than just "3". Then when the team scores, you add the points by setting C1 to "=3+2". Score again, and C1 becomes "=3+2+3". Each time you add, it will update A1 accordingly.

The other alternative is to write a VBA script that would do that. But there is no single command in Excel to change the value of a cell.

2007-02-07 04:40:19 · answer #2 · answered by dewcoons 7 · 0 0

it's one of the most basic functions of excel.

below is a link to an example so you can see what happens - it basically totals up each entry of points to make a grand total.

the formula used is =sum() and will add the specified cells together:
http://img291.imageshack.us/img291/5063/untitled2ih6.jpg

excel will help you, simply type =sum( in cell b2 or c2 then click and drag a selection of cells and excel will include them as cells to be added together - press enter and you'll see your total.

you can also use excel to start with an existing base 'score' number rather than zero and add the points to that. the formula would be this:
=SUM(C2:L2)+34

if you compare it with my screenshot, you'll see it's creating a total and then adding 34 to it.

EDIT:
indeed, with only ever placing points in c1 then it would have to be done using vba in combination with a variable to store the overall score and a user input box to accept new amounts of points.

2007-02-07 04:31:32 · answer #3 · answered by piquet 7 · 0 0

fedest.com, questions and answers