How to Count Cells Not Equal to a Specific Value in Excel

This post will guide you how to count the number of cells that are not equal to a specific value in a given range cells using a formula in Excel 2013/2016. Is there an easy way to count cells which are not equal to a particular value in your working data in Excel.

Count Cells Not Equal to a Value


Assuming that you want to count cells that not contain value defined in a selected range of cells or count cells that are not equal to a specific value. In this case, Excel has provided a simple solution to count cells that are not equal to a certain value. And you can use the COUNTIF function to solve this problem very easily. The below steps will show you how to count cells not equal to another value in Excel.

To Count the number of cells in range A2:A6 that are not equal to “excel” without case sensitive, you can use the below formula based on the COUNTIF function:

=COUNTIF(A2:A6,”<>excel”)

count cells not equal to value1

Let’s see how this formula works:

The COUNTIF function can be used to count the number of cells in a range that match the supplied criteria in Microsoft Excel. The range A2:A6 is the range of cells in which you want to match the criteria. The criteria “excel” is the value that you want to ignore during the count in the range “A2:A6”.

COUNTIF Function will count the number of cells in the range “A2:A6” that matches the condition you provide. And the “not equal to operator” will be used to count the cells in the range that does not equal to the value “excel”. And it will count all other values except this one.

The COUNTIF function is not case-sensitive. So if you wish to count cells exactly equal to a specific value, and you should use EXACT function.

Note: you can also use a value from a cell as its part of the criteria in the above COUNTIF function. To do this you need to use the ampersand operator to combine with that cell reference. Just like the below formula:

=COUNTIF(A2:A6,”<>”&A2)

count cells not equal to value2

Note: the Cell A2 is the value that you want the cells not equal to in range A2:A6.

Related Functions

  • Excel COUNTIF function
    The Excel COUNTIF function will count the number of cells in a range that meet a given criteria. This function can be used to count the different kinds of cells with number, date, text values, blank, non-blanks, or containing specific characters.etc.= COUNTIF (range, criteria)…
  • Excel EXACT function
    The Excel EXACT function compares if two text strings are the same and returns TRUE if they are the same, Or, it will return FALSE.The syntax of the EXACT function is as below:= EXACT (text1,text2)…

x
How to Create Dynamic Interactive Charts in Excel
 

 

Related Posts

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Fix #N/A Error For VLOOKUP From Another Sheet
vlookup from anther sheet not working1

This post will show you how to fix the #N/A error why it occurs when you extract values from another sheet using VLOOKUP function in Excel 2016,2013,2010 or other Excel versions. How can you correct a #N/A error in VLOOKUP ...

Sidebar