Sheets Tip 287: Conditional Formatting - How to Make It Last a Lifetime!



Hi Reader,

Welcome to the Google Sheets Tips newsletter #287, your Monday morning espresso, in spreadsheet form!

A big thank you to this week's sponsors who help keep this newsletter free to read:

UNITO

Keep Your Sheets in Perfect Sync ⚡

Don’t waste time on manual entry. Use Unito to automatically import, export, and sync data from 40+ leading apps with Google Sheets. It’s the simplest way to gather data, send it somewhere else, and stay in sync with real-time, 2-way updates as changes are made on either end.

BOTSHEETS

Create Chatbots Powered by Your Google Sheets

With Botsheets, you can create your own AI chatbots using your Google Sheets. Your chatbots will be able to give your customers up-to-date, personalized responses based on your data, and even ask questions to collect and add more data to your Sheets. No steep learning curve or coding required.

➜ New videos on YouTube

Check out my newest video tutorials on YouTube:

🎥 Common Formula Errors in Google Sheets and How To Fix Them

🎥 How To Filter Dates in the QUERY Function

_______

➜ News

I.
The next Totally Unscripted episode is this Wednesday, 24 January 2024 at 12:00 PT / 15:00 ET / 20:00 GMT.

In this episode, hosts Martin Hawksey (Google Developer Expert) and Charles Maxson (from Google), discuss how developers are shaping the future of Google Workspace with GenAI.

Link to watch >>

_______

➜ Google Sheets Tip #287: Copy and paste conditional formatting rules

In this tip, we look at how to copy and paste conditional formatting rules, saving you time from having to recreate them.

Once you know the tricks, it's as easy as ABC!

Specifically, let's see how to:

  1. Copy conditional formatting rules and apply them elsewhere, and
  2. Change conditional formatting rules to permanent formats.

1. Copy Conditional Formatting Rules Elsewhere

Suppose we have this dataset with a conditional formatting rule that highlights all rows with the word "Seller" in column C:

The custom formula for this rule is:

=$C1="Seller"

The crucial detail here is the "$" in front of the C. It's what applies the conditional formatting rule to the entire row (learn more about how this works in this post).

To apply this rule to a different dataset, follow these steps:

  1. Highlight the current dataset (that contains the rule)
  2. Click the Paint Format icon in the toolbar (the paintbrush)
  3. Navigate to your new dataset and click into the top left cell of the data.

Voila!

Here is this method in action:

The conditional rule(s) is copied and functions the same as it does in the original data.

There are two important caveats:

  1. the range copied remains the same (if you copy A1:D11, the new rule is applied to a range of the same size, starting wherever you click as the top left cell).
  2. The rule applies to columns in the same order as the original. In the example above, the rule checks column C for "Seller". If you copy to a dataset with the Buyer/Seller representation in column B instead of column C, then the rule won't highlight anything (it will still be there, but won't find any "Seller" in column C).

2. Make Conditional Formatting Permanent

Suppose you've used conditional formatting rules to highlight your data but you no longer want it to be conditional.

Maybe you want to share the Sheet with others and worry that the conditional formatting could be accidentally removed.

There's an easy way to convert it to plain formatting.

Here are the steps:

  1. Highlight your whole dataset
  2. Copy your dataset (Ctrl + C or Cmd + C on Mac)
  3. Go to menu: Format > Clear formatting
  4. Right-click somewhere inside your dataset
  5. Select: Paste special > Format only

Now the conditional formatting is permanent. For example, the cells now have background colors and there are no conditional formatting rules.

In the following GIF, you can see the conditional formatting rule disappears when I clear the formats, before I add them back as regular background colors:

Conditional Formatting Resources

🔴 Basic Conditional Formatting

🔵 Advanced Conditional Formatting

🟣 Apply Conditional Formatting Across An Entire Row

_______

If you enjoyed this newsletter, please forward it to a friend who might enjoy it.

Have a great week!

Cheers,
Ben

P.S. It's been a tad chilly in the States recently...

Google Sheets Tips

Get better at working with Google Sheets! Join 50,000 readers to get an actionable tip in your inbox every Monday.

Read more from Google Sheets Tips

Hi Reader, Welcome to the Google Sheets Tips newsletter #382, your Monday morning espresso, in spreadsheet form! If you feel like the AI wave is moving faster than you can keep up with, you aren't alone. The gap between "playing with a chatbot" and "building reliable AI systems" feels wider than ever, and that feeling is only increasing with every new AI announcement. For the past couple of months, I’ve been working on a new course to help address this challenge. Next Monday, I’m opening...

Hi Reader, Welcome to the Google Sheets Tips newsletter #381, your Monday morning espresso, in spreadsheet form! Since last week, the weather in the Mid-Atlantic region has been even more volatile than that mission critical spreadsheet your non-technical boss "fixed" recently. We had a day over 80F, followed by a wild 50F drop to temps in the 30's and snow squalls. And later today, we're forecast to have a severe thunderstorm and possible tornadoes. It's threatening enough that schools in...

Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #380, your Monday morning espresso, in spreadsheet form! I read something online last week (source) that really resonated with me: Joy is a competitive superpower The author gave the example of the US figure skater Alysa Liu, who rocked a huge smile on her way to a gold medal at the recent Winter Olympics. As someone who has a tendency to take things too seriously, this was a good reminder for me to smile more and...