Mastering Conditional Formatting: Google Sheets Rules Based on Another Cell

Danielle Jul 09, 2026

Ever found yourself wishing to automate certain formatting tasks in Google Sheets based on the content of another cell? Conditional formatting is your friend! This powerful feature allows you to apply specific formatting rules to cells based on their values or the values of other cells. Let's delve into how you can create conditional format rules in Google Sheets that are based on another cell.

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 the basics of Google Sheets and conditional formatting. If not, don't worry – we'll keep it simple and step-by-step. Let's start by understanding why you might want to use this feature and what it can do for you.

a cell phone with the text'additional format rules'highlighted
a cell phone with the text'additional format rules'highlighted

Why Use Conditional Formatting Based on Another Cell?

Conditional formatting based on another cell can streamline your workflow by automating visual cues. For instance, you might want to highlight cells that contain values above a certain threshold, or cells that are not equal to the value in another cell. This can help you spot errors, track changes, or simply make your spreadsheet more readable.

Google Sheets Tip: Conditional Formatting Custom Formulas – TCEA TechNotes Blog
Google Sheets Tip: Conditional Formatting Custom Formulas – TCEA TechNotes Blog

In this article, we'll guide you through creating conditional format rules based on another cell. We'll cover both simple and complex scenarios, ensuring you have a solid understanding of this versatile tool.

Simple Conditional Formatting: Highlighting Based on Another Cell

Conditional Formatting with Google Sheets | ExcelMaster1
Conditional Formatting with Google Sheets | ExcelMaster1

Let's start with a simple example. Suppose you have a list of sales figures in Column A, and you want to highlight cells in Column B that are not equal to the corresponding cell in Column A. Here's how you can do it:

1. Select the range in Column B where you want to apply the formatting. For example, if your data starts from B2, select B2:B100.

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

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

3. Under the 'Format cells if...' dropdown, choose 'Custom formula is'.

4. Enter the following formula: `=B2<>A2` (assuming your data starts from row 2). This formula checks if the value in each cell in Column B is not equal to the value in the corresponding cell in Column A.

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

The Ultimate Google Sheets Keyboard Shortcut Cheat Sheet for Beginners & Pros
The Ultimate Google Sheets Keyboard Shortcut Cheat Sheet for Beginners & Pros

6. Click 'Done'. Google Sheets will now apply the formatting to any cells in Column B that do not match the corresponding cell in Column A.

Complex Conditional Formatting: Multiple Rules and Logical Operators

Basic Formatting in Google Sheets
Basic Formatting in Google Sheets
CHECK the Conditional Formatting - Teacher Tech with Alice Keeler
CHECK the Conditional Formatting - Teacher Tech with Alice Keeler
the google sheets are in green and white
the google sheets are in green and white
How to Use Conditional Formatting in Google Sheets
How to Use Conditional Formatting in Google Sheets
How to Copy Conditional Formatting to Another Cell in Excel
How to Copy Conditional Formatting to Another Cell in Excel
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
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?
How to Use Conditional Formatting in Google Sheets
How to Use Conditional Formatting in Google Sheets
Excel Conditional Formatting
Excel Conditional Formatting
How to add conditional formatting to checkboxes in Google Sheets. 🤤
How to add conditional formatting to checkboxes in Google Sheets. 🤤
How to Apply Conditional Formatting in Excel - Highlight Data Visually
How to Apply Conditional Formatting in Excel - Highlight Data Visually
Essential Google Sheets Text and Web Formulas for Productivity
Essential Google Sheets Text and Web Formulas for Productivity
Change Cell Colour using Conditional Formatting
Change Cell Colour using Conditional Formatting
Conditional Formatting | Excel Cheatsheets
Conditional Formatting | Excel Cheatsheets
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
Add Conditional Borders in Excel – Smarter Formatting in Seconds
Add Conditional Borders in Excel – Smarter Formatting in Seconds
Create a Google Sheets Second Brain
Create a Google Sheets Second Brain
Google Sheets For Beginners - Lock Top Row
Google Sheets For Beginners - Lock Top Row
100+ Functions & formulas for Google Sheets & Excel basics - Sheetgo
100+ Functions & formulas for Google Sheets & Excel basics - Sheetgo
an info sheet describing the different types of formal formats and how to use them
an info sheet describing the different types of formal formats and how to use them

Now let's explore a more complex scenario. Suppose you have a list of scores in Column A, and you want to highlight cells in Column B based on the following conditions:

  • Highlight green if the score is above 90.
  • Highlight yellow if the score is between 70 and 90.
  • Highlight red if the score is below 70.

Here's how you can set up these rules:

1. Select the range in Column B where you want to apply the formatting.

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

3. Click on 'Add another rule' at the bottom of the dialog box.

4. For the first rule, choose 'Custom formula is' and enter the formula `=A2>90` (assuming your data starts from row 2). Choose the green formatting style, then click 'Done'.

5. Click on 'Add another rule' again. For the second rule, enter the formula `=AND(A2>70, A2<=90)`. Choose the yellow formatting style, then click 'Done'.

6. Click on 'Add another rule' one more time. For the third rule, enter the formula `=A2<70`. Choose the red formatting style, then click 'Done'.

7. Click 'Done' to apply all the rules.

Now, Google Sheets will apply the formatting to cells in Column B based on the scores in Column A, using the rules you've set up.

Using Conditional Formatting with Other Cells

So far, we've looked at conditional formatting based on the value of another cell in the same row. But what if you want to base your formatting on the value of a cell in another row or column? The process is similar, but you'll need to adjust your formulas accordingly.

For example, suppose you have a list of names in Column A, and you want to highlight cells in Column B that match the name in cell A1. You can use the following formula: `=B2=A1` (assuming your data starts from row 2). This will highlight any cells in Column B that contain the name in cell A1.

Using Conditional Formatting with Data Validation

Conditional formatting can also be used in conjunction with data validation to create dropdown menus and other interactive features. For instance, you can use data validation to create a dropdown menu in one cell, and then use conditional formatting to apply formatting to other cells based on the selected value.

To do this, you'll first need to set up data validation in the cell where you want the dropdown menu. Then, you can use conditional formatting to apply formatting to other cells based on the selected value. The formula you use will depend on the specific scenario, but it will typically involve a reference to the cell containing the dropdown menu.

In conclusion, conditional formatting based on another cell is a powerful tool that can help you automate formatting tasks and make your Google Sheets more informative and easier to use. Whether you're highlighting cells based on simple or complex rules, or using conditional formatting in conjunction with other features, this tool offers a wealth of possibilities. So go ahead, experiment, and see what you can create!