I have a column in my Google Spreadsheet which contains either OK
or NOK
(acceptance testing).
How can I calculate the percentage for how often OK
appears compared to NOK
.
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityHow about:
= COUNTIF( A1:A; "OK" ) / COUNTA( A1:A )
A1:A
defining the column in which the OK/NOK values are defined. If you have more values than OK and NOK, use this:
= COUNTIF( A1:A; "OK" ) / ( COUNTIF( A1:A; "OK" ) + COUNTIF( A1:A; "NOK" ) )
Use this excel formula:
Assuming Column A
has list of entries
=(COUNTIF(A:A,"=OK")/COUNTA(A:A))*100