Countif that does not count blank cells

BMil8

Board Regular
Joined
Aug 9, 2010
Messages
153
Office Version
  1. 365
Hello,

I'm trying to insert a formula that counts the number of values in a column that does not contain the word "Vendor". Currenlty my formula looks as follows:

=COUNTIF('Atlanta N, GA - Open'!B:B,"<>*Vendor*")

However this counts the blank cells as well since they do not contain "Vendor". Is there a formula that will ignore the blank cells and only reference cells that contain a value?

Thanks,
Brian
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi Brian,

How about...

=COUNTA('Atlanta N, GA - Open'!B:B)-COUNTIF('Atlanta N, GA - Open'!B:B,"*Vendor*")
 
Upvote 0
Hello,

I'm trying to insert a formula that counts the number of values in a column that does not contain the word "Vendor". Currenlty my formula looks as follows:

=COUNTIF('Atlanta N, GA - Open'!B:B,"<>*Vendor*")

However this counts the blank cells as well since they do not contain "Vendor". Is there a formula that will ignore the blank cells and only reference cells that contain a value?

Thanks,
Brian
What version of Excel are you using?
 
Upvote 0
Please enter a formula in next column and copy it then count that column>0

Excel Workbook
AB
1111Vendor114
2111xyxxyz110
Sheet1




Regards.
 
Last edited:
Upvote 0
I'm using 2007. Jeff's formula worked great (unless you know of another way to condense the formula).
 
Upvote 0
I'm using 2007. Jeff's formula worked great (unless you know of another way to condense the formula).
Like this...

=COUNTIFS('Atlanta N, GA - Open'!B:B,"<>*Vendor*",'Atlanta N, GA - Open'!B:B,"<>")
 
Upvote 0
Works great too. Thanks to everybody for the help. I wish I knew more about Excel.
 
Upvote 0
AMENDMENT:
Please enter a formula in next column and copy it then count that column>0


Excel Workbook
AB
1111Vendor114
20
3111xyxxyz110
Sheet1


Regards,
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,912
Members
452,949
Latest member
beartooth91

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