## Count cells that do not contain specific text in Excel

You can use the COUNTIF function with a wildcard to count the number of cells that contain specific text in a range. On the contrary, it is also easy to use the COUNTIF function to count cells that do not contain specific text. This tutorial provides detailed steps to help solving the problem.

#### How to count cells that do not contain specific text in Excel?

As the below screenshot shown, to separately count the number of cells in range B3:B11 without the certain text “count” and “blank”, you can do as follows.

Generic Formula

=COUNTIF(range,"<>*txt*")

Arguments

Range (required): The range from which you want to count cells without certain text;

Txt (required): The text or text string you want to exclude when counting cells.

How to use this formula?

1. Select a blank cell to place the result (in this case I select E3).

2. Enter the below formula into it and press the Enter key to get the result.

=COUNTIF(B3:B11,"<>*count*")

Tips: For counting cells without the certain text “blank”, please replace the text “count” with “blank” in the formula.

How these formulas work?

=COUNTIF(B3:B11,"<>*count*")

• The COUNTIF function is used to count the number of cells that meet a criterion.
• In this case, "<>*count*" provided as the criteria means that “values that do not contain ‘count’ in any position”.
• The wildcard character “*” is used as a criterion to match any number of characters.

Notes:

1) If you have already entered the criteria texts into cells, you can directly include the cell reference in the formula, and use the AutoFill Handle to get the other results:

=COUNTIF(\$B\$3:\$B\$11,"<>*" & D3 & "*")

2) If there are blank cells in the range, they will be counted as well. For ignoring the blank cells, you can apply the following formula.

=COUNTIFS(B3:B11,"<>*count*",B3:B11,"?*")

#### Related functions

Excel COUNTIF function
The Excel COUNTIF function is a statistical function in Excel which is used to count the number of cells that meet a criterion.

Excel COUNTIFS function
The Excel COUNTIFS function returns the number of cells that meet one single criterion or multiple criteria.

#### Related formulas

Count cells that do not contain errors
This tutorial provides detailed steps to help you count the number of cells that do not contain errors in a specified range in Excel.

Count number of cells that do not contain many values
This post will step through how to count number of cells that do not contain many values in a specified range in Excel.

Count number of date cells in a range by day of week
Excel provides the combination of SUMPRODUCT and WEEKDAY functions to help us easily count the number of specified weekdays within a range. This tutorial provides a step by step guide to help you get through it.

Count The Number Of Text Cells
To count the number of cells that contain text in a specified range, the COUNTIF function can help to easily get it done. Here this article will introduce the formula in details to help you solve the problem.

### The Best Office Productivity Tools

#### Kutools for Excel - Helps You To Stand Out From Crowd

 🤖 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 VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy 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 Columns to Select Same & Different Cells ... 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 Toolsets:  12 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 Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

#### Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

• One second to switch between dozens of open documents!
• Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
• Increases your productivity by 50% when viewing and editing multiple documents.
• Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.