jleasure457

New Member
Joined
Dec 27, 2018
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I'm trying to create a spreadsheet that takes multiple, "Yes", "No", and "N/A" responses and translates them into overall percentage. There are 4 columns, all of which will have a Yes, No, or N/A option as a drop down. I want the spreadsheet to be able to read the these 4 fields and give a percentage. For example is all 4 columns are "Yes", it would be 100%. If 3 are "Yes" and 1 is "No", it would be 75%. If any of the columns are N/A, it doesn't take that column into consideration when calculating the percentage. So, if Column 1 and 2 are "Yes", Column 3 is "No", and Column 4 is "N/A". It would be 66.66%.

Thanks in advance for your help.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi,

Format result cells as "percentage":


Book1
ABCDE
1YesYesYesYes100.00%
2YesNoYesYes75.00%
3YesYesN/ANo66.67%
Sheet427
Cell Formulas
RangeFormula
E1=COUNTIF(A1:D1,"Yes")/(4-COUNTIF(A1:D1,"N/A"))
 
Upvote 0
try

Code:
=(COUNTIF(A1:D1,"no")+COUNTIF(A1:D1,"yes"))/COUNTA(A1:D1)
 
Upvote 0
Hi,

Format result cells as "percentage":

ABCDE
1YesYesYesYes100.00%
2YesNoYesYes75.00%
3YesYesN/ANo66.67%

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet427

Worksheet Formulas
CellFormula
E1=COUNTIF(A1:D1,"Yes")/(4-COUNTIF(A1:D1,"N/A"))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
Thank you. This works perfectly!
 
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,216,088
Messages
6,128,744
Members
449,466
Latest member
Peter Juhnke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top