Excel: Mastering Conditional Formatting for Multiple Text Values

Ever found yourself drowning in a sea of data in Excel, wishing you could quickly identify specific text values? Conditional formatting is your lifesaver, allowing you to apply colors, icons, or other visual cues to cells based on their content. Today, we're going to explore how to apply conditional formatting to multiple text values in Excel.

Conditional Formatting on Text that Contains Multiple Words in Excel
Conditional Formatting on Text that Contains Multiple Words in Excel

Before we dive in, ensure you're using Excel for Windows or Mac (2010 or later) as the steps may vary for older versions. Let's get started!

the basic excel formats for each type of text, including numbers and letters in green
the basic excel formats for each type of text, including numbers and letters in green

Understanding Conditional Formatting Rules

Conditional formatting in Excel uses rules to check if a cell meets certain conditions. If it does, the cell's appearance changes. To format multiple text values, we'll use the 'Use a formula to determine which cells to format' rule.

Conditional Formatting Explained in Excel
Conditional Formatting Explained in Excel

In this rule, you'll create a formula that returns TRUE for the cells you want to format and FALSE for those you don't. Let's break down how to do this.

Creating a Formula for Multiple Text Values

the levels of excel master v for windows and macs is shown in this screenshot
the levels of excel master v for windows and macs is shown in this screenshot

Suppose you want to format cells containing the text values "Apple", "Banana", and "Cherry". Your formula would look like this: `=OR(ISNUMBER(SEARCH("Apple", A1)), ISNUMBER(SEARCH("Banana", A1)), ISNUMBER(SEARCH("Cherry", A1)))`. Here's how it works:

  • SEARCH finds the position of the text within the cell. If it finds the text, it returns a number; if not, it returns an error (#VALUE!).
  • ISNUMBER checks if the result is a number. If it is, the cell contains the searched text.
  • OR combines the results of the ISNUMBER checks. If any of them are TRUE, the formula returns TRUE.

This formula will return TRUE for cells containing "Apple", "Banana", or "Cherry", and FALSE for all others.

3 Crazy Microsoft Excel Formulas That Are Extremely Useful
3 Crazy Microsoft Excel Formulas That Are Extremely Useful

Applying the Conditional Formatting Rule

Now that you have your formula, follow these steps to apply the conditional formatting:

  1. Select the cells you want to format.
  2. Click on 'Conditional Formatting' in the 'Home' tab, then 'New Rule...'.
  3. Select 'Use a formula to determine which cells to format'.
  4. Enter your formula (e.g., `=OR(ISNUMBER(SEARCH("Apple", A1)), ISNUMBER(SEARCH("Banana", A1)), ISNUMBER(SEARCH("Cherry", A1)))`).
  5. Choose the formatting you want to apply (e.g., fill color, font color, etc.).
  6. Click 'OK' to apply the rule.
Top 21 Excel Formulas
Top 21 Excel Formulas

Excel will now apply the formatting to any cells containing "Apple", "Banana", or "Cherry".

Formatting Multiple Text Values in a Range

Excel Conditional Formatting Based on Another Cell Tutorial
Excel Conditional Formatting Based on Another Cell Tutorial
a screenshot of the format dialog box with an arrow pointing to the text area
a screenshot of the format dialog box with an arrow pointing to the text area
How to apply conditional formatting search for multiple words in Excel?
How to apply conditional formatting search for multiple words in Excel?
Excel Conditional Formatting If a Cell Contains Any Text
Excel Conditional Formatting If a Cell Contains Any Text
How to Apply Conditional Formatting in Excel - Highlight Data Visually
How to Apply Conditional Formatting in Excel - Highlight Data Visually
advanced conditional formatting in excel
advanced conditional formatting in excel
the excel tips and tricks poster shows how to use them for presentations, presentations or work
the excel tips and tricks poster shows how to use them for presentations, presentations or work
Advanced Excel
Advanced Excel
Excel Conditional Formatting
Excel Conditional Formatting
Complete Excel Formula Cheat Sheet | Excel Functions, Shortcuts & Tips for Students
Complete Excel Formula Cheat Sheet | Excel Functions, Shortcuts & Tips for Students
Return Multiple Values in Excel Based on Single Criteria (3 Options)
Return Multiple Values in Excel Based on Single Criteria (3 Options)
two different types of text with the words, combine and numbers in excell keep the format
two different types of text with the words, combine and numbers in excell keep the format
Use Average with Conditional Formatting in Excel
Use Average with Conditional Formatting in Excel
How (and why) to use conditional formatting in Excel
How (and why) to use conditional formatting in Excel
Excel Formula Guide for Office & MIS Work
Excel Formula Guide for Office & MIS Work
How to Use Conditional Formatting in Excel
How to Use Conditional Formatting in Excel
the top 2 excel formulas are shown in this poster, and it is also available for
the top 2 excel formulas are shown in this poster, and it is also available for
an excel spreadsheet with the text,'express your boss with conditioning formating '
an excel spreadsheet with the text,'express your boss with conditioning formating '
How to Use Multiple IF Conditions in Excel (3 Examples)
How to Use Multiple IF Conditions in Excel (3 Examples)
the format dialog box in windows 7 and 8 is shown with the format button highlighted
the format dialog box in windows 7 and 8 is shown with the format button highlighted

What if your data is in a range, and you want to format cells based on the text in another cell? For example, you want to format cells in column B based on the text in column A. Here's how:

Using the INDIRECT Function

The INDIRECT function allows you to reference the range of cells in another cell. To use it, wrap your original formula in another formula like this: `=OR(ISNUMBER(SEARCH("Apple", INDIRECT(A1))), ISNUMBER(SEARCH("Banana", INDIRECT(A1))), ISNUMBER(SEARCH("Cherry", INDIRECT(A1))))`.

In this example, the formula checks if the text in cell A1 is "Apple", "Banana", or "Cherry". If it is, it formats the cells in the range specified in A1.

Applying the Conditional Formatting Rule to a Range

To apply the rule to a range, follow the same steps as before, but enter your new formula (e.g., `=OR(ISNUMBER(SEARCH("Apple", INDIRECT(A1))), ISNUMBER(SEARCH("Banana", INDIRECT(A1))), ISNUMBER(SEARCH("Cherry", INDIRECT(A1))))`) in the 'New Formula Rule' dialog box.

Excel will now apply the formatting to the range specified in cell A1 if the text in A1 is "Apple", "Banana", or "Cherry".

And there you have it! You now know how to apply conditional formatting to multiple text values in Excel. This powerful tool can save you time and make your data much easier to understand. Happy formatting!