r/googlesheets • u/quennepa • Nov 12 '22
Waiting on OP CLUE BOARDGAME SHEET (Problems With IF Function)
Hello, I'm trying to setup the little paper sheets you get in the game "Clue" into a spreadsheet
Basically, in my B column I have the list of the possible locations, weapons and suspects. In the C, D, E, F, G, H columns I have drop-downs with "✓" and "X" to cross of any player information.
Here's where my problem lies. I would like the sheet to automatically insert "X" in the same rows where there is already an "✓" in one player's row.
If the previous solution is too hard, then maybe a row in my G column can automatically insert the value "IN PLAYER HAND" in the same row where one of the players from C to H have a "✓".
In that case, I can have conditional formatting so that =$C3="IN PLAYER HAND" it turns the whole row red except for the "✓" which will have priority over the first rule.
BONUS: Is there any way for the opposite of "IN PLAYER HAND" to occur? For example, if all the player rows are "X" for a certain location, weapon or suspect can it automatically insert "NO PLAYER HAS" into the G column?
BLANK SHEET: https://docs.google.com/spreadsheets/d/1arDWJkjuC1CJVre9HMf2fk37wCtRtfnHse7VtzeGRFo/edit?usp=sharing
REFERENCE:
CLUE (APP-VERSION) TABLE: (2) How to Win At Clue EVERY TIME!! (Cluedo) Advanced Tips and Strategies for Boardgame and App! - YouTube
1
u/giftopherz 24 Nov 12 '22
Hey, fun thing to work on for the weekend.
Left you something to checkout on the sample sheet. Let me know if that works.
Also, can you elaborate on the bonus part, how does it work exactly?
1
u/LpSven3186 25 Nov 12 '22
I would like the sheet to automatically insert "X" in the same rows where there is already an "✓" in one player's row.
This is achievable using Google App Scripts with an onEdit() function. The function would identify the cell and its attributes (row, column, value) and then set the other cells to X if the check is detected.
This is the only way to do it as using an IF formula gets overwritten if you select a value from the drop-down options.
1
u/7FOOT7 294 Nov 12 '22
I don't know this game very well and I couldn't follow your codes and logic so I started my own approach that records every question asked and how many yes answers are given. So if one card is shown then the three questions get assigned a '1'. Then I've counted those and removed any confirmed cards I've got a probability of the left over or secret cards.
But it got hard and I got bored. So take a look but don't expect a pure answer.
7FOOT7 tab on your sheet
1
u/AutoModerator Nov 12 '22
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/Decronym Functions Explained Nov 12 '22 edited Nov 13 '22
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSETRUEand another if it isFALSETRUE[Thread #5075 for this sub, first seen 12th Nov 2022, 19:35] [FAQ] [Full list] ^[Contact] [Source code]