Excel Formulas Check the Cell Contains Some Words but Not Others!!
Tags: excelformula, excelformulas
Published: 2021-06-03 02:31:49

---
title: Excel Formulas Check the Cell Contains Some Words but Not Others!!
published: true
date: 2021-06-02 10:22:55 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-check-the-cell-contains-some-words-but-not-others/
---

Excel allows its users to find out **if the cell contains some words but not others**. It is equipped with functions that enable a user to validate the presence of a specified word in a cell. Let’s get into this article!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

[![Cell contains some words but not others](https://geekexcel.com/wp-content/uploads/2021/06/Cell-contains-some-words-but-not-others.png)](https://geekexcel.com/excel-formulas-check-the-cell-contains-some-words-but-not-others/cell-contains-some-words-but-not-others/#main)<figcaption id="caption-attachment-45962">A cell contains some words but not others</figcaption>
## Generic Formula:

- If you test a cell if contains certain words but not others, you can use the below formula.

**=[AND](https://geekexcel.com/how-to-use-logical-function-and-in-excel-365/)([COUNT](https://geekexcel.com/how-to-use-excel-count-function-in-office-365-with-examples/)([SEARCH](https://geekexcel.com/use-search-function-in-microsoft-excel-2013-simple-methods/)(include,A1))>0,COUNT(SEARCH(exclude,A1))=0)**

## Syntax Explanations:

- **AND** – This function helps to check Multiple Conditions and returns TRUE if all the conditions are evaluated as true, otherwise returns FALSE. Read more on the [**AND Function**](https://geekexcel.com/how-to-use-logical-function-and-in-excel-365/).
- **COUNT** – The [**COUNT Function**](https://geekexcel.com/how-to-use-excel-count-function-in-office-365-with-examples/) counts the number of cells that contain numbers and returns the output in number.
- **SEARCH ** – In Excel, the [**SEARCH function**](https://geekexcel.com/use-search-function-in-microsoft-excel-2013-simple-methods/) locates the character between two text strings and returns to the number of the starting position of the first text string from the first character of the second text string.
- **A1 ** – It represents the input text strings.
- **Include**  – It specifies the criteria that help to check the cell value.
- **Exclude**  – It represents the excluding values.
- **Minus Operator (-)** – This symbol will help to subtract any two values.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.

## Example:

Refer to the below example image.

- Here, we will enter the input text strings in **Column B**.
- Now we are going to check a cell to see if contains certain words but not others.

![Input Ranges](https://geekexcel.com/wp-content/uploads/2021/06/Input-Ranges-3.png)<figcaption id="caption-attachment-45960">Input Ranges</figcaption>

- Select any cell and apply the above-given formula.

![Enter the formula](https://geekexcel.com/wp-content/uploads/2021/06/Enter-the-formula-5.png)<figcaption id="caption-attachment-45963">Enter the formula</figcaption>

- Finally, press  **ENTER**  to get the result out.

![Result](https://geekexcel.com/wp-content/uploads/2021/06/Result-4.png)<figcaption id="caption-attachment-45961">Result</figcaption>

## Conclusion:

From this tutorial, we have discussed the simple formulas to **test a cell that contains certain words but not others in Excel**. If you have any other **ideas** or **question** , do share with us here in the **comments** section below.

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Read Also:

- **[Excel Formulas to Create a Series of Dates by Weekends ~ Quick Tips!!](https://geekexcel.com/excel-formulas-to-create-a-series-of-dates-by-weekends/)**
- **[How to Count missing values in a list in Excel Office 365?](https://geekexcel.com/how-to-count-missing-values-in-a-list-in-excel-office-365/)**
- **[How to Find the Actual Price of the Discounted Price in Excel 365?](https://geekexcel.com/how-to-find-the-actual-price-of-the-discounted-price-in-excel-365/)**
- **[Excel Formulas to Check If Cell Contains One of Many Things!!](https://geekexcel.com/excel-formulas-to-check-if-cell-contains-one-of-many-things/)**