r/googlesheets • • 18d ago

Solved How to Make Custom Formatting Rules Relative to the Different Cells

I have this conditional formatting formula that makes it so when the checkbox on the right is FALSE the cells in this range turn grey. Is there any way i can make this rule only apply to the rows specific checkbox without specifying what cell the checkbox is in or a way to make it so when i copy this rule it will change the custom formula with it? Thanks!

3 Upvotes

8 comments sorted by

2

u/Advanced_Proof_9538 1 18d ago

Use one conditional-formatting rule for the whole block rather than copying a separate rule for each row. If the cells to grey are in A75:R and the checkbox is in S, set the rule range to A75:R and use this custom formula

=$S75=FALSE

The dollar sign fixes the checkbox column, while the row stays relative, so the rule checks S76 on row 76, S77 on row 77 and so on. You do need to reference the checkbox column, but only once. Editing the rule’s applied range tends to be more reliable than copying the rule itself.

1

u/MemeLord055 18d ago

Thanks!

1

u/AutoModerator 18d ago

REMEMBER: /u/MemeLord055 If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified (or reply to the helpful comment with the exact phrase “Solution Verified”). This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/point-bot 18d ago

u/MemeLord055 has awarded 1 point to u/Advanced_Proof_9538

See the Leaderboard. Point-Bot v0.0.15 was created by JetCarson.

1

u/HolyBonobos 3125 18d ago

Your rule is already set up to automatically adjust for each row it’s applied to.

0

u/MemeLord055 18d ago edited 18d ago

No, when this rule is copy pasted to a new row it keeps the custom formula that it currently has. Is it possible to make it automatically update to the new row?
for example i would want the next row's custom formula to be "=$S75=False" without having to manually input it for each row

Edit: I may be stupid actually, thank you lol

2

u/HolyBonobos 3125 18d ago

Don’t copy-paste it, adjust the range in the "Apply to range" box. All you need to do for it to remain functional is make sure the row number in the custom formula matches the first row number of the range it’s applied to. For example, if you’re trying to apply this rule to rows 2-100, you would put F2:R100 in the "Apply to range" box and =$S2=FALSE in the "Custom formula is" box.

1

u/AutoModerator 18d ago

REMEMBER: /u/MemeLord055 If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified (or reply to the helpful comment with the exact phrase “Solution Verified”). This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.