Percentage Formula

avistasys

New Member
Joined
May 4, 2020
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I am unable to work out or find a solution online for the following sheet.

I have a number of tasks to complete which are recorded as YES or No, as not all tasks are required for certain products these are recorded as NA. (drop downs)

The problem I face is to adjust the overall percentage of the sheet when NA is recorded, currently these affect the percent compliance if used.

What changes do I need to make for the formula please. I have attached an image.

Many thanks in advance.

=COUNTIF(E2:E13,"Yes")
=COUNTIF(E2:E13,"No")
=COUNTIF(E2:E13,"NA")

=SUM(E14/(B13-E16))

Kind regards
Avistasys
 

Attachments

  • Excel Query.jpg
    Excel Query.jpg
    62.2 KB · Views: 7

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
If you simply want the percentage of "Yes" votes, based on all the non-NA records, it would just be:
"Yes Votes" divided by ("Yes Votes" + "No Votes"), or:
=COUNTIF(E2:E13,"Yes")/(COUNTIF(E2:E13,"Yes")+COUNTIF(E2:E13,"No"))
 
Upvote 0
Hi & welcome to MrExcel.
How about
=E14/(E14+E15)
 
Upvote 0
How about
=E14/(E14+E15)
I should have looked at the sheet!
Though our answers will both give the correct results, since they already calculated those COUNTIF amounts in those cells, it is a little easier to do it that way, then it is to recalculate those amounts again.
 
Upvote 0
I'm not even sure if we have understood the OP, as the formula they supplied gives the same result as our suggestions. :unsure:
 
Upvote 0
Hello,

I am unable to work out or find a solution online for the following sheet.

I have a number of tasks to complete which are recorded as YES or No, as not all tasks are required for certain products these are recorded as NA. (drop downs)

The problem I face is to adjust the overall percentage of the sheet when NA is recorded, currently these affect the percent compliance if used.

What changes do I need to make for the formula please. I have attached an image.

Many thanks in advance.

=COUNTIF(E2:E13,"Yes")
=COUNTIF(E2:E13,"No")
=COUNTIF(E2:E13,"NA")

=SUM(E14/(B13-E16))

Kind regards
Avistasys


Hi gents,

Thank you so much for your speedy responses very much appreciated.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Hi & welcome to MrExcel.
How about
=E14/(E14+E15)
Glad we could help & thanks for the feedback.


Hello Fluff,

Unfortunately I just tried the formula and it is not working as required, I shall try to explain what I am seeking.

The objective is to undertake tasks and score against compliance, but NA is affecting the compliance percentage...

The total number of tasks is 12 which remains constant, therefore 100% if the answer to all tasks is YES. This percentage decreases when NO is answered.
If NA is answered the percentage should not be affected. As it is now, if NA is answered that cell affects the percentage. ( ie say one NA cell should adjust for 11 tasks not 12)

Any assistance would be appreciated

Kind regards
 
Upvote 0
In that case I still don't understand what you want.
All the formula supplied do what you describe.

+Fluff New.xlsm
ABCDEFG
1
21YesYesYes
32YesYesYes
43YesYesYes
54YesYesYes
65YesYesYes
76YesNoNA
87YesNoNA
98YesNoNA
109YesNoNA
1110YesNoNA
1211NANANA
1312NANANA
141055
15050
16227
17100%50%100%
18100%50%100%
19100%50%100%
List
Cell Formulas
RangeFormula
E14:G14E14=COUNTIF(E2:E13,"Yes")
E15:G15E15=COUNTIF(E2:E13,"No")
E16:G16E16=COUNTIF(E2:E13,"NA")
E17:G17E17=E14/(E14+E15)
E18:G18E18=SUM(E14/($B13-E16))
E19:G19E19=COUNTIF(E2:E13,"Yes")/(COUNTIF(E2:E13,"Yes")+COUNTIF(E2:E13,"No"))
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,147
Members
449,098
Latest member
Doanvanhieu

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