Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.
All articles COUNT How to Count Cells Not Equal to Many Things

How to Count Cells Not Equal to Many Things

We can count cells not equal to many things with a combined formula that utilizes the COUNTIF, SUMPRODUCT, and COUNTA functions. This is useful to decipher cells that do not belong to the same category. The steps below will guide all levels of excel users to count cells not equal to many things.

Figure 1: Result for Cells not Containing PETER and JUDE

General formula

=COUNTA(range)-SUMPRODUCT(COUNTIF(range, things))



Setting up the Data

  • We will set up the data by inputting the commission for different marketers in Column A and the names of the marketers in Column B
  • Cell D6 is where we want the formula to return the result for cells that are not equal to PETER and JUDE
  • It should be noted that we must name Cell D9 and Cell 10 as “Names.” We do this by highlighting both cells and click on where we see D15 in figure 2. We will type Names and press the enter key

Figure 2: Setting up the Data

Count Cells That Are Not Equal To PETER And JUDE

  • We will click on Cell D6 and insert the formula below
  • We will press the enter key

Figure 3: Result for Cells not Containing PETER and JUDE



The COUNTIF function checks the range B4:B11 for cells that contain PETER and JUDE. It then returns the results as TRUE or FALSE like this:


The SUMPRODUCT function reads any TRUE VALUE as 1 and FALSE as 0 in the array form below. It sums up the numbers and the result is 5


The COUNTA function counts all the cells in the range B4:B11. The total number of cells in the range is 8.

Hence, 8-5=3.

Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Leave a Comment


Subscribe to

Get updates on helpful Excel topics

Subscribe to
Trusted by people who work at, Inc
Facebook, Inc
Accenture PLC
Siemens AG
The Allstate Corporation
United Parcel Service
Dell Inc