For example: let's say I have a six-sided die with sides A through F.
I roll the die four times and record results per trial as follows:
Now I have another table where I want to output the roll during which each letter was the outcome per trial:
It works great for the column 'Trial 1', updating the lookup value. When I try to drag it across the column, I want it to change the lookup table from B2:E2 to B3:E3 corresponding to the Trial 2 results which are displayed along a row rather than a column in the other table. See the 'Trial 2' column for an example of the error in bold. What I want it to do is recognize I am referring to Trial 2, and search for A6 (the letter "A") in the 'Trial 2' row of table 1, and therefore dynamically adjust the lookup table to B3:E3. Is there a way to do this without transposing Table 2 to match Table 1? (i.e. with trials in columns instead of rows?)
I roll the die four times and record results per trial as follows:
Trial | Roll 1 | Roll 2 | Roll 3 | Roll 4 |
1 | A | B | C | D |
2 | E | F | A | B |
3 | E | D | C | F |
Now I have another table where I want to output the roll during which each letter was the outcome per trial:
Outcome | Trial 1 | Trial 2 | Trial 3 |
A | =XLOOKUP($A6,$B2:$E2,$B$1:$E$1) = Roll 1 | =XLOOKUP($A6,$B2:$E2,$B$1:$E$1) = Roll 1 (I want) =XLOOKUP($A6,$B3:$E3,$B$1:$E$1) = Roll 3 | |
B | =XLOOKUP($A7,$B2:$E2,$B$1:$E$1) = Roll 2 | ||
C | =XLOOKUP($A8,$B2:$E2,$B$1:$E$1) = Roll 3 | ||
D | =XLOOKUP($A9,$B2:$E2,$B$1:$E$1) = Roll 4 | ||
E | =XLOOKUP($A10,$B2:$E2,$B$1:$E$1) = N/A | ||
F | =XLOOKUP($A11,$B2:$E2,$B$1:$E$1) = N/A |
It works great for the column 'Trial 1', updating the lookup value. When I try to drag it across the column, I want it to change the lookup table from B2:E2 to B3:E3 corresponding to the Trial 2 results which are displayed along a row rather than a column in the other table. See the 'Trial 2' column for an example of the error in bold. What I want it to do is recognize I am referring to Trial 2, and search for A6 (the letter "A") in the 'Trial 2' row of table 1, and therefore dynamically adjust the lookup table to B3:E3. Is there a way to do this without transposing Table 2 to match Table 1? (i.e. with trials in columns instead of rows?)