Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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:

COUNTIF(range,”<>value”)

Arguments

  • 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.

Example:

Count the number of cells that not equal to “Apple” in the given list, choose one of below formulas

=COUNTIF(B2:B8,"<>Apple")

Or

=COUNTIF(B2:B8,"<>"&E2)

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


Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300 Advanced Features Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.

Screen Shot of Excel (with Office Tab installed)

Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Office Tab Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.