adding values to text to create percentages

nibbles33

New Member
Joined
Aug 4, 2009
Messages
1
This spreadsheet seemed simple at the outset and yet I am having a really tough time with it.

I need to create a column which has one of three possible text values in its cells: yes, no, or n/a. What I need to do is assign values to the yes, no or n/a so that I can get the total percentage of 'yes' answers while excluding 'n/a' answers from the calculation.

(example: if D2 is yes, D3 is no, D4 is n/a, D5 is no, and D6 is yes; I need to figure out how to have a cell displaying 50%; say in cell C2,)

I can't even figure out how to assign values to the text, let alone how to set it up in order to get the percentages I need. If anyone could help I would be very grateful.

Thanks!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi, welcome

One way:

=COUNTIF(D2:D6,"yes")/(COUNTA(D2:D6)-COUNTIF(D2:D6,"n/a"))
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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