To correctly calculate the average compliance while accounting for the N/A options, you can modify your formula to exclude the N/A cells from the denominator. This way, the average will be calculated based only on the cells that have either YES or NO responses. Here's a revised version of your formula:
=IF(COUNTIF(D5:L5,"YES") + COUNTIF(D5:L5,"NO") = 0, "N/A", COUNTIF(D5:L5,"YES") / (COUNTIF(D5:L5,"YES") + COUNTIF(D5:L5,"NO")))
In this formula:
- The denominator now only counts the YES and NO responses, effectively ignoring the N/A responses.
- If there are no YES or NO responses, it will still return "N/A".
This adjustment should give you the correct compliance percentage, which would be 100% if all applicable cells are marked as YES, regardless of the N/A options.