# Get the Count cells that do not contain value in Excel

In this article, we will learn about how to Count cells that do not contain value using COUNTIF function with wildcards in Excel.
In simple words, Consider a scenario in which we are required to count the data based on specific criteria in an array. counting cells that do not contain a specific value using wildcards to catch cell value with countif function in excel explained here with an example.
The COUNTIF function returns the count of cells that do not a specific value.
Syntax:

=COUNTIF (range, “<>value”)

Range : array
Value : text in quotes and numbers without quotes.
<> : operator (not equal to)
Wildcard characters for catching strings and perform functions on it.
There are three wildcard characters in Excel

1. Question mark ( ? ) : This wildcard is used to search for any single character.
2. Asterisk ( * ): This wildcard is used to find any number of characters preceding or following any character.
3. Tilde ( ~ ): This wildcard is an escape character, used preceding the question mark ( ? ) or asterisk mark( * ).

Let’s understand this function using it in an example.

There are different shades of colours in the array. We need to find the colours which do not have red.
Use the formula:

=COUNTIF(A2:A13, "<>*red*")

A2:A13 : array
<>*red* : condition where cells that don’t contain red in the cell value.

The red region marked are the 6 cells which do not contain red colour.
Now we will get the colours which do not have Blue
Use the formula:

=COUNTIF(A2:A13,"<>*Blue*")

There are 9 cells which do not have Blue.
Now we will get the colours which do not have Purple
Use the formula:

=COUNTIF(A2:A13,"<>*Purple*")

As you can see the formula returns the count of cells which do not have a specific value.
Hope you understood how to use Indirect function and referring cell in Excel. Explore more articles on Excel function here. Please feel free to state your query or feedback for the above article.

Related Article:

How to Count Cells That Contain This Or That in Excel

How to Count Occurrences of a Word in an Excel Range in Excel

Get the COUNTIFS with Dynamic Criteria Range in Excel

How to Count total matches in two ranges in Excel

How to Count Unique Values In Excel

How To Count Unique Text in Excel

Popular Articles :

50 Excel Shortcut to Increase Your Productivity : Get faster at your task. These 50 shortcuts will make you work even faster on Excel.

How to use the VLOOKUP Function in Excel : This is one of the most used and popular functions of excel that is used to lookup value from different ranges and sheets.

How to use the COUNTIF function in Excel : Count values with conditions using this amazing function. You don't need to filter your data to count specific values. Countif function is essential to prepare your dashboard.

How to use the SUMIF Function in Excel : This is another dashboard essential function. This helps you sum up values on specific conditions.

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.