Yes or no percentage but not in cell range.

boots647

New Member
Joined
Aug 21, 2022
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
Hi all

I am trying to work out a formula that looks at 10 different cells that have a yes or no in it and I want to do a percentage of how many are yes.

So if 10 no then it'd be 0% if 1 no it'd be 90%.

I can't seem to work a formula out as all formulas I can think of only work with a cell list not cell here cell there ie. I'd have a yes in e12 then a yes or no in l13 then yes or no in t5 n I don't want it looking at cells in between these ones.

Hope this makes sense

Thanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Book1
ABCD
1Y/NPercent Yes =90%
2No
3Yes
4Yes
5Yes
6Yes
7Yes
8Yes
9Yes
10Yes
11Yes
Sheet1
Cell Formulas
RangeFormula
D1D1=COUNTIF($A$2:$A$11,"Yes")/10
 
Upvote 0
My problem is the cells aren't in a range the are all over the place is there a way of doing this without the range?
 
Upvote 0
An example without the range - although I'm sure there must be simpler ways.

Book1
ABCDEFGH
14Percent Yes:90%
15
16YesYesNoYes
17
18Yes
19Yes
20
21Yes
22YesYes
23
24
25Yes
26
Sheet1
Cell Formulas
RangeFormula
B14B14=SUM(COUNTIF(INDIRECT({"B16","C16","E16","G16","E18","C19","H21","C22","E22","D25","F25"}),"Yes"))/10
 
Upvote 0
It's coming up #value
 

Attachments

  • Capture (2).PNG
    Capture (2).PNG
    28.9 KB · Views: 3
Upvote 0
It's coming up #value
You need to put the cell addresses inside quotation marks
Excel Formula:
=SUM(COUNTIF(INDIRECT({"B16","C16","E16","G16","E18","C19","H21","C22","E22","D25","F25"}),"Yes"))/10
 
Upvote 0
If I do that it then comes up there's is a problem with ur formula
 
Upvote 0
I
If I do that it then comes up there's is a problem with ur formula
I've changed my formula to reflect the cells you seem interested in. Copy it & paste it into the cell where you currently have your formula.

=SUM(COUNTIF(INDIRECT({"J11","J17","J19","J24","J28","J34","J38","J47","J54","J75"}),"Yes"))/10
 
Upvote 0
Solution
Perfect thank u so much not sure what I was doing wrong. Thanks again
 
Upvote 0
Perfect thank u so much not sure what I was doing wrong. Thanks again
Glad we got there in the end, and thanks for the feedback :)
(you probably just missed out a quotation mark or comma somewhere - easy to do in long formulas)
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

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