Forum Discussion
Creating sports wrist play call sheet arm band
- Jul 08, 2021
BigWheels8 maybe amit_bhola solution is good enough, that would be great. But for the fun of it I worked out a sheet that might be useful. you can easily print it to both show the grid and the definitions of the numbers/letters and easily change and it guarantees that every possible combination is used at least once (assuming the grid is large enough). File attached.
BigWheels8 , There are formulas like RANDBETWEEN and CONCATENATE which can help. The RANDBETWEEN formula uses numbers, but using HLOOKUP formula, you can return an alphabet. See attached file for sample.
By pressing F9, the values will change to create a new combination.
=CONCATENATE(HLOOKUP(RANDBETWEEN(1,5),$C$4:$G$5,2,FALSE),RANDBETWEEN(1,4))
Ex: I want to make a playsheet that gives me all the pitches, and the code that corresponds...returning the number in the header first, then the number on the side. I will make a column for each 'pitch' so I can easily make calls.
F1
*(each set of calls is highlighted in the cell's color)
10, 0 (highlighted in the cell color)
11, 5
13, 0
14, 1
14, 4
Appreciate your help!
- amit_bholaMay 20, 2022Iron Contributor
ingizmo , looking up colors is difficult (It is possible by using macros, but a bit complicated so i am avoiding it).
For looking up values in a column, Mr. mtarler has already given a solution.
There is a middle solution which i propose which looks up colors as well - if it suits your purpose.
(Well in reality, it actually masks the colors of "not found" cells to white, but the effect is same). However, the compromise is that this implementation doesn't arrange the results for one pitch in one column, but rather it arranges it in a rectangular grid same as original.
See attached File and press [F9] to generate new combinations.
- ingizmoMay 21, 2022Copper Contributor
amit_bholaThank you! I'll dig more into the macro side. I've added a lookup concate add-in once in VBA and used to play, but it has been a few years. I'll review what you sent and see if I can't make it work! Thanks again!
- mtarlerMay 20, 2022Silver ContributorOh yeah, i forgot to address the whole color thing. As mentioned, looking up colors can only be done using a macro which I too will not address here.
The next question is what/how/why are you making colors? So are all F1 have the same color? or is it like amit did above with a random array of colors?
So depending on the answer, another option is to assign colors using conditional formatting and depending on how the formula is designed use that same formula to assign the same coloring for the 'matching' cell (easy if all 'F1' are green, ... , and harder if based on row/column since additional column/row would be needed to identify what row/col the look-up value came from.)- ingizmoMay 21, 2022Copper ContributorI use the colors as another way to call a pitch. I use the color and the left column. So in your example above in the latest response, I could say '10, 0' or 'Pink 0' to call the upper left pitch 'C2'. Each color is unique to a pitch. I don't use the same pitch in the same cell two games in a row so I am always changing them, I appreciate your time and really appreciate your help!
- mtarlerMay 20, 2022Silver Contributor
ingizmo In amit_bhola sheet I believe all the cells are randomly assigned so a reverse look up table as you request although possible (nearly everything is) but would take me a bit of thinking (I'll try to avoid, lol).
In the solution I posted above (and corrected in the attached) the randomized order is just repeated so cell I2 (row "0" and column "10") is repeated in cell K5 (row "3" and column "12") and then the sequence repeats until it fill the whole table. With added work it could add more randomization but this technique has a few advantages:
a) it guarantees all options used at least once,
b) it prevents the same call from having the same row/col (assuming the count of calls > columns and not an even multiple)
In the attached I:
- created a new column so after you have a everything set up you can copy and paste the VALUES ONLY to this new column and 'LOCK' the grid so it won't change all the time
- created a lookup column under the grid that creates that reverse lookup you requested. The column right now just uses col F but any order can be inserted there. The formula uses TEXTJOIN to show the multiple options with a separator and uses " ; " right now but that can be easily editted or the formula could be modified to separate the results into separate cells.
- corrected an ERROR in the original post above where I didn't offset the MOD result and hence repeated the first call and missed the last call in the grid- mtarlerMay 20, 2022Silver ContributorBTW you can ignore the 1st paragraph above as the solution I ended up including in the attached sheet should work equally well on amit_bhola's solution also.