A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi. I am not a bot.
I would use: =1-COUNTIF(F2:O2,"INCOMPLETE") / 10
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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%.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Answer accepted by question author
Hi. I am not a bot.
I would use: =1-COUNTIF(F2:O2,"INCOMPLETE") / 10
Answer accepted by question author
AI answer
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: