ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count if does not equal (https://www.excelbanter.com/excel-worksheet-functions/168114-count-if-does-not-equal.html)

JRD

Count if does not equal
 
How do i count the number of cells in a column that do not contain a certain
word or words.



Chip Pearson

Count if does not equal
 
If you want to count the non-blank cells that do not contain a given value,
use

=COUNTA(A1:B10)-COUNTIF(A1:B10,C1)

This will not count blank cells.

If you want to include blank cells in the count, use

=(ROWS(A1:B10)*COLUMNS(A1:B10))-COUNTIF(A1:B10,C1)

In both formula, change A1:B10 to your actual range of data.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)



"JRD" wrote in message
...
How do i count the number of cells in a column that do not contain a
certain
word or words.





All times are GMT +1. The time now is 02:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com