Google Sheets: Conditional Formatting for Cell Text Matching List

Are you tired of manually checking if a cell in Google Sheets contains text from a specific list? Google Sheets' Conditional Formatting feature can automate this task, saving you time and reducing human error. Let's explore how to use this powerful tool to apply formatting based on whether a cell contains text from a predefined list.

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

Before we dive in, ensure you're familiar with Google Sheets' Conditional Formatting feature. It allows you to apply formatting to cells based on their values, providing a visual cue for data analysis and interpretation. In this guide, we'll focus on using it to check if a cell contains text from a list.

the google sheets are in green and white
the google sheets are in green and white

Setting Up Your List and Cell Range

First, create a list of texts you want to check against in a separate range. For instance, if you're working with a sales report and want to highlight cells containing 'Apple', 'Banana', or 'Cherry', list these fruits in a range like A1:A3.

Create an Interactive Google Sheets Checklist: Tally Checkboxes, Use Conditional Formatting, and More
Create an Interactive Google Sheets Checklist: Tally Checkboxes, Use Conditional Formatting, and More

Next, select the range of cells you want to check. For example, if your data starts from B2 and goes down to B100, select B2:B100. Remember, the range should be the same size as your list range.

Using Conditional Formatting with 'Text is contained in list'

Essential Google Sheets Text and Web Formulas for Productivity
Essential Google Sheets Text and Web Formulas for Productivity

Now, let's apply Conditional Formatting using the 'Text is contained in list' rule.

1. Select the range you want to check (e.g., B2:B100).

2. Click on 'Format' in the menu, then 'Conditional formatting'.

Google Sheets Formula Cheat Sheet
Google Sheets Formula Cheat Sheet

3. Under the 'Format cells if...' dropdown, choose 'Text is contained in list'.

4. In the 'Values' field, enter or select the range containing your list (e.g., A1:A3).

5. Choose the formatting you want to apply (e.g., fill color, text color, or custom formula).

Contact list template for Google Sheets with built in search
Contact list template for Google Sheets with built in search

6. Click 'Done'.

Using Conditional Formatting with 'Custom formula is'

Google Sheets: Construct Formulas with the INDIRECT Function - Teacher Tech with Alice Keeler
Google Sheets: Construct Formulas with the INDIRECT Function - Teacher Tech with Alice Keeler
How to Use Slicers in Google Sheets
How to Use Slicers in Google Sheets
How to use Google Sheets: A beginner's guide | Zapier
How to use Google Sheets: A beginner's guide | Zapier
Your Guide to Google Sheets Formatting
Your Guide to Google Sheets Formatting
Master the LEN Function in Google Sheets: A Simple Guide with Real Example
Master the LEN Function in Google Sheets: A Simple Guide with Real Example
Multiple Hyperlinks in the SAME Cell in Google Sheets - Teacher Tech with Alice Keeler
Multiple Hyperlinks in the SAME Cell in Google Sheets - Teacher Tech with Alice Keeler
How to Use Conditional Formatting in Google Sheets
How to Use Conditional Formatting in Google Sheets
How to highlight or conditional formatting the max or min value in Google sheet?
How to highlight or conditional formatting the max or min value in Google sheet?
Google Sheets Templates for Beginners minimalbudgetsheet
Google Sheets Templates for Beginners minimalbudgetsheet
How to Randomize a List in Google Sheets
How to Randomize a List in Google Sheets
How to Wrap Text in Excel and Google Sheets
How to Wrap Text in Excel and Google Sheets
Multiple Forms to One Google Sheet - Teacher Tech with Alice Keeler
Multiple Forms to One Google Sheet - Teacher Tech with Alice Keeler
How to Hide a Row Based on Cell Value in Google Sheets
How to Hide a Row Based on Cell Value in Google Sheets
How to sum by category in Google sheets
How to sum by category in Google sheets
Excel Conditional Formatting Based on Another Cell Tutorial
Excel Conditional Formatting Based on Another Cell Tutorial
an image of google sheets in the webpage with text and images highlighted on it
an image of google sheets in the webpage with text and images highlighted on it
50 Google Sheets Shortcuts Every User Must Know
50 Google Sheets Shortcuts Every User Must Know
Master the SWITCH Function in Google Sheets: Simplify Complex Conditions & Save Time
Master the SWITCH Function in Google Sheets: Simplify Complex Conditions & Save Time
How to change text case in Google Sheets with UPPER/ LOWER/ PROPER
How to change text case in Google Sheets with UPPER/ LOWER/ PROPER
Handy Cheat Sheets – Microsoft Office | CustomGuide
Handy Cheat Sheets – Microsoft Office | CustomGuide

Alternatively, you can use a custom formula to achieve the same result. This method is useful when your list is dynamic or large.

1. Follow steps 1-3 from the previous sub-topic.

2. Under 'Format cells if...', choose 'Custom formula is'.

3. In the 'Value or formula' field, enter the following formula: `=COUNTIF($A$1:$A$3, B2)>0` (assuming your list is in A1:A3 and your data range is B2:B100).

4. Choose the formatting you want to apply and click 'Done'.

Applying Conditional Formatting to Multiple Ranges

What if you want to check multiple ranges against the same list? You can apply Conditional Formatting to each range individually, but there's a more efficient way.

Instead of selecting each range separately, you can use a structured reference like 'B2:B' to apply the rule to an entire column. This way, as you add more data, the rule will automatically apply to the new cells.

Using Structured References

1. Follow steps 1-4 from the 'Custom formula is' sub-topic.

2. In the 'Value or formula' field, enter the following formula: `=COUNTIF($A$1:$A$3, B2)>0` (note the structured reference 'B2:B').

3. Choose the formatting you want to apply and click 'Done'.

And there you have it! You've now learned how to apply Conditional Formatting in Google Sheets to check if a cell contains text from a list. This powerful tool can significantly enhance your data analysis and presentation capabilities. Happy formatting!