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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

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