Excel: Conditional Formatting for Cell with Specific Text from List

Ever found yourself poring over Excel sheets, wishing you could quickly identify cells containing specific text? Excel's conditional formatting feature can streamline this process by applying visual cues to cells that meet your criteria. Today, we'll delve into how to use conditional formatting to highlight cells that contain specific text from a list.

Excel Conditional Formatting Based on Another Cell Tutorial
Excel Conditional Formatting Based on Another Cell Tutorial

Before we dive in, ensure your Excel version supports conditional formatting. This feature is available in Excel 2007 and later versions, including Excel Online. Now, let's get started!

Excel Conditional Formatting If a Cell Contains Any Text
Excel Conditional Formatting If a Cell Contains Any Text

Understanding Conditional Formatting

Conditional formatting is a powerful Excel tool that allows you to apply formatting to cells based on their values. It's particularly useful when you want to draw attention to certain data or make patterns more visible. In our case, we'll use it to highlight cells containing specific text.

How to Do Conditional Formatting Based on Another Cell in Excel (6 Easy Ways) - ExcelDemy
How to Do Conditional Formatting Based on Another Cell in Excel (6 Easy Ways) - ExcelDemy

To access conditional formatting, select the cells you want to format, then click on 'Conditional Formatting' in the 'Home' tab. From the dropdown menu, choose 'Highlight Cells Rules', then select 'Text that Contains...'. This will open a dialog box where you can specify the text you want to find.

Creating a List of Specific Text

Excel conditional formatting formulas based on another cell
Excel conditional formatting formulas based on another cell

Before you start applying conditional formatting, you'll need to create a list of the specific text you want to find in your cells. You can do this in a separate column or row, or even in a new sheet. For this example, let's assume you have a list in cells A1:A5:

  • Apple
  • Banana
  • Cherry
  • Date
  • Elderberry

Applying Conditional Formatting

ms excel formula
ms excel formula

Now that you have your list, you can apply conditional formatting to highlight cells containing any of these fruits. In the 'Text that Contains...' dialog box, enter "A1" in the 'Format cells that contain' field. This tells Excel to look for text in the range A1:A5.

Next, choose the formatting you want to apply. You can fill the cells with a color, add a border, or change the font color. For this example, let's choose a light yellow fill color to make the cells stand out. Click 'OK' to apply the formatting.

Using Wildcards for More Flexible Searches

Comprehensive Tutorial for Excel Conditional Formatting
Comprehensive Tutorial for Excel Conditional Formatting

Sometimes, you might want to find text that's not an exact match. For instance, you might want to find all cells containing the word "apple", whether it's in lowercase, uppercase, or a mix. This is where wildcards come in handy.

In the 'Text that Contains...' dialog box, you can use the following wildcards:

3 Crazy Microsoft Excel Formulas That Are Extremely Useful
3 Crazy Microsoft Excel Formulas That Are Extremely Useful
Excel Conditional Formatting Tutorial
Excel Conditional Formatting Tutorial
How to Use Conditional Formatting in Excel
How to Use Conditional Formatting in Excel
How to Format Cells in Excel Like a Pro: Step-by-Step Guide
How to Format Cells in Excel Like a Pro: Step-by-Step Guide
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
Excel Count Cells with Text - Text and Values, Count any Text, Occurrence of specific Text
Excel Count Cells with Text - Text and Values, Count any Text, Occurrence of specific Text
Excel Keyboard Shortcuts Every Office User Should Know
Excel Keyboard Shortcuts Every Office User Should Know
Conditional Formatting Explained in Excel
Conditional Formatting Explained in Excel
How to Apply Conditional Formatting in Excel - Highlight Data Visually
How to Apply Conditional Formatting in Excel - Highlight Data Visually
Change Cell Colour using Conditional Formatting
Change Cell Colour using Conditional Formatting
Excel Conditional Formatting
Excel Conditional Formatting
advanced conditional formatting in excel
advanced conditional formatting in excel
How to highlight row if cell contains text/value/blank in Excel?
How to highlight row if cell contains text/value/blank in Excel?
Advanced Excel
Advanced Excel
Conditional formatting highlight target percentage
Conditional formatting highlight target percentage
5 Handy Excel Tricks for Conditional Formatting Every Analyst Should Know
5 Handy Excel Tricks for Conditional Formatting Every Analyst Should Know
Conditional Format Borders in Excel‼️ #excel
Conditional Format Borders in Excel‼️ #excel
Conditional Formatting | MyExcelOnline
Conditional Formatting | MyExcelOnline
the excel formula sheet is filled with information for each item in this chart, you can see
the excel formula sheet is filled with information for each item in this chart, you can see
a poster with the words excel text to columns
a poster with the words excel text to columns
  • ?: Represents any single character.
  • *: Represents any number of characters, including zero.

Using the '?' Wildcard

Let's say you want to find cells containing "applE". In the 'Format cells that contain' field, enter "appl?". The '?' wildcard tells Excel to look for any character after "appl". This will match "applE", "applA", "applB", and so on.

Using the '*' Wildcard

Now, let's find cells containing "apple" followed by any number of characters. In the 'Format cells that contain' field, enter "apple*". The '*' wildcard tells Excel to look for any number of characters after "apple". This will match "apple", "apple pie", "apple juice", and so on.

Managing Conditional Formatting Rules

As you apply more conditional formatting rules, you might find that some rules overlap or that you need to adjust them. Excel allows you to manage your rules in the 'Conditional Formatting Rules Manager'. To access it, click on 'Conditional Formatting' in the 'Home' tab, then select 'Manage Rules'.

Here, you can edit, delete, or change the order of your rules. You can also create new rules or import/export them. This makes it easy to fine-tune your conditional formatting to suit your needs.

Adjusting Rule Order

If you have multiple rules and some cells meet the criteria for more than one rule, Excel applies the formatting based on the order of the rules. You can adjust the order in the 'Conditional Formatting Rules Manager'. Simply select a rule and click 'Move Up' or 'Move Down' to change its position.

Deleting Rules

If you no longer need a rule, you can delete it in the 'Conditional Formatting Rules Manager'. Select the rule and click 'Delete'. A confirmation dialog box will appear. Click 'Yes' to delete the rule.

And there you have it! You've now mastered how to use conditional formatting to highlight cells containing specific text from a list. This powerful tool can save you time and make your Excel sheets easier to navigate. Happy formatting!