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.

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.

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.

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'

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'.

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).

6. Click 'Done'.
Using Conditional Formatting with 'Custom formula is'




















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!