Forum Discussion
Emmarky
Sep 03, 2023Copper Contributor
Formula to calculate percentage
Hi,
I have two columns one is Question and the other is Response.I want to calculate the percentage of some questions whose response is "yes", out of the total responses of yes and no excluding n/a.please let
me know how to write the formula below. the questions for which we need to calculate percenatge are A1,A3,B1,B3,C1,C2,C4,D2,D4.
thanks in advance
- Riny_van_EekelenPlatinum Contributor
Emmarky That would be
=COUNTIF(B2:B17,"yes")/COUNTIF(B2:B17,"<>n/a")
provided the data is in A1:B17 as shown below.
- EmmarkyCopper ContributorHi Riny_van_Eekelen, thanks for your response. But I don't want all the cells in the range B2:B17,
I am looking only for specific question responses A1,A3,B1,B3,C1,C2,C4,D2,D4.(i.e B2,B4,B6,B8)- Riny_van_EekelenPlatinum Contributor