Skip to main content

How to count if cell does not contain text in Excel?

For example, you have a long list of data in Excel, do you know how to count the number of cells which don't contain a specific text string? In this article, I will introduce a formula to count if cells does not contain specific text string in Excel.


Count if cell does not contain certain text string with formula

We can apply the COUNTIF function to figure out the number of cells which don't contain a specific text string in a specific range in Excel.

The basic form of the formula is shown as: =COUNTIF(Range,"<>*txt*")

For example, we want to count cells not containing the text of "count" in the Range A1:A40. In a blank cell enter the formula =COUNTIF(A1:A40,"<>*count*") and then press the Enter key.
doc countif not contain 1

Then you will get the number of cells which don't contain the specific text of "count" in the specific Range A1:A40.

Count and select/highlight if cells don't contain text of another column in Excel

Kutools for Excel’s Select Same & Different Cells utility can help you quickly compare two columns, and then select or highlight the same/different cells between two columns, or select/highlight the entire rows based on the same/different cells between two columns.


ad select count uniques between two lists

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now

Count if cells don't contain certain text with Kutools for Excel

If you have Kutools for Excel installed, its Select Specific Cells utility can help you select all kinds of cells/rows/columns easily, such as cells containing certain text string, cells greater/less than a certain value, etc. Here I will guide you to count cells if not containing certain text string with this utility.

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now

1. Click the Kutools > Select > Select Special Cells.
doc countif not contain 5

2. In the opening Select Specific Cells dialog box, please configure the setting as follows:

(1) Specify the range you will count cells without certain text string into the Select Cells in this range box;

(2) Specify one selection type based on your needs, such as Cell or Entire row.

(3) Click the Specific type box, and select Does not contain from the drop down list;

(4) Type the text string you will count by into besides box.

3. Click the Ok button. Then another dialog box comes out and shows you how many cells have been selected.

In our case, the “19” indicates the cells which don’t contain the certain text string of “Count”. See below screenshot:

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now


Demo: count if cell does not contain specific text in Excel


Kutools for Excel: Over 300 handy tools at your fingertips! Start your 30-day free trial with no feature limitations today. Download Now!

Related Articles

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Very helpful =COUNTIF(D2:$D$73,"<>0") to show countif a range ISN'T something.
This comment was minimized by the moderator on the site
=COUNTIF(V2:V1445,"<>No")
Hello, i want to use this formula with filtered data? any idea how this can be done?
Thank you
This comment was minimized by the moderator on the site
Hi sam,
This article may help you solve the problem.
https://www.extendoffice.com/documents/excel/2519-excel-countif-filtered-data.html
This comment was minimized by the moderator on the site
I want use one formula. i.e., ex: if A1 not like 098 or CB011/CB111 no fill. else NM how can I? Pl help me. Thank U
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations