Running total of formula result

honkin

Active Member
Joined
Mar 20, 2012
Messages
374
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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,214,973
Messages
6,122,534
Members
449,088
Latest member
RandomExceller01

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