26.6 C
London
Tuesday, June 17, 2025
HomeSoftware TutorialsExcelExcel: Apply Conditional Formatting if Between Two Values

Excel: Apply Conditional Formatting if Between Two Values

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

Often you may want to apply conditional formatting to cells whose values fall between two specific values in Excel.

The following example shows exactly how to do so.

Example: Conditional Formatting if Between Two Values

Suppose we have the following dataset that contains information about various basketball teams:

Suppose we would like to highlight each value in the points column where the value is between 10 and 20.

To do so, highlight the values in the range B2:B14, then click the Conditional Formatting icon on the Home tab, then click Highlight Cells Rules, then Between:

In the new window that appears, choose 10 as the lower value and 20 as the upper value:

One you click OK, the values in the points column that fall between 10 and 20 will automatically be formatted with a light red background and dark red text:

Note that you can also choose a different format for the cells.

For example, you could choose to format the cells using a green background with dark green text:

conditional formatting between two values in Excel

You can also choose Custom Format to specify a custom format style for the cells:

This allows you to pick any combination of styles you’d like for the background color and text color.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

How to Apply Conditional Formatting if Cell Contains Text in Excel
How to Apply Conditional Formatting with Multiple Conditions in Excel

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories