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
video preview

Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #352, your Monday morning espresso, in spreadsheet form! If you're a parent, then you've undoubtedly watched a lifetime's worth of Disney movies. You can appreciate the genius storytelling, rich characters and beautiful visuals. (But I'm sure you'd also be content to watch a film once, not 10 times!) Anyway, there's a scene in the Disney film Ratatouille where Remy bites into a strawberry and a piece of cheese at the...

CHOOSECOLS with negative column numbers

Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #351, your Monday morning espresso, in spreadsheet form! Thankfully, I'm fully recovered from the pneumonia I had last month. Sadly, we had to cancel our trip to Europe to see my family. But, the silver lining was an unexpected week at home with no agenda. So we stained the back deck, cleared out the garage, and built some raised beds in the garden. My younger self would have spent the week wallowing, annoyed at the...

Use the RANK function in Google Sheets to rank data

Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #350, your Monday morning espresso, in spreadsheet form! I'm happy to report that I'm feeling a lot better now than I did this time last week. Thanks to modern medicine and plenty of rest, I'm well on my way back to normal (whatever that is these days!). Thanks to the many of you who sent well wishes, it was very much appreciated 🙏. ➜ News I.Google are adding a new setting to Google Forms to allow form responders to...