ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula for % of "yes" in range of cells? (https://www.excelbanter.com/excel-worksheet-functions/84955-formula-%25-yes-range-cells.html)

npw

Formula for % of "yes" in range of cells?
 
How do I write a formula to determine a % of "yes" responses for a range of
cells. For example: Cells C2-C20, 12 of the 18 cells have "yes" the other 6
have "no". Cell C21 would have the % of yes. Thanks!!

Bob Phillips

Formula for % of "yes" in range of cells?
 
=COUNTIF(C2:C20,"yes")/COUNTA(C2:C20)

and format as a percentage.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"npw" wrote in message
...
How do I write a formula to determine a % of "yes" responses for a range

of
cells. For example: Cells C2-C20, 12 of the 18 cells have "yes" the other

6
have "no". Cell C21 would have the % of yes. Thanks!!





All times are GMT +1. The time now is 04:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com