COUNTIF excluding blank cells - (Cells have formulas)

ACoombes

New Member
Joined
Mar 28, 2014
Messages
5
I have a formula in column F (see Below) that provides me with a "yes", "no" or "blank" cell. I am trying to get the average number of “Yes” responses (excluding blank cells) in column F - formatted as a percentage with no decimal places (50%).
I am using the COUNTIF formula (see below) however, it is including the blank cell because there is a formula in there. I tried this on cells with no formula and it worked perfectly.
I need it to exclude the blank cells even though there is a formula in those cells.
HELP!!!

Column F Formula:
=IF(AND(OR(G3="x"),E3<=3),"Yes",(IF(AND(OR(H3="x"),E3<=7),"Yes",(IF(AND(OR(I3="x"),E3<=20),"Yes",IF(AND(ISBLANK(G3),ISBLANK(H3),ISBLANK(I3)),"","No"))))))

COUNTIF Formula:
=COUNTIF(F3:F52,"Yes")/(ROWS(F3:F52)-COUNTIF(F3:F52, "<>"&"*"))
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Welcome to the board.
Try counting the No's and Yes's, instead of Non Blanks..

=COUNTIF(F3:F52,"Yes")/SUM(COUNTIF(F3:F52,{"No","Yes"}))
 
Upvote 0
Duh! Why didn't I think of that. I got so hung up on fixing the formula, I didn't think about changing what it says. Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,216,115
Messages
6,128,923
Members
449,479
Latest member
nana abanyin

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