Using Multiple Test Conditions

Written by Allen Wyatt (last updated February 2, 2019)
This tip applies to Excel 97, 2000, 2002, and 2003


You are not limited to a single test condition when using conditional formatting. Excel allows you to specify up to three conditions in the Conditional Formatting dialog box. To set multiple conditions, all you need to do is click on the Add button after you are done with each condition. Excel then expands the dialog box and allows you to enter another test and associated format.

This capability comes in handy when you want to test a cell for multiple specific values. For instance, let's say you wanted to apply different formatting when a particular cell's value was equal to either 200, 350, or 500. Excel makes this easy, simply by using multiple conditions.

If you decide to define multiple conditions, each condition is independent of the other. If you want more complex conditions, using Boolean operators such as AND or OR, then you should set up a formula for your conditional test, as described in other ExcelTips.

At some time while you are developing your conditional tests, you may want to delete one of the conditions. Excel makes this easy. All you need to do is click on the Delete button in the Conditional Formatting dialog box. If you have multiple conditions defined, Excel displays the Delete Conditional Format dialog box. Select which of your conditions you want deleted, and then click on the OK button. You can then continue to work in the Conditional Formatting dialog box, as desired.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2796) applies to Microsoft Excel 97, 2000, 2002, and 2003.

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

Avoiding a Section Break Booby Trap

Section breaks got your document formatting all messed up? It could be because of the way you added the section breaks in ...

Discover More

Backing Up Building Blocks

Got a lot of Building Blocks defined in Word? You can back them up rather easily, but first you need to figure out where ...

Discover More

Reversing Names In Place

Do you want a way to reverse names within a cell, making them "last, first" instead of "first last?" Here's a handy macro ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (menu)

Noting Inactivity within a Timeframe

There are many times when you are creating a worksheet that you need to analyze dates within that worksheet. Once such ...

Discover More

Conditional Formatting with Data Imported from Access

If you want to apply a conditional format to data imported into Excel from Access, you may run into some difficulties ...

Discover More

Highlighting Values in a Cell

There are many ways that Excel allows you to highlight information in a cell. This tip examines a way to highlight values ...

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 6 - 0?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon 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.