Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Get column index in Excel Table
  • Excel Frequency Function Example
  • Move chart to a separate worksheet in Excel
  • How to create Checklist in Excel
  • How to do a t-Test in Excel?

References

  • Perform case-sensitive Lookup in Excel
  • Count rows that contain specific values in Excel
  • How to use Excel LOOKUP Function
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • Left Lookup in Excel

Data Validations

  • Excel Data validation require unique number
  • Data validation must not exist in list
  • Excel Data validation must not contain
  • How To Create Drop-down List in Excel
  • Excel Data validation must contain specific text

Count cells not equal to in Excel

by

This tutorial shows how to Count cells not equal to in Excel using the example below;

Formula

=COUNTIF(range,”<>X”)

Explanation

To count the number of cells that contain values not equal to a particular value, you can use the COUNTIF function. In the example above  X represents the value you don’t want to count. All other values will be counted.

Worked Example:   Count cells that contain specific text in Excel

In the example, the active cell contains this formula:

=COUNTIF(D4:D10,"<>Complete")

How this formula works

COUNTIF counts the number of cells in the range that meet the criteria you supply.

In the example, we use “<>” (the logical operator for “does not equal”) to count cells in the range D4:D10 that don’t equal “complete”. COUNTIF returns the count as a result.

Worked Example:   Excel Data validation require unique number

COUNTIF is not case-sensitive. In this example, the word “complete” can appear in any combination of uppercase / lowercase letters and will not be counted.

If you want to use a value in another cell as part of the criteria, use the ampersand (&) character to concatenate like this:

=COUNTIF(range,"<>"&a1)

If the value in cell a1 is “100”, the criteria will be “<>100” after concatenation, and COUNTIF will count cells not equal to 100.

Post navigation

Previous Post:

44 Practical Excel IF function Examples

Next Post:

Large with criteria in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • How to use IFS function in Excel
  • How to use Excel OR Function

Date Time

  • Convert decimal hours to Excel time
  • Add months to date in Excel
  • Custom weekday abbreviation in Excel
  • Convert Excel time to decimal minutes
  • Convert text to date in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • Group times into unequal buckets in Excel
  • Group arbitrary text values in Excel
  • If cell contains one of many things in Excel
  • How to randomly assign data to groups in Excel

General

  • Lock Cells in a Worksheet Excel
  • Subtotal invoices by age in Excel
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
  • Find Most Frequently Occurring Word in Excel Worksheet
  • How to get Excel workbook path only
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning