Excel sum function

sqrlb8

New Member
Joined
Apr 21, 2002
Messages
1
I am having a hard time figuring out a formula. Here is what I need to do.
There are 2 sheets in my workbook.
Sheet 1 Cell A1. A value is inputed to this cell. Once it is added it is sent to sheet 2 cell A1.
Now what I need to.... I need to take out the value of Sheet 1 Cell A1 and input another value, BUT. The value in sheet 2 Cell A1 must keep its value and add the new value of sheet 1 cell a1.

Clarify here.
Sheet 1 Cell A1 = 20
Sheet 2 cell A1 would then = 20

Now reenter value for Sheet 1 Cell A1 = 30
Sheet 2 Cell A1 should then keep the value 20 but then add new value of 30.

How do I do this?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi
I do not think this is possible with a function or formula...
This, however, will work for you...

Right-Click on your sheet1 tab,
Choose 'View Code'

Paste the following, as is, into the code window...

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 1 And Target.Column = 1 Then _
Sheet2.Range("A1").Value = _
Sheet2.Range("A1").Value + Target.Value
End Sub

Tom
 
Upvote 0

Forum statistics

Threads
1,214,780
Messages
6,121,527
Members
449,037
Latest member
tmmotairi

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
Back
Top