cumulative data in a column

shyamvinjamuri

Board Regular
Joined
Aug 2, 2006
Messages
175
I have Yesterday's date in column A, Today's data in column B. Column C has difference between column A and column B. Some days data changes many times a day.
How to put cumulative data in column D only when column C changes?

eg.
Today
10 in column A, 6 in column B, so column C is 4.
Tomorrow
column A is 25 column B is 20, so column C is -5.

I like to have column D showing -1 and so on every time I update the data in columns A and B. Column D should change only when values in column C change.

Please help.

Thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
63,964
Office Version
  1. 365
Platform
  1. Windows
Do you mean something like this?

If your data starts in row 2,
then enter this in the following cells:
D2: = C2
D3: =IF(C3<>0,D2+C3,"")

and copy the formula in D3 down for all rows
 
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,167,836
Messages
5,855,912
Members
431,774
Latest member
WillWilco

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