Thanks a lot for such a detailed video. I am really grateful and thankful to you for doing such a great effort. I was able to understand all of it.
Just one quick question that I had - If i had more scores and date what should i be changing in the formula that you provided (like in the image below)?
View attachment 48533
View attachment 48532As per the image on the left I am getting results for until Score 4 date and then everything is being messed up.
You would add to the SWITCH statement.
Following the (long) video's example, let's focus on the
Most Recent score column's formula. Once we make a formula for that, we can just fill right to the
Most Recent Score Date column to its immediate right.
Right now the
Most Recent score formula is the following.
=SWITCH(MOD(ROW()-2,
5),
0,INDEX(Table5[Most Recent score],MATCH(FLOOR((ROW()+3)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0),
1,INDEX(Table5[Score 1],MATCH(FLOOR((ROW()+3)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0),
2,INDEX(Table5[Score 2],MATCH(FLOOR((ROW()+3)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0),
3,INDEX(Table5[Score 3],MATCH(FLOOR((ROW()+3)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0),
4,INDEX(Table5[Score 4],MATCH(FLOOR((ROW()+3)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0)
)
We have
0 through
4 = 5 different possibilities (including most recent score and scores 1-4). And we /
5 and have ,
5 after "MOD(ROW()-2".
In general, this can be rewritten as the following, where
X is the number of scores you have (which is also the number of score dates you have) -- including the most recent . . . so in the example above,
X=4, because we had 4 scores in the original image).
=SWITCH(MOD(ROW()-2,
5),
0,INDEX(Table5[Most Recent score],MATCH(FLOOR((ROW()+
X-1)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0),
1,INDEX(Table5[Score 1],MATCH(FLOOR((ROW()+
X-1)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0),
2,INDEX(Table5[Score 2],MATCH(FLOOR((ROW()+
X-1)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0),
3,INDEX(Table5[Score 3],MATCH(FLOOR((ROW()+
X-1)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0),
4,INDEX(Table5[Score 4],MATCH(FLOOR((ROW()+
X-1)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0)
)
If we have the most recent score + scores 1-8, then we would have
0 through
8. And we /
9 and have ,
9 after "MOD(ROW()-2".
(Also write [Score 1] through [Score 8]. Also
X-1 = 8-1 = 7 in this case, since we have 8 scores.)
=SWITCH(MOD(ROW()-2,
9),
0,INDEX(Table5[Most Recent score],MATCH(FLOOR((ROW()+7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0),
1,INDEX(Table5[Score 1],MATCH(FLOOR((ROW()+7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0),
2,INDEX(Table5[Score 2],MATCH(FLOOR((ROW()+7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0),
3,INDEX(Table5[Score 3],MATCH(FLOOR((ROW()+7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0),
4,INDEX(Table5[Score 4],MATCH(FLOOR((ROW()+7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0),
5,INDEX(Table5[Score 5],MATCH(FLOOR((ROW()+7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0),
6,INDEX(Table5[Score 6],MATCH(FLOOR((ROW()+7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0),
7,INDEX(Table5[Score 7],MATCH(FLOOR((ROW()+7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0),
8,INDEX(Table5[Score 8],MATCH(FLOOR((ROW()+7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0)
)
**So this is the formula for
Most Recent score column's formula in the first data row of our "visual" table. (For the original/Excel Ctrl T table, you just simply insert the new columns and fill in the data without formulas.)
Therefore, the formula for the cells in the table which repeat will go from what is now (this is the formula for
Region, but you fill right to all columns):
=INDEX(Table5[Region],MATCH(FLOOR((ROW()+
3)/
5,1)+1,Table5[[INDEX]:[INDEX]],0),0)
But it becomes: (making the same numeric changes)
=INDEX(Table5[Region],MATCH(FLOOR((ROW()+
7)/
9,1)+1,Table5[[INDEX]:[INDEX]],0),0)
**So first take care of REGION's formula, fill right all the way, delete the formulas under More Recent Score and Most Recent Score date, put in the new formula in for most Recent Score, fill right to Most Recent Score Date. (Same as I showed in the video.)
I hope that makes sense!
EDIT:
And change
Table5 to whatever your table's name is. Maybe it's
Table1? Also, for the SWITCH statement, remove the hard returns (have it all on one line).