Master Google Sheets: Custom Format Rules

Danielle Jul 09, 2026

Google Sheets, a powerful tool for data management and analysis, offers a wide range of customization options. One such feature is the ability to create custom format rules. These rules allow you to apply specific formatting to cells based on their content, making your data easier to read and understand. Let's delve into the world of custom format rules in Google Sheets.

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

Custom format rules are particularly useful when you want to highlight important data, display dates in a specific format, or apply conditional formatting based on cell values. They can save you time and ensure consistency in your data presentation.

a screenshot of a spreadsheet with multiple columns and numbers on the screen
a screenshot of a spreadsheet with multiple columns and numbers on the screen

Understanding Custom Format Rules

Before we dive into creating custom format rules, let's understand what they are and how they work. Custom format rules are essentially conditional formatting rules that you define. They consist of three main components:

Basic Formatting in Google Sheets
Basic Formatting in Google Sheets

1. **Condition**: This is the criteria that the cell value must meet for the formatting to apply. It could be a specific value, a range of values, or a comparison between cells.

2. **Formatting style**: This is the formatting that will be applied to the cell if the condition is met. It could be fill color, text color, font style, number format, and more.

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

3. **Scope**: This is the range of cells to which the rule applies. It could be a single cell, a range of cells, or even an entire sheet.

Creating a Custom Format Rule

Now that we understand the basics, let's create a custom format rule. Here's a step-by-step guide:

How to Use the SORTN Function in Google Sheets
How to Use the SORTN Function in Google Sheets

1. Select the cells to which you want to apply the rule.

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

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

Top 9 Google Sheets Logical Functions You Should Know
Top 9 Google Sheets Logical Functions You Should Know

4. Enter your condition in the value or formula box. For example, to highlight cells with values greater than 100, you might enter '=A1>100'.

5. Choose the formatting style you want to apply from the 'Formatting style' dropdown.

9 Must-Know Google Sheets Formatting Tips
9 Must-Know Google Sheets Formatting Tips
How to use Google Sheets: A beginner's guide | Zapier
How to use Google Sheets: A beginner's guide | Zapier
Google Sheets Checklists
Google Sheets Checklists
Google Sheets - Conditional Formatting Based on Another Cell
Google Sheets - Conditional Formatting Based on Another Cell
Google Sheets Tip: Conditional Formatting Custom Formulas – TCEA TechNotes Blog
Google Sheets Tip: Conditional Formatting Custom Formulas – TCEA TechNotes Blog
23 Best formulas for Google Sheets (+ Examples)
23 Best formulas for Google Sheets (+ Examples)
How to make a monthly calendar printable using Google Sheets (online tool similar to Excel)
How to make a monthly calendar printable using Google Sheets (online tool similar to Excel)
Create a Google Sheets Second Brain
Create a Google Sheets Second Brain
CHECK the Conditional Formatting - Teacher Tech with Alice Keeler
CHECK the Conditional Formatting - Teacher Tech with Alice Keeler
How to Use Conditional Formatting in Google Sheets
How to Use Conditional Formatting in Google Sheets
6 Crazy Google Sheets Formulas You Should Know
6 Crazy Google Sheets Formulas You Should Know
Free Spreadsheet Templates for Excel & Google Sheets
Free Spreadsheet Templates for Excel & Google Sheets
How to address the current cell in conditional format custom formula?
How to address the current cell in conditional format custom formula?
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
Struggling to add Alternating Colors in Google Sheets
Struggling to add Alternating Colors in Google Sheets
The Ultimate Google Sheets Formulas Cheat Sheet
The Ultimate Google Sheets Formulas Cheat Sheet
How to Show Formulas in Google Sheets
How to Show Formulas in Google Sheets
the google sheets has hidden gems you're not using on your webpages
the google sheets has hidden gems you're not using on your webpages

6. Click 'Done' to save your rule.

Managing Custom Format Rules

You can manage your custom format rules by clicking on "Conditional formatting" again. Here, you can edit, delete, or add new rules. You can also change the order of the rules to determine which one takes precedence.

Google Sheets applies these rules in the order they're listed. If a cell meets the conditions for multiple rules, the rule at the top of the list will apply.

Advanced Custom Format Rules

Custom format rules can get quite complex. You can use logical operators (AND, OR, NOT) to create more intricate conditions. You can also use regular expressions to match patterns in cell values.

For example, you might use a regular expression to highlight all cells containing the word 'urgent' in the notes column. The condition might look something like this: '=regexmatch(A1, "urgent")'.

Using Custom Format Rules with Data Validation

Custom format rules can also be used in conjunction with data validation to create dropdown menus or restrict input to specific values. This can help ensure data accuracy and consistency.

To do this, you would first set up a data validation rule to create the dropdown menu or restrict input. Then, you would create a custom format rule to apply formatting to cells that don't meet the data validation criteria.

Using Custom Format Rules with Scripts

If you're comfortable with Google Apps Script, you can use scripts to create and manage custom format rules. This can be useful for applying rules to large datasets or for automating the application of rules.

For example, you might use a script to apply a custom format rule to a new sheet every time a new row is added to a specific range.

Custom format rules are a powerful tool in Google Sheets, offering a wide range of possibilities for data presentation and management. Whether you're highlighting important data, displaying dates in a specific format, or restricting input to specific values, custom format rules can help you make the most of your data.