Skip to main content

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.
doc count cells equal to 1

Generic formula:



  • Range: Required, the cells you want to count that match to criteria from.
  • Value: Required, the criteria that the cells need to match to while counting.


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

Sample File

doc sampleClick to download sample file

Relative Formulas

The Best Office Productivity Tools

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations