Working with Multiple Conditions

by Allen Wyatt
(last updated December 22, 2021)

2

When working with conditional formats, you'll often discover times when you need to apply multiple conditions to a single cell. How you define a single condition is described in other ExcelTips, but Excel allows you to define many conditions that can all apply to the same cell or range of cells.

Begin by selecting the cells for which you want to define conditional formatting rules. Then, with the Home tab of the ribbon displayed, click Conditional Formatting in the Styles group. From the resulting list of options, select Manage Rules. Excel displays the Conditional Formatting Rules Manager. (See Figure 1.)

Figure 1. The Conditional Formatting Rules Manager.

The Conditional Formatting Rules Manager is nothing but a list of the rules which have been defined for the selected cells. Each rule is shown on a separate line, and you can work with the rules by clicking one of the available buttons:

  • New Rule. Allows you to define a new rule, which is added to the end of the rules list. Defining a new rule uses the same procedures described in other ExcelTips.
  • Edit Rule. Make changes to the selected rule.
  • Delete Rule. Remove the selected rule so it no longer applies to the selected cells.
  • Up Arrow. Move the selected rule up in the list of rules.
  • Down Arrow. Move the selected rule down in the list of rules.

Rules are always evaluated in the order in which they appear in the Conditional Formatting Rules Manager. You can modify the evaluation order by using the up and down arrow tools.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6755) applies to Microsoft Excel 2007, 2010, 2013, and 2016.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Formatting Endnote Reference Marks

The reference marks used for endnotes are, by default, formatted "good enough" for most people. If you are one of those ...

Discover More

Jumping to Tables

If your document contains quite a few tables, you may find it helpful to jump quickly from one table to another. There ...

Discover More

Moving Section Breaks

Section breaks are used to divide a document into two or more sections that can be independently formatting. If you want ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Defining a Single Condition

Conditional formatting is a powerful tool you can use to dynamically adjust the formatting of your worksheet. This tip ...

Discover More

Conditional Formats that Distinguish Blanks and Zeroes

Conditional formatting is a great tool. You may need to use this tool to tell the difference between cells that are empty ...

Discover More

Highlighting Cells Containing Specific Text

If you want to highlight cells that contain certain characters, you can use the conditional formatting features of Excel ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 7 + 7?

2021-12-23 19:17:08

Phil

I'd just like to offer my solution to help with Conditional Formatting - For ages, I've had a button in my QAToolbar to run a macro to find all or same as selected cell's cond. formats. Here's the macro; simple enough, but saves me endless time -
'
Sub Condl_Frmts()
' Select all cells with the same conditional formatting as current selected cell.
' OR select all cells with ANY conditional formatting if multiple-cells selected.
'
On Error GoTo Err1
If ActiveSheet.ProtectContents = True Then
Call MsgBox("Contents locked - can't get info", , "Sub - Condl_Frmts")
Exit Sub '---->
End If
'
If Selection.Count = 1 Then
ActiveCell.SpecialCells(xlCellTypeSameFormatConditions).Select
Else
ActiveCell.SpecialCells(xlCellTypeAllFormatConditions).Select
End If
Exit Sub '---->
Err1:
Call MsgBox("No similar Cond. Format cells found.", , "Sub - Condl_Frmts")
End Sub
'


2017-09-17 09:57:54

Tim

Your tips have been quite helpful. Thank you.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.