Mastering Conditional Format Rules in Google Sheets: Formulas Unveiled

Danielle Jul 09, 2026

Google Sheets is a powerful tool that allows users to format and organize data in various ways. One of these ways is through conditional formatting, which lets you apply specific formatting to cells based on certain conditions. This can help make your data more readable and easier to understand. In this article, we'll delve into the world of conditional format rules in Google Sheets and explore how to use them effectively with formulas.

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

Before we dive into the formulas, let's briefly discuss what conditional formatting is and why it's useful. Conditional formatting allows you to apply different formatting (like fill colors, text colors, or borders) to cells based on their values. For instance, you might want to highlight cells in green if their values are above a certain threshold, or in red if they're below another threshold. This can help you quickly identify trends or outliers in your data.

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

Understanding Conditional Format Rules

Conditional format rules are the backbone of conditional formatting. They're the conditions that determine which cells get formatted and how. Google Sheets offers several built-in rules, but you can also create custom rules using formulas. Let's explore some of these rules.

How to address the current cell in conditional format custom formula?
How to address the current cell in conditional format custom formula?

Built-in rules cover a wide range of conditions, including 'Format cells if...', 'Format only cells that contain...', 'Format only cells that are blank...', and more. These rules allow you to format cells based on their values, text, or even their location in the sheet. However, for more complex conditions, you'll need to use formulas.

Using Formulas in Conditional Format Rules

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

Formulas provide a powerful way to create custom conditional format rules. They allow you to format cells based on complex conditions that can't be achieved with built-in rules. For example, you might want to format cells based on the result of a calculation, or based on the value of another cell. To use a formula in a conditional format rule, you'll need to follow these steps:

  1. Select the cells you want to format.
  2. Click on 'Format' in the menu, then 'Conditional formatting'.
  3. Under the 'Format cells if...' dropdown, select 'Custom formula is'.
  4. Enter your formula in the text box provided. The formula should return TRUE if the cell meets the condition, and FALSE otherwise.
  5. Click 'Done'.

Here are a few examples of formulas you might use:

Conditional Formatting with Google Sheets | ExcelMaster1
Conditional Formatting with Google Sheets | ExcelMaster1
  • =A1>50 - This formula will return TRUE if the value in cell A1 is greater than 50.
  • =B1="Apple" - This formula will return TRUE if the text in cell B1 is 'Apple'.
  • =C1=D1 - This formula will return TRUE if the value in cell C1 is equal to the value in cell D1.

Using A1 and A2 Notation in Formulas

When writing formulas for conditional format rules, you'll often use A1 and A2 notation to refer to cells. This notation allows you to refer to cells relative to the active cell. For example, if you enter =A1>50 in a conditional format rule, it will check if the value in the active cell is greater than 50. If you apply this rule to a range of cells, it will check each cell in the range relative to its position.

Conditional Formatting in Excel 📊
Conditional Formatting in Excel 📊

You can also use this notation to refer to other cells. For instance, =B1>50 will check if the value in the cell to the right of the active cell (B1) is greater than 50. Similarly, =A2 will check if the value in the cell below the active cell (A2) is equal to the value in the active cell.

Advanced Conditional Format Rules

The Ultimate Google Sheets Formulas Cheat Sheet
The Ultimate Google Sheets Formulas Cheat Sheet
Advanced Conditional Formatting in Google Sheets
Advanced Conditional Formatting in Google Sheets
How to add conditional formatting to checkboxes in Google Sheets. 🤤
How to add conditional formatting to checkboxes in Google Sheets. 🤤
Using Formulas and Conditional Formatting in Google Sheets
Using Formulas and Conditional Formatting in Google Sheets
CHECK the Conditional Formatting - Teacher Tech with Alice Keeler
CHECK the Conditional Formatting - Teacher Tech with Alice Keeler
23 Best formulas for Google Sheets (+ Examples)
23 Best formulas for Google Sheets (+ Examples)
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
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?
Complete Excel Formula Cheat Sheet | Excel Functions, Shortcuts & Tips for Students
Complete Excel Formula Cheat Sheet | Excel Functions, Shortcuts & Tips for Students
Comprehensive Tutorial for Excel Conditional Formatting
Comprehensive Tutorial for Excel Conditional Formatting
How to Use Conditional Formatting in Excel
How to Use Conditional Formatting in Excel
Essential Google Sheets Text and Web Formulas for Productivity
Essential Google Sheets Text and Web Formulas for Productivity
Google Sheets Formulas | How to nest a formula in an IF statement?
Google Sheets Formulas | How to nest a formula in an IF statement?
Checkbox Hacks in Google Sheets! Easily add conditional formatting when a checkbox is checked + more
Checkbox Hacks in Google Sheets! Easily add conditional formatting when a checkbox is checked + more
How to Apply Conditional Formatting in Excel - Highlight Data Visually
How to Apply Conditional Formatting in Excel - Highlight Data Visually
3 Crazy Microsoft Excel Formulas That Are Extremely Useful
3 Crazy Microsoft Excel Formulas That Are Extremely Useful
Conditional Formatting Explained in Excel
Conditional Formatting Explained in Excel
Advanced formulas I used in real life in Google Sheets: Embed formulas into the header ! There are
Advanced formulas I used in real life in Google Sheets: Embed formulas into the header ! There are
Stop Confusing Conditionals! Formula & Examples At-a-Glance 💡
Stop Confusing Conditionals! Formula & Examples At-a-Glance 💡
an excel must know how to use formulas
an excel must know how to use formulas

Google Sheets also allows you to create advanced conditional format rules that combine multiple conditions. You can do this by creating multiple rules and adjusting the 'Paint as' options to ensure they don't override each other. For example, you might want to highlight cells in green if their values are above 50, and in red if their values are below 30. To do this, you would create two rules with the following formulas:

  • =A1>50 - This rule will highlight cells in green if their values are above 50.
  • =A1<30 - This rule will highlight cells in red if their values are below 30.

You would then set the 'Paint as' option for the first rule to 'Green fill' and for the second rule to 'Red fill'. This way, cells that meet both conditions (i.e., values below 30) will be highlighted in red, while cells that only meet the first condition (values above 50) will be highlighted in green.

Using Regular Expressions in Formulas

Google Sheets also supports the use of regular expressions in conditional format rules. Regular expressions are a powerful tool for matching patterns in text. They can be used to create complex conditions that can't be achieved with simple text matching. For example, you might want to format cells based on the first letter of the text in the cell. To do this, you could use the following formula:

=REGEXMATCH(A1, "^[A-Z]")

This formula uses the REGEXMATCH function to check if the text in cell A1 starts with an uppercase letter. The "^[A-Z]" is a regular expression that matches any uppercase letter at the beginning of a string.

Conditional format rules are a powerful tool in Google Sheets, allowing you to format your data in ways that make it more readable and easier to understand. Whether you're using built-in rules or creating custom rules with formulas, there's a lot you can do to make your data work for you. So go ahead, experiment with different rules and formulas, and see what you can create!