How To Guides

Using Conditional Formatting in Google Sheets to Highlight Key Data

Ready to go past the basics? This guide covers advanced Google Sheets conditional formatting: colouring whole rows, combining rules and writing custom-formula rules, with examples you can copy straight in.

Google Sheets How To Guides

Key takeaways

  • Conditional formatting applies colours and styles automatically, so trends, outliers and key values stand out without manual work.
  • The real power is in custom formulas: a single rule can colour an entire row based on the value in one column.
  • Colour scales turn a column into an instant heatmap, and you can stack several rules on the same range for richer views.

Conditional formatting in Google Sheets is a powerful feature that allows you to automatically apply formatting—such as colours, font styles, and more—to cells based on their content. This makes it easy to spot trends, identify key data points, and highlight areas that need attention. Whether you’re working with financial reports, tracking project progress, or monitoring inventory, conditional formatting can help you better understand your data at a glance. This guide will walk you through how to use conditional formatting in Google Sheets to highlight important data.

Step-by-Step Guide to Applying Conditional Formatting

  1. Select the Data Range The first step is to select the range of cells you want to apply conditional formatting to: Click and drag to highlight the range of cells.
  2. Ensure that you’re selecting the correct range where you want the formatting to appear. For example, if you’re tracking sales figures, you might select a range like B2.
  3. Open the Conditional Formatting Menu Once your data range is selected, you can open the conditional formatting menu: Go to the Format menu at the top of the screen.
  4. Select Conditional formatting from the dropdown menu.
  5. The Conditional format rules panel will open on the right-hand side of your screen.
  6. Choose a Formatting Rule In the conditional formatting panel, you’ll need to choose the criteria that will trigger the formatting. Google Sheets offers several options for this:Single Colour: This allows you to apply one colour based on a specific rule, such as highlighting all cells greater than a certain value.Colour Scale: A gradient of colours will be applied based on the values in the range. For example, you could use a green-to-red gradient to show performance levels, with higher numbers in green and lower numbers in red.
  7. Choose the option that best fits the data you’re working with.
  8. Set the Condition After selecting the type of conditional formatting, you need to define the condition that will apply the formatting. For example:Highlight cells greater than a specific value: Choose “Greater than” from the dropdown and enter the value, such as 1000. This will highlight any cells in the selected range that contain numbers greater than 1000.Format cells that contain specific text: Choose “Text contains” and enter the text you’d like to highlight. This is useful when looking for keywords in a dataset, such as tracking certain statuses like “Completed” or “Pending.”
  9. You can also use custom formulas to create more complex conditions, such as highlighting rows based on multiple criteria.
  10. Choose the Formatting Style Once you’ve set the condition, it’s time to choose how the highlighted data will look. You can customise the formatting by:Changing the text colour.Applying bold or italic formatting.Highlighting the cell with a specific background colour.
  11. For example, you might choose a bright green background for cells that meet your condition or make the text bold for emphasis. This helps draw attention to key areas in your sheet.
  12. Apply the Rule After selecting the condition and formatting style, click Done to apply the rule. Your Google Sheet will now automatically format cells based on the criteria you set.You can add multiple conditional formatting rules to the same range if you need to highlight different types of data with different colours or formats.

Advanced Tips for Using Conditional Formatting

  1. Use Colour Scales for Data Visualisation If you’re working with a range of numeric data, such as sales figures or exam scores, you can use colour scales to apply a gradient across the data range. This helps you visualise trends and outliers.In the Conditional format rules panel, select Colour scale.Choose a minimum and maximum value for your data, and assign colours accordingly. For instance, you might use a green-to-red scale, where the highest values are green and the lowest are red.
  2. This approach makes it easy to identify high performers or areas that need improvement.
  3. Highlight Rows Based on Specific Conditions Sometimes, you may want to highlight an entire row based on the value in one specific column. For example, you may want to highlight rows where the status is “Completed” across an entire project tracker.Select the range of rows you want to format.In the Custom formula field, use a formula like =$B2="Completed". This formula checks if the value in column B equals “Completed” and highlights the entire row if the condition is met.
  4. This is useful for tracking progress in project management sheets, inventory lists, or any dataset where specific conditions apply across multiple columns.
  5. Conditional Formatting with Dates If you’re tracking deadlines or due dates, you can use conditional formatting to automatically highlight approaching or overdue dates.Select the range of cells containing dates.In the conditional formatting panel, choose a condition like “Date is before” and set the date to TODAY(). This will highlight all dates before the current day, making overdue tasks or items easy to spot.
  6. You can also highlight upcoming deadlines by using conditions like “Date is within the next X days” to help keep your team on track.
  7. Combine Multiple Conditions You can apply multiple conditional formatting rules to a single range to highlight different types of data. For example, in a sales report, you might want to:Highlight cells where sales are above target in green.Highlight cells below target in red.Highlight cells exactly on target in yellow.
  8. To do this, simply add multiple rules in the Conditional format rules panel, specifying different conditions and formatting styles for each.

Copy-and-Paste Conditional Formatting Examples

Custom formulas are where conditional formatting gets genuinely useful. Select your range, choose Custom formula is, and paste one of these, adjusting the column letters to match your sheet:

GoalCustom formula
Highlight the whole row when a status is complete=$B2="Completed"
Flag overdue dates in column C=$C2<TODAY()
Highlight duplicate values in column A=COUNTIF($A:$A,$A2)>1
Shade every other row for readability=ISEVEN(ROW())
Highlight cells above the column average=B2>AVERAGE($B:$B)
Highlight the top 10 values in a range=B2>=LARGE($B$2:$B$100,10)

Two things that trip people up: anchor the column with a dollar sign ($B2) when you want a rule to read across a whole row, and remember rules run top to bottom, so put the most important one first. To combine rules on one range, just add each as a separate rule in the Conditional format rules panel.

Once your key rows are colour-coded, a chart often tells the rest of the story – see our guide to charts and data visualisation in Google Sheets.

Maximising Insights with Conditional Formatting

Conditional formatting in Google Sheets offers a flexible and powerful way to highlight the most important data in your spreadsheets. Whether you’re managing projects, analysing performance metrics, or monitoring deadlines, this feature makes it easy to spot trends, outliers, and critical information at a glance. By customising rules, using colour scales, and applying conditional formatting across entire rows or columns, you can transform your raw data into a visual tool that provides deeper insights.

Mastering conditional formatting will not only make your data easier to interpret but also improve your ability to act on key information quickly, enhancing productivity and decision-making.

Conditional formatting FAQs

How do I highlight an entire row based on one cell?

Select the whole range, choose Custom formula is, and lock the column with a dollar sign so the rule reads across the row. When the chosen column matches your condition, Google Sheets colours the entire row. The copy-and-paste examples above show the exact formula to use.

Can I use more than one rule on the same cells?

Yes. Add each rule separately in the Conditional format rules panel. Rules are checked from top to bottom, so drag the most important one to the top if two rules could apply to the same cell.

Why is my custom formula not working?

The usual culprits are the wrong starting cell or a missing dollar sign. Write the formula as if it applies to the first cell of your range, use a dollar sign to fix the column when highlighting rows, and check that the Apply to range box matches the data you selected.

Turn this advice into a better website.

Talk to us about improving your website, search visibility, or marketing performance.

Let's Create
Together
Contact Us