Catalog

How to Use Conditional Formatting Based on Another Cell in Google Sheets: The Ultimate Guide

December 7, 2023 1.1K views

Understanding how to format cells based on specific conditions in Google Sheets is crucial. This guide delves into the depths of conditional formatting, offering insights, practical examples, and user-friendly tips. Let's explore the world of Google Sheets' conditional formatting together.

What Is Conditional Formatting in Google Sheets

Conditional formatting is a powerful feature in Google Sheets that allows you to automatically format cells based on specific criteria. This can be incredibly useful for highlighting important data, identifying trends, and making your spreadsheets more visually appealing.

Location of Conditional Formatting

To access conditional formatting in Google Sheets, simply click on the Format menu in the top toolbar and select Conditional formatting. This will open the Conditional format rules sidebar, where you can create and manage your formatting rules.

How Conditional Formatting Works

Conditional formatting rules consist of two main components:

  • Conditions: These define the criteria that must be met for the formatting to be applied. For instance, you could create a rule that highlights cells with values greater than 50.

  • Formatting Styles: These determine how the cells will be formatted when the conditions are met. You can customize the formatting to include font styles, colors, borders, and even images.

Types of Conditional Formatting

There are two primary types of conditional formatting in Google Sheets:

  1. Single color: This applies a single color to cells that meet the specified conditions.

  2. Color scale: This applies a gradient of colors to cells based on their values. For example, you could use a color scale to represent values from low (red) to high (green).

Benefits of Conditional Formatting

Conditional formatting offers several benefits for Google Sheets users:

  1. Enhanced Data Visualization: It helps you quickly identify patterns and trends in your data by visually highlighting important information.

  2. Improved Data Analysis: It can make it easier to spot anomalies, outliers, and potential errors in your data.

  3. Increased Clarity and Readability: It can make your spreadsheets more visually appealing and easier to understand for both yourself and others.

How to Use Conditional Formatting Based on Another Cell Value

Conditional formatting can be used to format cells based on the value of another cell. This can be useful for highlighting cells that fall within a certain range, identifying relationships between data points, and creating visually appealing data displays.

Step 1: Select the Range to Format

  1. Open your spreadsheet in Google Sheets.

  2. Select the range of cells you want to apply conditional formatting to. This can be a single cell, a group of cells, or an entire column or row.

Step 2: Access Conditional Formatting

  1. Click on the Format menu in the top toolbar.

  2. Select Conditional formatting.

  3. The Conditional format rules sidebar will appear on the right side of the spreadsheet.

Step 3: Create a Custom Formula Rule

Under the Format cells if drop-down menu, choose Custom formula is.

  1. In the Value or formula field, enter the formula that defines the condition for the formatting. The formula should reference the cell you want to compare the range to and include the desired comparison operator.

  2. For example, if you want to highlight cells in column C that are greater than the value in cell B1, you would enter the following formula:

=C2>B1

Step 4: Set Formatting Styles

  1. Click on the Formatting style drop-down menu to choose how the cells will be formatted when the condition is met.

  2. You can customize the formatting to include font styles, colors, borders, and even images.

  3. For instance, you could set the font color to red for cells that meet the condition.

Step 5: Apply the Formatting Rule

  1. Click on the Done button to apply the conditional formatting rule.

  2. The selected range of cells will be formatted according to the specified criteria.

Step 6: Repeat for Additional Rules (Optional)

  1. You can create multiple conditional formatting rules to apply different formatting styles based on different conditions.

  2. Each rule will be evaluated in order, and the first rule that matches the condition for a cell will be applied.

How to Conditional Formatting Based on Another Cell Range 

Conditional formatting can be used to format cells based on the values in another range of cells. This can help you highlight cells that fall within a certain range, identify outliers, and create data visualizations that reflect the overall distribution of data.

Step 1: Select the Ranges to Format

  1. Open your spreadsheet in Google Sheets.

  2. Select the range of cells you want to apply conditional formatting to. This can be a single cell, a group of cells, or an entire row or column.

  3. Select the range of cells that you want to use for comparison. This can be the same range or a different range.

Step 2: Access Conditional Formatting

  1. Click on the Format menu in the top toolbar.

  2. Select Conditional formatting.

  3. The Conditional format rules sidebar will appear on the right side of the spreadsheet.

Step 3: Create a Custom Formula Rule

  1. Under the Format cells if drop-down menu, choose Custom formula is.

  2. In the Value or formula field, enter the formula that defines the condition for the formatting. The formula should reference the ranges you want to compare and include the desired comparison operator.

  3. For example, if you want to highlight cells in column C that are greater than the value in the B1 range, you would enter the following formula:

=C2>B1:B1

Step 4: Set Formatting Styles

  1. Click on the Formatting style drop-down menu to choose how the cells will be formatted when the condition is met.

  2. You can customize the formatting to include font styles, colors, borders, and even images.

  3. For instance, you could set the font color to red for cells that meet the condition.

Step 5: Apply the Formatting Rule

  1. Click on the Done button to apply the conditional formatting rule.

  2. The selected range of cells will be formatted according to the specified criteria.

Step 6: Repeat for Additional Rules (Optional)

  1. You can create multiple conditional formatting rules to apply different formatting styles based on different conditions.

  2. Each rule will be evaluated in order, and the first rule that matches the condition for a cell will be applied.

How to Use Custom Formulas with Conditional Formatting 

Custom formulas with conditional formatting in Google Sheets allow for advanced and specific formatting based on your defined criteria. Here's a step-by-step guide to leveraging custom formulas:

Step 1: Access Conditional Formatting

  • Navigate to the "Format" menu in Google Sheets.

  • Select "Conditional formatting."

Step 2: Choose Custom Formula

  • Click on "Add another rule" at the bottom of the conditional formatting pane.

  • Select "Custom formula is" from the drop-down menu.

Step 3: Enter Formula

  • Input your custom formula, following the standard notation: (='sheetname'!cell).

  • If referencing another sheet, use the INDIRECT function. For example, =INDIRECT("Sheet2!A1").

Step 4: Set Formatting Style

  • Specify the formatting style for cells that meet the conditions defined by your custom formula.

  • Choose font color, background color, or other formatting options.

Step 5: Apply and Review

  • Click "Done" to apply the custom formula-based formatting.

  • Review the changes in your spreadsheet.

Custom formulas empower you to utilize conditional formatting to its full potential, enabling you to highlight data that meets specific criteria, perform advanced data analysis, and create visually appealing spreadsheets. By incorporating formulas into your conditional formatting rules, you can gain deeper insights into your data and make informed decisions.

Best Free Alternative to Google Sheet - WPS Spreadsheet

Google Sheets is undoubtedly a popular and versatile spreadsheet application, but it's not the only option available. If you're looking for a free and powerful alternative to Google Sheets, WPS Office is an excellent choice.

  • Free to Download and Use: Unlike Google Sheets, which requires a Google Workspace subscription for advanced features, WPS Spreadsheet is entirely free to download and use. You can access all its features without any limitations.

  • File Compatibility: WPS Spreadsheet seamlessly integrates with popular file formats, ensuring compatibility with Microsoft Excel and Google Sheets. This allows you to exchange spreadsheets without worrying about format inconsistencies.

  • Free PDF Editing Tools: WPS Office includes a comprehensive PDF editor, enabling you to create, edit, convert, and protect PDF documents without the need for additional software. This feature adds significant value to the WPS Office suite.

  • Extensive Template Library: WPS Office boasts a vast library of templates for documents, presentations, and spreadsheets, saving you time and effort in creating professional-looking deliverables. These templates are freely available, further enhancing the cost-effectiveness of WPS Office.

  • WPS Docs: A Free Alternative to Google Docs: WPS Office includes WPS Docs, a word processor that rivals Google Docs. It offers similar features and compatibility, making it an excellent choice for document creation and editing.

WPS AI: Enhancing WPS Office with Intelligence

WPS Office takes productivity to the next level with WPS AI, an integrated artificial intelligence system that provides advanced features:

  • Document Analysis: WPS AI analyzes your documents, identifying key elements and providing insights to improve clarity and structure.

  • Efficient Formatting: WPS AI automatically formats your documents, adjusting fonts, styles, and layouts for a polished and professional look.

  • Intelligent Content Recommendations: WPS AI suggests relevant content and phrases based on your context, saving you time and effort while enhancing the quality of your work.

With its comprehensive features, free availability, and AI-powered enhancements, WPS Office stands out as a compelling alternative to Google Sheets. Whether you're a student, a professional, or simply someone who utilizes spreadsheets for personal tasks, WPS Office is a valuable tool that can streamline your workflow and enhance your productivity.

FAQs

How to remove conditional formatting from your Google Sheets?

Step 1: Select Cells:

Click and drag to select the cells with conditional formatting.

Step 2: Go to Format:

In the top menu, click "Format."

Step 3: Choose Conditional Formatting:

Select "Conditional formatting" from the menu.

Step 4: Review Rules:

See the existing rules in the sidebar.

Step 5: Remove Rule:

Hover over the rule, click the trash can icon, or select "Remove rule."

Step 6: Confirm and Done:

Confirm the removal if prompted.

Click "Done" to finish.

How to conditionally format one date based on another cell’s date?

Step 1: Select Date Range:

Choose the cells with dates.

Step 2: Access Conditional Formatting:

Go to "Format" > "Conditional formatting.”

Step 3: Custom Formula:

Choose "Custom formula is."

Step 4: Enter Formula:

Enter a formula like =A1>B1 to compare dates in A1 and B1.

Step 5: Set Style:

Define the formatting style.

Step 6: Apply and Done:

Click "Done" to apply.

How can I remove conditional formatting from my Google Sheets?

Step 1: Select Range:

Click and drag to select cells.

Step 2: Go to Format:

Click "Format."

Step 3: Choose Conditional Formatting:

Select "Conditional formatting."

Step 4: Clear Rules:

Click "Cancel" at the bottom.

Step 5: Confirm and Done:

Confirm if needed.

Click "Done" to finish.

Summary

In summary, the article provides a detailed guide on using conditional formatting in Google Sheets, covering various scenarios and common queries. It emphasizes WPS Office as a reliable alternative, highlighting its free features, compatibility, and advanced capabilities through WPS AI. Whether you're a beginner or advanced user, this guide ensures you understand Google Sheets' conditional formatting while showcasing the benefits of WPS Office for seamless office tasks.

15 years of office industry experience, tech lover and copywriter. Follow me for product reviews, comparisons, and recommendations for new apps and software.