Conditional Formatting: Highlight Cells with Text from Another Column

Ever found yourself poring over Excel sheets, wishing you could quickly identify cells containing specific text? Conditional formatting, a powerful feature in Excel, can help you achieve this with ease. In this guide, we'll explore how to apply conditional formatting to highlight cells that contain text from another column, making your data analysis more efficient and intuitive.

Google Sheets - Conditional Formatting Based on Another Cell
Google Sheets - Conditional Formatting Based on Another Cell

Before we dive in, ensure you're using Excel 2013 or later, as the 'Contains Text' rule we'll use is available from this version onwards. Let's get started!

How to Copy Conditional Formatting to Another Cell in Excel
How to Copy Conditional Formatting to Another Cell in Excel

Understanding Conditional Formatting

Conditional formatting is a tool that allows you to apply formatting to cells based on their values. This could be to highlight cells that meet certain criteria, like being above or below a specific value, or in our case, containing specific text. By using conditional formatting, you can make your data stand out and easier to understand.

Conditionally format a cell which has part of its text match any value from a range of cells in a specific column
Conditionally format a cell which has part of its text match any value from a range of cells in a specific column

In this guide, we'll use the 'Contains Text' rule to format cells that contain text found in another column. This is particularly useful when you want to quickly identify cells that match certain criteria, such as cells containing a specific product name, status, or any other relevant text.

Preparing Your Data

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

Before applying conditional formatting, ensure your data is structured correctly. For this example, let's assume you have two columns: 'Column A' (where you want to apply formatting) and 'Column B' (containing the text you want to search for).

Here's a simple example: | Column A | Column B | |----------|----------| | Apple | Fruit | | Banana | Fruit | | Carrot | Vegetable| | Date | Fruit | | Eggplant | Vegetable|

Applying Conditional Formatting

Conditional formatting based on another column
Conditional formatting based on another column

Now that your data is ready, let's apply conditional formatting to highlight cells in 'Column A' that contain text from 'Column B'.

1. Select the range in 'Column A' you want to format. In our example, this would be A1:A5.

2. Click on 'Conditional Formatting' in the 'Home' tab, then select 'New Rule...'

a poster with the words if classes type 1
a poster with the words if classes type 1

3. In the 'New Formatting Rule' dialog box, select 'Use a formula to determine which cells to format'.

4. In the 'Format values where this formula is true:' box, enter the following formula: `=ISNUMBER(SEARCH(B$1, A1))`. This formula checks if the text in 'Column B' (B$1) is found in the cell in 'Column A' (A1).

Excel Conditional Formatting If a Cell Contains Any Text
Excel Conditional Formatting If a Cell Contains Any Text
How to Apply Conditional Formatting Based on Another Cell in Excel
How to Apply Conditional Formatting Based on Another Cell in Excel
Conditional Linkers - English Study Here
Conditional Linkers - English Study Here
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
Conditional Formatting in Excel
Conditional Formatting in Excel
Using Conditional Cell Formatting in Excel 2007
Using Conditional Cell Formatting in Excel 2007
How to highlight row if cell contains text/value/blank in Excel?
How to highlight row if cell contains text/value/blank in Excel?
Conditional Clauses
Conditional Clauses
Conditional Formatting Entire Column Based on Another Column(6 Easy Steps)
Conditional Formatting Entire Column Based on Another Column(6 Easy Steps)
a hand drawn diagram with different types of text
a hand drawn diagram with different types of text
How to apply conditional formatting search for multiple words in Excel?
How to apply conditional formatting search for multiple words in Excel?
Conditional Formatting on Text that Contains Multiple Words in Excel
Conditional Formatting on Text that Contains Multiple Words in Excel
Conditional formatting in Excel: Learn with Examples
Conditional formatting in Excel: Learn with Examples
Facebook
Facebook
a cell phone with the text combining cell with if
a cell phone with the text combining cell with if
How to Use Conditional Formatting in Microsoft Excel - Make Tech Easier
How to Use Conditional Formatting in Microsoft Excel - Make Tech Easier
Client Challenge
Client Challenge
Conditional Sentences (If-Clauses) Type 2 Handout / Merkblatt
Conditional Sentences (If-Clauses) Type 2 Handout / Merkblatt
a piece of paper that has some writing on it with the words, learn all if clause in 2 minutes
a piece of paper that has some writing on it with the words, learn all if clause in 2 minutes
a poster with three different types of english words and their corresponding phrases, including one for the
a poster with three different types of english words and their corresponding phrases, including one for the

5. Click the 'Format...' button to choose the formatting you want to apply. For example, you could fill the cell with a color or add a border. Once you've chosen your formatting, click 'OK'.

6. Click 'OK' again to close the 'New Formatting Rule' dialog box. Your selected cells in 'Column A' should now be formatted if they contain text from 'Column B'.

Advanced Uses of Conditional Formatting

Now that you've mastered the basics, let's explore some advanced uses of conditional formatting to make your data even more informative.

One powerful feature is the ability to apply multiple rules to a single range. This allows you to highlight cells based on different criteria simultaneously. For example, you could highlight cells containing 'Fruit' in green and cells containing 'Vegetable' in red.

Applying Multiple Rules

To apply multiple rules, follow these steps:

1. After applying your first rule, click on 'Conditional Formatting' again, then select 'Manage Rules...'.

2. In the 'Conditional Formatting Rules Manager' dialog box, click 'New Rule...'.

3. Repeat the process from step 3 to step 5 above, but change the formula to `=ISNUMBER(SEARCH("Vegetable", A1))` and choose a different formatting style.

4. Click 'OK' to close the 'New Formatting Rule' dialog box, then click 'OK' again to close the 'Conditional Formatting Rules Manager'. Your cells should now be formatted based on multiple rules.

Creating Data Bars

Another useful feature is data bars, which add color to cells based on their values relative to other cells in the range. This can help you visualize data distribution at a glance. To create data bars:

1. Select the range you want to format.

2. Click on 'Conditional Formatting', then select 'Data Bars'.

3. Choose the data bar style you want to apply, then click 'OK'.

Your selected cells will now display data bars based on their values.

Conditional formatting is a versatile tool that can greatly enhance your data analysis experience in Excel. By mastering these techniques, you'll be able to quickly identify and understand trends in your data, making you more efficient and effective in your work. So go ahead, experiment with different rules and formatting styles to make your data truly shine!