How to ignore a cell with a formula that is blank with a countifs formula

ensmith

New Member
Joined
Oct 25, 2011
Messages
48
In cell A2 i am trying to ignore the blank cells with formulas in my countifs formula.
=IF(C2="Completed",100%,COUNTIFS(D2:H2,"<>")/5)

1668799823125.png
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
How about
Excel Formula:
=IF(C2="Completed",100%,COUNTIFS(D2:H2,"><")/5)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
Hi Fluff, what does the "><" do - is that do not count numbers or spaces - Just TEXT - as searching didnt find an answer and seems thats what it does in this thread application and also testing in a spreadsheet - but just wanted to be sure before adding to my list of things
 
Upvote 0
I can't remember how or why it works, but it will only count text & ignore numbers, anything that starts with a space & also null strings.
 
Upvote 0
Thanks for the info
Made a note useful bit of code
 
Upvote 0

Forum statistics

Threads
1,215,360
Messages
6,124,489
Members
449,166
Latest member
hokjock

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