kumara_faith
Well-known Member
- Joined
- Aug 19, 2006
- Messages
- 951
- Office Version
- 365
Hi,
I have the following table:
I am trying to build a subtotal formula so that when we filter by dates or staff, we will be able to see the average productivity rate for the selected dates. The average productivity should however only calculate cells more than zero.
Example , for the selection below, the correct average productivity is 96% and not 56%. Is there a way to add the additional condition into this formula ? Appreciate all the help.
I have the following table:
Date | Branch | Staff | Productivity Rate |
Monday, 2 January, 2023 | Texas | Staff1 | 95% |
Monday, 2 January, 2023 | Texas | Staff2 | 98% |
Monday, 2 January, 2023 | Texas | Staff3 | 0% |
Monday, 2 January, 2023 | Texas | Staff4 | 0% |
Monday, 2 January, 2023 | Texas | Staff5 | 96% |
Tuesday, 3 January, 2023 | Texas | Staff1 | 95% |
Tuesday, 3 January, 2023 | Texas | Staff2 | 0% |
Tuesday, 3 January, 2023 | Texas | Staff3 | 0% |
Tuesday, 3 January, 2023 | Texas | Staff4 | 87% |
Tuesday, 3 January, 2023 | Texas | Staff5 | 85% |
Wednesday, 4 January, 2023 | Texas | Staff1 | 0% |
Wednesday, 4 January, 2023 | Texas | Staff2 | 0% |
Wednesday, 4 January, 2023 | Texas | Staff3 | 95% |
Wednesday, 4 January, 2023 | Texas | Staff4 | 92% |
Wednesday, 4 January, 2023 | Texas | Staff5 | 93% |
Subtotal | Subtotal | Subtotal | 56% |
I am trying to build a subtotal formula so that when we filter by dates or staff, we will be able to see the average productivity rate for the selected dates. The average productivity should however only calculate cells more than zero.
Example , for the selection below, the correct average productivity is 96% and not 56%. Is there a way to add the additional condition into this formula ? Appreciate all the help.
Date | Branch | Staff | Productivity Rate |
Monday, 2 January, 2023 | Texas | Staff1 | 95% |
Monday, 2 January, 2023 | Texas | Staff2 | 98% |
Monday, 2 January, 2023 | Texas | Staff3 | 0% |
Monday, 2 January, 2023 | Texas | Staff4 | 0% |
Monday, 2 January, 2023 | Texas | Staff5 | 96% |
Subtotal | Subtotal | Subtotal | 58% |