Excel formula: Count cells not equal to
To count the number of cells that contain values that not equal to a specified value, such as below screenshot shown. In Excel, you can use the COUNTIF function to quickly handle this job.
Count the number of cells that not equal to “Apple” in the given list, choose one of below formulas
In above formulas, B2:B8 is the range of cells that you want to count from, Apple and E2 is the value you want the cells not equal to.
The press Enter key to get the counted result
- Count cells equal to
With the COUNTIF function, you can count cells that equal to or not contain a specified value.
- Count cells that equal to x or y
In some times, you may want to count the number of cells that meet one of two criteria, in this case, you can use the COUNTIF function.
- Count cells equal to x and y
Here this article introduce the formula to count cells that at the meanwhile match two criteria.
- Count cells greater than or less than
This article talks about how to use the COUNTIF function to count the number of cell that greater than or less than a number