Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from superuser.com Feb 2 '12 at 18:47

This question came from our site for computer enthusiasts and power users.

up vote 6 down vote accepted

How 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" ) )
share|improve this answer
The second formula is perfect, thanks. – GG. Feb 2 '12 at 14:47

Use this excel formula:

Assuming Column A has list of entries

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.