Open In App

How to Use Conditional Formatting in Google Sheets

Last Updated : 20 Jun, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Conditional formatting in Google Sheets automatically formats cells based on specific rules, highlighting essential data points, trends, or outliers for more accessible data analysis and interpretation.

This article discusses conditional formatting in Google Sheets, from the basics to advanced techniques, providing a comprehensive understanding of how to use this tool to its greatest advantage.

How-to-Use-Conditional-Formatting-in-Google-Sheets
Conditional Formatting in Google Sheets


What is Conditional Formatting in Google Sheets

Conditional formatting in Google Sheets is dynamic formatting of cells based on conditions, such as highlighting essential data or spotting outliers. It changes cell appearances based on set conditions, making it easy to spot specific values. This feature can highlight cells meeting specific conditions or format a range of cells with varying formats corresponding to their values.

Set rules to:

  • Highlight specific text or numbers.
  • Color-code cells based on values.
  • Format cells by date criteria.
  • Use custom formulas for complex formatting rules.

How to use Conditional Formatting in Google Sheets

Google Sheets' conditional formatting automatically styles cells according to preset criteria, enhancing the platform's functionality. The steps to how to use:

Point to Remember:
To use Conditional Formatting in Google sheets

Open Sheets from Google Workspace Applications

Turn on your default web browser on your devices. Search for Google and click at 9 dots menu bar representing Google Workspace Applications. Select Sheets from the enlisted tools. Open a blank sheet or sheet where you want to apply Conditional Formatting.

Step 1: Select the Range

Choose the Range of cells for conditional formatting.

Conditional Formatting in Google Sheets


Step 2: Go to the format menu and Select Conditional Formatting

Go to the format menu and select conditional formatting

Conditional Formatting in Google Sheets
Go to format menu>>select conditional formatting

Step 3: Add a new rule

Click "Add new rule" in the Conditional format rules pane.

Conditional Formatting in Google Sheets
change default forma rule

Step 4: Set Condition

Select conditions like more significant than, less than, equal to, etc.

Conditional Formatting in Google Sheets
Select the condition


Step 5: Choose Formatting

Select cell formatting when the condition is met. Options include text and background colours, borders, etc.

Conditional Formatting in Google Sheets
select the highlight colour


Step 6: Press Done to apply

To apply the changes, press the done button

Conditional Formatting in Google Sheets
Select Done


Step 7: Preview Results

The formatted cells will update automatically with changing conditions.

Conditional Formatting in Google Sheets
Preview Results

How to Apply Conditional Formatting with is empty/is not empty

Step 1: Select the Range

Select the Range of the cell in Google Sheets.

Conditional Formatting in Google Sheets
Select the Range

Step 2: Open Conditional Formatting

Click on the "Format" menu and select "Conditional formatting."

Conditional Formatting in Google Sheets
Format >>Conditional Formatting

Step 3: Add New Rule

Click "Add new rule" in the Conditional format rules.

Step 4: Choose a Condition from the Format rules

Go to the Format rules, and Select "Custom formula is."

Conditional Formatting in Google Sheets
Choose Formula

Step 5: Enter the Formula

Enter Formula, and define the "= ISBLANK (C1)" and "=NOT(ISBLANK(C1)" formulas.

Conditional Formatting in Google Sheets
Enter the formula

Step 6: Choose Style

Set Formatting style in google sheet.

Step 7: Select the Done option

To apply the changes, press the done button.

How to Apply Conditional Formatting based on Text

Step 1: Select the Range

Select the Range of the cell in Google Sheets.

Step 2: Open Conditional Formatting

Go to the format menu and select conditional formatting

Conditional Formatting in Google Sheets
Format tab>>choose conditional formatting

Step 3: Add a new rule

Click "Add new rule" in the Conditional format rules pane.

Step 4: Choose a Condition from the dropdown menu

Under "Format cells if...", you can select "Text contains, Text does not contain, Text is exactly or another relevant option.

Conditional Formatting in Google Sheets
choose a condition

Step 5: Enter Text

Input the condition text (e.g., "PASS OR FAIL").

Conditional Formatting in Google Sheets
Enter text

Step 6: Set Formatting

The select style for cells when the condition is met (e.g., text color, background).

Step 7: Press Done to apply

Click "Done" to apply conditional formatting.

Conditional Formatting in Google Sheets
Press Done to apply

How to Apply Conditional Formatting based on number values

Step 1: Select the Range

Select the Range of the cell in Google Sheets.

Step 2: Open Conditional Formatting

Go to the format menu and select conditional formatting

Conditional Formatting in Google Sheets
Format Tab>>Choose Conditional Formatting

Step 3: Add a new rule

Click "Add new rule" in the Conditional format rules pane.

Step 4: Choose Condition

In the Conditional Formatting menu, select a condition, such as "Greater Than" or "Less Than."

Conditional Formatting in Google Sheets
Choose Condition

Step 5: Set the VALUE and Click Done Button

Specify a value after choosing the condition and Apply the rule by clicking "Done".

Conditional Formatting in Google Sheets
Choose the value and press done

How to Apply Conditional Formatting to an Entire Row

Step 1: Select the Range

Select the Range of the cell in Google Sheets.

Step 2: Open Conditional Formatting

Go to the format menu and select conditional formatting

Conditional Formatting in Google Sheets
Format tab>>select conditional formatting

Step 3: Choose Condition

In the Conditional formatting rules pane, choose "Custom formula."

Conditional Formatting in Google Sheets

Step 4: Enter Formula "= $A1 > 100"

Enter a formula evaluating TRUE or FALSE based on your condition. For example, use = $A1 > 100 to highlight rows where column A exceeds 100.

Conditional Formatting in Google Sheets
Enter Formula

Step 5: Set Formatting Style

Select your formatting style.

Conditional Formatting in Google Sheets
Set Formatting Style

Step 6: Apply Done Button

Click "Done" to apply the formatting

Conditional Formatting in Google Sheets
Click on Done

How to Apply Conditional Formatting based on Dates

Step 1: Select the Range

Choose cells for the color scale.

Conditional Formatting in Google Sheets
Select the range

Step 2: Open Conditional Formatting

Go to the format menu and select conditional formatting

Conditional Formatting in Google Sheets
Format tab >>Conditional Formatting

Step 3: Choose "Date is after"

Select "Date is after" from the dropdown menu in the Conditional formatting rules pane.

Conditional Formatting in Google Sheets
Choose formula

Step 4: Select a Condition

Click a condition from the dropdown menu, like "today," "tomorrow," or "exact date," to indicate your selection.

Conditional Formatting in Google Sheets
Select a condition

Step 5: Enter the Date

Enter the date directly or select a cell with the date.

Conditional Formatting in Google Sheets

Step 7: Apply the Formatting and click done

Click "Done" to apply the rule and formatting.

Conditional Formatting in Google Sheets
click done to apply rule

How to Apply Multiple Conditional Formatting Rules

Step 1: Select the Range

Choose cells for the color scale.

Conditional Formatting in Google Sheets
Select the Range

Step 2: Open Conditional Formatting

Go to the format menu and select conditional formatting

Conditional Formatting in Google Sheets
Go to format tab>>conditional formatting

Step 3: Choose the type and enter the Condition

Select your preferred rule type from Format cells if and enter the condition or formula (example, select "is empty" )

Conditional Formatting in Google Sheets
Choose the Type and Enter the formula


Step 4: Set Formatting Style

Select your formatting style.

Conditional Formatting in Google Sheets
Set formatting style

Step 5: Add Another Rule

To add another rule, click "+ Add another rule" and enter the condition (example, select "is equal to" )

Conditional Formatting in Google Sheets
Add another Rule

Step 5: Apply the Condition

Click "Done" to apply the Condition.

How to use conditional formatting in Google Sheets to highlight errors

Step 1: Select the Range

Select the Range of the cell in Google Sheets.

Conditional Formatting in Google Sheets
Select the Range

Step 2: Open Conditional Formatting

Go to the format menu and select conditional formatting

Conditional Formatting in Google Sheets
Go to Format Tab>>Select Conditional Formatting

Step 3: Choose "Custom formula is"

Select "Custom formula is" from the dropdown menu in the Conditional formatting rules pane.

Conditional Formatting in Google Sheets
Choose Custom Formula

Step 4: Enter the Formula ISERROR()

Enter a formula to identify the error type. Examples include highlighting formula errors with =ISERROR(A1) and specific errors like division by zero with formulas such as =ISDIV(A1).

Conditional Formatting in Google Sheets


Step 5: Select Formatting Style

Choose a formatting style for cells meeting the condition, like changing font or adding borders.

Conditional Formatting in Google Sheets
Select Formatting Style

Step 6: Apply the Formatting and rule

Click "Done" to apply the formatting and rule.

Conditional Formatting in Google Sheets
Apply the formatting and Click on done


How to use conditional formatting in Google Sheets based on time-related conditions

Step 1: Select the Range

Select the Range of the cell in Google Sheets.

Step 2: Open Conditional Formatting

Go to the format menu and select conditional formatting

Step 3: Choose "Date is" or "Custom formula is"

Select "Date is" or "Custom formula is" based on the complexity of the condition you need.

Note:

"Date is" suits common conditions like "is after" or "is before," while "Custom formula is" is for more intricate conditions.

Step 4: Condition Setup

  • For "Date is": Choose a condition, like "is before" or "is on," from dropdown. Input date or time value.
  • For "Custom Formula is, "Enter a formula output TRUE or FALSE. Example: To highlight post-today dates: =A1>TODAY() or date range: =AND(A1>=DATE(2024,1,1), A1<=DATE(2024,12,31).

Step 6: Apply the Formatting

Click "Done" to apply the formatting.

How to Remove Conditional Formatting in Google Sheets

Step 1: Select the Range

Choose the cell range to remove conditional formatting.

Conditional Formatting in Google Sheets
select the range

Step 2: Open Conditional Formatting

Go to the format menu and select conditional formatting

Conditional Formatting in Google Sheets
Open conditional formatting

Step 3: Select "Conditional formatting"

The rules pane displays current rules; hover over them to view affected cells.

Conditional Formatting in Google Sheets
Select Conditional formatting

Step 4: Click the trash icon

Remove a rule by clicking its trash icon or you can clear all rules by clicking "Clear rules."

Conditional Formatting in Google Sheets
Click on the Trash Icon

Conclusion

Using conditional formatting in Google Sheets dynamically formats cells based on specified conditions, highlighting important information and trends in data. By selecting cells, setting rules or custom formulas, choosing formatting styles, and applying changes, readability and analysis improve. Managing rules allows data presentation and interpretation flexibility, enhancing visualization and analysis efficiency.

How do you copy conditional formatting?

Choose the control with the desired conditional formatting. Use Format Painter on the Home tab. Click on all the controls you wish to format. Select Format Painter again to finish.

How do you identify duplicates in Excel?

Review selected cells for duplicates to decide whether to remove them. Note that Excel can't highlight duplicates in PivotTable Values. Access via Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.


Next Article

Similar Reads