# calculating a cell

#### luxbax12

##### New Member
Hi,
When i add a new dollar amount in the same cell everyday,
is there a way for another cell to keep adding those totals?

Thanks.

example:

A1- 51.00

A5 51.00

Next day

A1-60.00

A5 111.00

### Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
In another cell enter the formula

=A1+A5

assuming it is just those two cells that you want to total.

everyday i will need to put a new amount into the same cell.
so in another cell i would like for it to keep a running total
of the amounts that were put in each day.

thanks,

the amounts will accumilate or grow in the other cell.

you can do this but you need a macro code to do the adding up

do you want it to do it automatically when you enter the value in A1 or to have to run it manually ??

it would be nice for it to add automatically.

thanks.

Here is an example of what i'm trying to accomplish if possible.
in cell c4 next to daily booked \$ amount, there will be a new amount
entered there everyday.

in cell c9 is a total from the amounts that were entered every day for
this month.

Thanks,
BCDE
4Daily\$booked39,827.75196
5
627,866.03
711,941.72
8
9Monthbooked759,593.92
10
11
12219,152.47
Sheet1

try this

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Row = 4 And Target.Column = 3 Then
x = Range("c4").Value
y = Range("c9").Value
[c9].Value = x + y
Else: Exit Sub
End If
End Sub

to enter the code right click on your sheet tab and select view code, in the big right hand window post the code from above

HTH

when i click on the the cell (c4)
it calculates before i get a chance to

Change the first line to

Private Sub Worksheet_Change(ByVal Target As Range)

Replies
11
Views
289
Replies
1
Views
173
Replies
5
Views
598
Replies
5
Views
238
Replies
1
Views
96

1,218,697
Messages
6,143,956
Members
450,519
Latest member
nashat

### 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.

### Which adblocker are you using?

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

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