I am trying to count the number of payments (non-zero) made in a fiscal year based on the property. I can do a Countif for each column but there can be a large number of columns (properties) so I would like to be able to create a formula using the whole array that can reference the property and the fiscal year.
<tbody>
</tbody>
This is the table I would like to create.
<tbody>
</tbody>
year | Period | North | West | South |
2019 | 1 | 100 | 50 | 75 |
2019 | 6 | 100 | 50 | 75 |
2019 | 9 | 0 | 50 | 75 |
2020 | 1 | 100 | 50 | 75 |
2020 | 6 | 100 | 0 | 75 |
2020 | 9 | 100 | 0 | 75 |
2021 | 1 | 150 | 0 | 75 |
2021 | 6 | 150 | 0 | 75 |
2021 | 9 | 0 | 0 | 75 |
<tbody>
</tbody>
This is the table I would like to create.
2019 | 2020 | 2021 | |
North | 2 | 3 | 2 |
West | 3 | 1 | 0 |
South | 3 | 3 | 3 |
<tbody>
</tbody>