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:


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:


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)…



Related Posts

Break ties with helper COUNTIF and column

Suppose you got a task to adjust the values that contain the ties; what would be your first attempt to break the ties of the given value? If you are wondering about doing this task manually, let me add that ...

Calculate Total Cost with Excel VLOOKUP Function

In today's article we will show you how to calculate the total cost for a given weight using the Excel VLOOKUP function. This function will help us to find the appropriate unit price for that weight and then we can ...

Excel Formulas To Calculate The Bond Valuation

Assume that you've been assigned a task of calculating bond valuation; so if you are new to Ms Excel or do not have much experience with it, then I am pretty sure about it that doing this task manually might ...

Calculate Cumulative Totals with Excel SUM Function

Today, through a simple example, we will show you how to use one of the most common-used Mathematical functions in excel, the SUM function, to add up the sum. In our daily life, we keep an account of what we ...

BMI Calculation Formula In Ms Excel

You might have come across a task in which you were assigned to make BMI calculations of the supplied numbers, and you may be looking for an efficient approach to accomplish this process rather than doing BMI calculations manually, by ...

Calculate The Period of Loan or Investment in Excel

In our daily life, most of us will invest or take a loan, so we need to master some simple financial functions to calculate the period needed for loans or investments. If you work as an accountant, you need to ...

Working Time Calculation Based on Timesheets

In the office, a special machine record the time when you start working (clock in office) and when you finish working (clock out of office). We can calculate the total working time by subtracting the end working time from the ...

Sort/Rank Numeric Values with Duplicate Values Exist

Excel built-in RANK function can sort a set of values. If there are duplicate numbers, then the rank number is also duplicated. See the following example: There are two numbers “100” in range A2:A9, they are both the third largest ...

Calculate Days Open in Excel

If you want to know how to Calculate days in Excel, there are some formulas that you can use to do so. For example, you can use the DAYS function in Excel to find the number of days between two ...

Calculate Grades With VLookup in Excel

Why Should You Calculate Grades With VLookup Excel? If you're looking for a simple way to find out a student's grades, VLOOKUP Excel can do the trick. This function uses a lookup table to find the values and sort them ...