calculating a cell

luxbax12

New Member
Joined
Nov 3, 2005
Messages
46
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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
In another cell enter the formula

=A1+A5

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

luxbax12

New Member
Joined
Nov 3, 2005
Messages
46
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,
 

shippey121

Well-known Member
Joined
Mar 21, 2006
Messages
1,001

ADVERTISEMENT

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 ??
 

luxbax12

New Member
Joined
Nov 3, 2005
Messages
46

ADVERTISEMENT

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,
daily advisory report.xls
BCDE
4Daily$booked39,827.75196
5
627,866.03
711,941.72
8
9Monthbooked759,593.92
10
11
12219,152.47
Sheet1
 

shippey121

Well-known Member
Joined
Mar 21, 2006
Messages
1,001
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
 

luxbax12

New Member
Joined
Nov 3, 2005
Messages
46
when i click on the the cell (c4)
it calculates before i get a chance to
add any amount.
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Change the first line to

Private Sub Worksheet_Change(ByVal Target As Range)
 

Forum statistics

Threads
1,141,681
Messages
5,707,792
Members
421,527
Latest member
Tamiwsw

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
Top