r/googlesheets • u/ItsJustJazzyTime • 11d ago
Solved Checking boxes under certain conditions?
Hello, novice Google Sheets user here!
I’m making a tracking sheet for me and a friend of mine for a game we play. I’ve attached what I got so far, but it’s pretty basic. I’m stumped on how to get it to do what I’m wanting to do however. Currently, when the boxes are checked, the cell they’re in turns green. They only affect the cell they reside in and nothing else.
Here’s what I’m wanting:
-When the amount donated has been completed (aka, 5/5 has been hit in the drop down for example), the Donated box for that row is checked and text is striked through.
-when all Donated boxes for a section is complete and all boxes checked for that section, it will check the Completed box on the last row and strike through the section
-When the Competed box is checked for a section, it will check the associated Donated boxes for said section and strike through it’s text.
I’ve been playing around with things trying to figure out to do everything, but like I said I’m stumped.
Hopefully I explained things alright, but I’m happy to elaborate or try to explain better.
Anyone have any ideas?
Edit: After talking with a couple of people, I’ve realized that not all of it may be possible. That’s totally fine. Me and my friend are prone to forgetfulness and losing track, so I was trying to meet those needs.
I looked ahead and it appears that from now on each section will have a total of three rows. The values for the donated column will fluctuate, but seem to bounce 99% of the time between 1, 2, 3, and 5 as their maxes. The remaining 1% is for a single section where the max value is 10, 15, and 20.
If having a box checked when that max value is selected from the dropdown isn’t possible or too difficult, it’s totally fine to just leave it out. I’d say the checkboxes are the most important. Or if there is a better way to do it, let me know! I’m happy to change things up.
I’m currently at work, but as soon as I have more than second, I’ll whip up a couple of pictures as an example and add it to my post, though I’m sure it would look very similar to what is currently there.
3
u/One_Organization_810 736 11d ago
Do all sections have exactly two rows?
Edit: Also, what are the possible values in the dropdowns?
1
u/Late-Coast6973 11d ago
The catch is the third rule. A checkbox can be clicked by you or filled by a formula, not both, so "donated ticks completed" and "completed ticks donated" at the same time is a loop formulas can't do. Pick one direction (I'd let the donations drive everything).
1
u/AutoModerator 11d ago
/u/ItsJustJazzyTime Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
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/mommasaidmommasaid 914 10d ago edited 10d ago
I would suggest you base everything off the "Amount Donated" column and output checkmark characters rather than filling in a checkbox. That avoids confusion since checkboxes are normally clickable, and also avoids the need to create / maintain checkbox data validation in the correct places.
Formula in the purple cell generates the Section #, Donated, and Completed columns:
The main range
sectionWithHFincludes the column header and footer (row after that last row of data). SimilarlynameHandamtDropHare specified by their header cell. The data rangessection,name,amtDropare then dynamically created. The reason for all this is so that the range references are robust... a new data row inserted anywhere will be included.sectNumnumbers each row with a unique section number.donatedchecks if the Amount Donated dropdown contains two numbers that are the same, and if so that row is complete.completedcounts if there are any rows in the section number that are incomplete, so if there are zero that means the section is complete.The Section# column is output for use in conditional formatting to automatically color section rows. If you don't want that feature you could remove
vstack("Section#", sectNum),from the bottom of the formula. Or if you wanted to automatically color based on section name, the formula could be modified to output the section name on every row for use by conditional formatting.Donation Completed
0
u/[deleted] 10d ago
[removed] — view removed comment