you need to create a shared variable and increment it as you read the data. In the formula you can conditionally add the values that you need...there by ignoring the data that is suppressed.
I would think that you can do it with running totals, I just haven't gotten the hang of them...DBlank knows them like the back of his hand.
HTH