Percentage total in Spreadsheet counting Yes and NA as a percentage total

LouisS

New Member
Joined
Aug 5, 2019
Messages
2
Hello

I want to make a simple table that counts "Yes" and "NA" as a positive and gives me a percentage total.
For example if I had a list of 10 cells and I had 8 Yes, 1 NA and 1 No I want it to give me a result of 90%

I have played around with formulas and can get this
=COUNTIF(A4:A13, "Yes")/COUNTA(A4:A13) but it doesn't count the NA in the stats

I have tried this but the answer I get is 89%
=COUNTIF(B4:B13, "Yes") / (COUNTIF(B4:B13, "Yes") + COUNTIF(B4:B13, "NA"))

Sadly, this is as close as I can get. I do not have enough experience with Excel to solve this so any help would be appreciated.

Thanks,

Louis
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi & welcome to MrExcel.
Try
=(COUNTIF(A4:A13, "Yes")+COUNTIF(A4:A13, "NA"))/COUNTA(A4:A13)
 
Upvote 0
Hi & welcome to MrExcel.
Try
=(COUNTIF(A4:A13, "Yes")+COUNTIF(A4:A13, "NA"))/COUNTA(A4:A13)

Thank you so much - that worked perfectly. I am under pressure at a new job to do a lot of extra work I am not trained for and you've saved me a lot of time.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,089
Members
448,548
Latest member
harryls

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