Counter with dynamic range

Copper Contributor

Hi All,

 

I need to pick your brain with regards to an operation I have to built in excel.

I have a file where I register the result of some tests. The results can be: Positive, Negative, Suspended.

So the data entry side is composed of two columns:
Column A: Date - Column B: Result

Then I want to set up a report where I can count the number of positive results. When a limit value is reached (let's say 10 positive results), the counter should start from zero.

Up to here I managed to do it, but I noticed the following issues:
- If I reach my limit (10) and I decide that the next limit value shall be 12, the formula will update so the report will show me that I end up with 2 more positive results to get in order to reach the goal, while the first goal (10) has already been achieved.

I'm attaching the file for better understanding.

Maybe the way I'm building the logic of my sheet is wrong, so any suggestion is welcomed.

 

PS. I would prefer using formulas rather than VBA. 

Thank you to anyone who will help me.

 

0 Replies