Excel Formulas to Highlight the Values Not Between X and Y!!
Tags: excelformula, conditionalformattin, excelformulas
Published: 2021-04-20 11:00:28

---
title: Excel Formulas to Highlight the Values Not Between X and Y!!
published: true
date: 2021-04-07 14:28:01 UTC
tags: ExcelFormula,Conditionalformattin,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-highlight-the-values-not-between-x-and-y/
---

We have already learned how to**[highlight the values between two numbers in Excel](https://geekexcel.com/excel-formulas-highlight-values-between/)**. Similarly, here we will show how to **highlight the values that are not between two values X and Y in Excel**. Let’s see them below!! 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)

[![Highlight values not between x and y](https://geekexcel.com/wp-content/uploads/2021/04/Highlight-values-not-between-x-and-y.png)](https://geekexcel.com/excel-formulas-to-highlight-the-values-not-between-x-and-y/highlight-values-not-between-x-and-y/#main)<figcaption id="caption-attachment-22863">Highlight values not between x and y</figcaption>

## General Formula:

- Use the below formula to highlight the values that are not between two values in Excel.

**=[OR](https://geekexcel.com/use-or-function-in-microsoft-excel-365-in-easy-ways/)(A1<lower,A1>upper)**

## Syntax Explanations:

- **OR** – In Excel, the **[OR function](https://geekexcel.com/use-or-function-in-microsoft-excel-365-in-easy-ways/)** will help to test multiple conditions at the same time.
- **A1**  – It represents the input value.
- **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 enter the input values in **Column B** to **Column E**.
- Now we are going to highlight the values that are not between the two values given in  
**Column G**.

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

- So apply the above-given formula in the conditional formatting option.
- To know  **how to apply conditional formatting**  in Excel, just **refer to this article<u>:</u>[ How to Apply the Formula with Conditional Formatting In Excel?](https://geekexcel.com/how-to-apply-formula-with-conditional-formatting/)**
- Finally, we will get the result as shown below.

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

## Closure:

Hope you like this article on how to **highlight the values that are not between the given two values in Excel**. Found something that we’ve not covered? Stuck on something? Please feel free to share it with us. We will assist you. To learn more, check out **[Geek Excel](https://geekexcel.com/) **and [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**

### Related Articles:

- **[Excel Formulas to Highlight the Entire Rows Between Two Dates!!](https://geekexcel.com/excel-formulas-highlight-rows-between-two-dates/)**
- **[Formulas to Highlight Duplicate Rows ~ Simple Tutorial!!](https://geekexcel.com/excel-formulas-to-highlight-duplicate-rows/)**
- **[Excel Formulas to Highlight the Duplicate Columns ~ Easy Steps!!](https://geekexcel.com/excel-formulas-to-highlight-the-duplicate-columns/)**