Getting a pass/fail rate from 3 values

ZeeDoubleYou

New Member
Joined
Sep 3, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
What I am trying to do is make a chart to record "pass" and "fail" on a spreadsheet while having some boxes as "null" for being inapplicable for different spaces. When I create a =COUNTIF(C2:E17,"Pass")/COUNTA(C2:E17) it skews the rate because "null" is not "pass" but if I have them hidden as "pass" cells it will skew the rate as being higher than what it should be. Any insight as to how I can exclude the cells or the word in general? Attached is what I've got with the gray cells being what needs to be excluded.

Capture.PNG
 

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.
Maybe
Excel Formula:
=COUNTIF(C2:E17,"Pass")/COUNTIF(C2:E17,"?*")
 
Upvote 0
Hi & welcome to MrExcel.
Maybe
Excel Formula:
=COUNTIF(C2:E17,"Pass")/COUNTIF(C2:E17,"?*")
Doing this actually reduced the rate rather than increase it unless "?*" refers to something specific I need to fill in.
 
Upvote 0
In that case can you post some sample data, the expected result & how you calculated that result.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Processing Safety Inspections.xlsx
CDEFGHI
1Control RoomPressesPeanut Loadout
2NullPassPassPass Rate
3PassPassPass50%
4NullPass
5
6
7Null
8Null
9
10
11
12
13NullNull
14
15
16
17
Area 19
Cell Formulas
RangeFormula
I3I3=COUNTIF(C2:E17,"Pass")/COUNTA(C2:E17)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4,C7:C8,C13:D13Cell Valuecontains "Pass"textNO
C2Cell Valuecontains "Pass"textNO
C2:E17Cell Valuecontains "Fail"textNO
C2:E17Cell Valuecontains "Pass"textNO
Cells with Data Validation
CellAllowCriteria
C2:E17ListPass, Fail, Null
 
Upvote 0
And what is your expected result?
 
Upvote 0
And what is your expected result?
The result I'd like is for the pass rate to be reflected accurately. As the example shows it should reflect 100% pass rate because there have been no fails entered at that time.
 
Upvote 0
Ok, how about
Excel Formula:
=COUNTIF(C2:E17,"Pass")/COUNTIFS(C2:E17,"<>null",C2:E17,"<>")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,195
Members
449,072
Latest member
DW Draft

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