Brought to you by:
Welcome to the Google Sheets Tips newsletter #344, your * coming to your inbox on a Tuesday because many folks have a long weekend for Easter. In today's reader-inspired example, we're going to look at a common, but tricky, conditional formatting example: How to highlight values in one range based on activity in a different range? Today we'll look at how to create a conditional formatting rule to highlight column A based on checkboxes in column C. Check it out below. ➜ NewsI. They're one of leaders in combining spreadsheets with AI, so this is bound to be an insightful session. I'm signed up and am looking forward to it! II. ➜ Sheets Tip #344: Conditional Formatting explainedLet's start with this dataset, with some values in column A and checkboxes in column C: A reader asked how to highlight the values in column A if the checkbox was checked in column C. To do this we'll use a custom rule in conditional formatting. It sounds complex but it's not once you understand how it works. To begin, we highlight the range of values that we want to apply formatting to: Then go to the menu: Format > Conditional formatting The highlighted range A2:A11 will be shown in the "Apply to range" box. Under the "Format rules" section, open the dropdown and choose "Custom rule is" Then enter the following formula: =$C2 This checks whether C2 is checked or not. (Technically, the "$" is not required in this example, since we're only checking a single column. But I've included it because if want to expand the highlighted range to more than just column A, you'll need the "$".) If the checkbox is checked then the rule is TRUE and any formatting will be applied to the corresponding cell of the format range (i.e. the first cell in the range A2:A11). What's important to realize is that the formatting (the background cell colors) is applied to the range we originally highlighted, A2:A11. But, the TRUE/FALSE rule that decides whether to apply the formatting begins at C2 and works down from there. I.e.
So our "rule cells" can be place anywhere, e.g. starting from D8: The point is that the dimensions of the range we highlighted matches the dimensions of the range used for the rule checking. We just need to give the top left cell address. Our final setup is: What about the whole row?If you want to apply the formatting to the whole row, like this: Then change the "Apply to range" from A2:A11 to A1:C11 so that it extends to column C. Note: it will only work if your rule is "=$C2" with the "$" sign. Once you understand this dynamic between the format range and the "rules" range, you've cracked conditional formatting! Conditional Formatting ResourcesIf you're new to conditional formatting, start with this video: And then watch this one for more advanced examples: If you enjoyed this newsletter, please forward it to a friend who might enjoy it. Have a great week! Cheers, |
Get better at working with Google Sheets! Join 50,000 readers to get an actionable tip in your inbox every Monday.
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...
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...
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...