suming up changing single cell

JordanGoodchild

New Member
Joined
Jul 21, 2010
Messages
28
i have a single cell that changes from 1 to 0 in a repeating pattern is there a way to sum up this changing cell in an adjacent cell.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

kevin lazell

Well-known Member
Joined
Jun 2, 2004
Messages
509
hi jordon
assuming your single cell is A1 select B1 and enter this formula
RECALL()+A1
 

YasserKhalil

Well-known Member
Joined
Jun 24, 2010
Messages
833
Mr. Kevin
Your formula returns #Name! Error
What's RECALL()??? Is it user-defined-function
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
38,775
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
It's a function in the MOREFUNC add-in IIRC.
 

YasserKhalil

Well-known Member
Joined
Jun 24, 2010
Messages
833
Try this code

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then
Target.Offset(0, 1) = Target.Offset(0, 1) + Target.Value
End If
End Sub
 

JordanGoodchild

New Member
Joined
Jul 21, 2010
Messages
28
thanks for the tip kevin, unfortunately everytime the spreadsheet updates itself it adds the cell up again despite it hasn't changed from 1 to 0.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,713
Messages
5,833,269
Members
430,200
Latest member
ADLHMA2022

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