I want to count the number of times in a column that a cell value is equal to zero and the cell in the row under is greater than zero.
Let's say that my column is the one bellow.
Row 1: 5
Row 2: 2
Row 3: 0
Row 4: 4
Row 5: 3
Row 6: 0
Row 7: 5
Row 8: 0
Row 9: 2
Then the result of the formula should be 3 because of the 3 pairs:
Row 3: 0
Row 4: 4
Row 6: 0
Row 7: 5
Row 8: 0
Row 9: 2
I tried using countif or sumif but it seems to me that you can only input fixed reference cell. Any idea how I could do it?