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! βRegister for free here >>β II.β βRead more in the update >>β β 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, P.S. Every data table from now onβ |
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 #343, your Monday morning espresso, in spreadsheet form. Thanks for all the well wishes I received to last week's email! I'm two weeks into the recovery from sinus surgery and things are slowly but surely returning to (a new) normal. I'm taking daily walks around my neighborhood, going slightly further each day. For the first couple of days I needed my wife as a support to hold on to, as I shuffled up and down the...
Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #342, your Monday morning espresso, in spreadsheet form! Whew, it's been quite the week in my household. Last week I had sinus surgery to alleviate some long-standing sinus issues I've had. It was a nearly 6-hour surgery so I was completely out-of-it for a day or two afterwards. When I came round they asked if I wanted a drink. I said "some water" but I couldn't speak clearly because of the bandages etc. The nurse...
Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #341, your Monday morning espresso, in spreadsheet form! Hope you're out enjoying the beautiful Spring weather π±πΌ if you're in the Northern Hemisphere. And Fall if you're down south! β News I.In case you missed it earlier in the month, I've now put the replay from the live Lambda Functions website on YouTube. Watch "Unlocking the Secrets of Lambda Functions" and grab the template for free here: II.My friend, and fellow...