Running total of formula result

honkin

Active Member
Joined
Mar 20, 2012
Messages
385
Office Version
  1. 2016
Platform
  1. MacOS
I have a small piece of code which checks if a cell is >0. The answer is either a 0 or 1, so if the cell is >0 it is a 1, otherwise it is a 0.

What I'd like to be able to do is for that column to tally as it goes; so keep a running total. I have read many threads on this, but nothing which covers automating this so when the next row/s of results is added, the column is updated with the cumulative totals

Here is the small piece of code; =IF(K2=0,1,0) This formula is in S2

Left to work row by row, there will just be 1s and 0s all the way down. Is there a way for it to instead keep a running total as the next row is calculated? I am not looking to add an additional column for this; I'd ideally like the running total to be the column which has the result of the formula

cheers
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi,

I have a small piece of code which checks if a cell is >0. The answer is either a 0 or 1, so if the cell is >0 it is a 1, otherwise it is a 0.

Here is the small piece of code; =IF(K2=0,1,0) This formula is in S2

cheers

I'm confused about what you want totaled, the two underlined parts above seems to contradict...
Are you wanting to tally the 0s or the 1s?
Also, are you saying you want formulas in Column S all the way down as Column K is populated, or Only in S2 to tally the results?
 
Upvote 0
Hi,



I'm confused about what you want totaled, the two underlined parts above seems to contradict...
Are you wanting to tally the 0s or the 1s?
Also, are you saying you want formulas in Column S all the way down as Column K is populated, or Only in S2 to tally the results?
ha! Thanks for the reply. A simply typo there. The code is actually =IF(K2>0,1,0) Was rushing things this morning.

So the aim is to dynamically tally column S only. All other columns have data. The column I am calculating just shows matches and the total number of goals. I am trying to keep a running total (S) of how many matches had more than 0 goals

Thanks for spotting the typo
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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