Pass Fail percentage when columns are non-contiguous

tonenp1968

New Member
Joined
Dec 7, 2015
Messages
2
I am working on a spreadsheet of mostly pass or fail that has comments spaced throughout it. The person who made the spreadsheet used this formula to achieve a pass or fail percentage:

=COUNTIF(M18:AX18,"Pass")/COUNTA(M18:AX18)

But it counts the columns that have comments as a fail so it doesn't give a true percentage. After the Pass / Fail section starts there are 5 columns of comments spaced out through the rest of the spreadsheet. What is the formula to count only pass or fail and nothing else, either by what it says or by what column it is on?

Thank you in advance for help.
Tony P.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Welcome to the MrExcel Bulletin Board.

Maybe:

=COUNTIF(M18:AX18,"Pass")/(COUNTIF(M18:AX18,"Pass")+COUNTIF(M18:AX18,"Fail"))
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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