Share via

Formula needed to calculate compliance

Danielle Kemper 100 Reputation points
2026-05-22T20:24:52.3066667+00:00

I have a spreadsheet that I need to calculate compliance. The options are NO, YES, NA, and INCOMPLETE. It would be compliant if they marked YES, NO or NA. Cell ranges are F2:O2.

For example, if all were marked YES except one marked INCOMPLETE, the compliance would be 90%.

User's image

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

Answer accepted by question author

Dana D 90 Reputation points
2026-05-24T14:56:54.8+00:00

Hi. I am not a bot.

I would use: =1-COUNTIF(F2:O2,"INCOMPLETE") / 10

Was this answer helpful?

1 person found this answer helpful.

Answer accepted by question author

AI answer

2026-05-22T20:25:03.0933333+00:00

Use COUNTIF to count compliant entries (YES, NO, NA) and divide by the total number of cells in the range.

For row 2 with responses in F2:O2, enter in another cell:

=COUNTIF(F2:O2,"YES")+COUNTIF(F2:O2,"NO")+COUNTIF(F2:O2,"NA")

To get the compliance percentage (e.g., 90%), divide by the total items (here 10) and format as Percentage:

=(COUNTIF(F2:O2,"YES")+COUNTIF(F2:O2,"NO")+COUNTIF(F2:O2,"NA"))/COUNTA(F2:O2)

If all cells in F2:O2 are filled with one of the four options, COUNTA(F2:O2) is the total number of questions, so the result is the compliance rate.


References:

AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.