Excel Formulas to Check If the Cell Value is NOT This or That!!
Tags: excelformula, excelformulas
Published: 2021-02-24 11:37:14

---
title: Excel Formulas to Check If the Cell Value is NOT This or That!!
published: true
date: 2021-02-23 12:08:33 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-check-if-the-cell-value-is-not-this-or-that/
---

So far we have learned **[how to check if the cells contain this or that in Excel?](https://geekexcel.com/excel-formulas-to-check-if-the-cell-is-this-or-that-with-or-function/)** Similarly, in this tutorial, we will show the simple formula used to **check if the cell value is NOT this or that in Excel**. 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)

[![If cell value is NOT this or that](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/02/If-cell-value-is-NOT-this-or-that.png)](https://geekexcel.com/excel-formulas-to-check-if-the-cell-value-is-not-this-or-that/if-cell-value-is-not-this-or-that/#main)<figcaption id="caption-attachment-22087">If the cell value is NOT this or that</figcaption>

## General Formula:

- To check the cells when a cell value is NOT this or that in Excel, you can use the below formula.

**=[IF](https://geekexcel.com/use-if-function-in-microsoft-excel-365-simple-steps/)([NOT](https://geekexcel.com/how-to-use-not-function-in-microsoft-excel-365/)([OR](https://geekexcel.com/use-or-function-in-microsoft-excel-365-in-easy-ways/)(A1=”X”,A1=”Y”)),”x”,””)**

## Syntax Explanations:

- **IF** – In Excel, the **[IF function](https://geekexcel.com/use-if-function-in-microsoft-excel-365-simple-steps/)** helps to return one value for a **[TRUE](https://geekexcel.com/use-true-function-in-microsoft-excel-365-simple-methods/)** result, and another for a **[FALSE](https://geekexcel.com/use-false-function-in-microsoft-excel-365-simple-methods/)** result.
- **NOT** – This function will help to reverse a logical value. Read more on the **[NOT function](https://geekexcel.com/how-to-use-not-function-in-microsoft-excel-365/)**.
- **OR** – In Excel, this function will test multiple conditions at the same time. The **[OR function](https://geekexcel.com/use-or-function-in-microsoft-excel-365-in-easy-ways/)** returns either **TRUE** or **FALSE.**
- **Test Value (A1)** – It is the input data from your worksheet.
- **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.

## Practical Example:

Refer to the below example image.

- First, we will give the input values in **Column B** and **Column C**.

![Input Ranges](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/02/Input-Ranges-21.png)<figcaption id="caption-attachment-22088">Input Ranges</figcaption>

- Then, apply the above-given formula to the **[formula bar](https://geekexcel.com/how-to-use-formula-bar-for-various-purpose-in-excel-365/)** section.

![Enter the formula](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/02/Enter-the-formula-23.png)<figcaption id="caption-attachment-22089">Enter the formula</figcaption>

- Finally, we will get the result in the selected cell.

![Result](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/02/Result-26.png)<figcaption id="caption-attachment-22090">Result</figcaption>

## Bottom-Line:

From this tutorial, you can get some clarification of how to **check if the cell value is NOT this or that in Excel**. Please feel free to state your **query** or **feedback** for the above article. Thank you so much for visiting our site!! To learn more, check out  **[Geek Excel](https://geekexcel.com/) **and [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Related Articles:

- **[Excel Formulas for Counting Multiple Criteria with NOT Logic!!](https://geekexcel.com/excel-formulas-for-counting-multiple-criteria-with-not-logic/)**
- **[Excel Formulas to Count Cells Not equal to Many Things or Values!!](https://geekexcel.com/excel-formulas-to-count-cells-not-equal-to-many-things-or-values/)**