The formula works outstandingly well, thanks! I'm having some trouble figuring out the back half of the formula, however.
I would consider myself a novice when it comes to using the functions shown in this formula. If you don't mind, I'm going to to try and deconstruct this, and please let me know if I'm on the right track.
Working from outside in:
This just tests if there's an error with function, and allows for a custom error message if there does happen to be one. The error message, if I wanted to change it, would go in the "" at the end of the formula. Not really an integral part of the formula itself, just an additional check.
Next, the actual formula:
INDEX() in this case seems to be under the reference version, not the array.
'Master Schedule'!$C$2:$D$100, then, would be the range of cells to look within.
MATCH($B$2,'Master Schedule'!$B$2:$B$100,0)-1 tells the formula to look at the value at $B$2 within the sheet (Week 1, Week 2, etc.), then look for an identical value on the Master Schedule sheet within the $B column. The "0" just makes sure that if $B$2 shows a value of "Week 1", that it must match identically to return the value. I can't tell what the -1 is for, unless it's to put an inherent modifier into the MATCH location.
Looking at the breakdown, the only thing I can think of is that +CEILING(ROWS($4:4)/3,1) seems to be a modifier for the location of MATCH. CEILING, from what I'm finding, is a rounding function, so when paired with ROWS, it looks like it's supposed to count the number of rows from the start of the box score ($4) to whatever position the open slot is for the team name. This is the one variable (well, along with the same variable in MOD() ) that changes when dragged down, or copied & pasted, which allows for the modifier to shift positions while looking on 'Master Schedule!'. I'll be honest; I'm not sure why CEILING is used here, why division of the ROWS count is necessary though.
MOD(ROWS($4:4)-1,3)+1 seems to be taking the place of the second MATCH in INDEX MATCH MATCH that's readily found online, but again, I'm not sure exactly what its purpose directly here is.
So that's the breakdown as I see it...the questions I have remaining are about the -1 portion of MATCH, +CEILING(), and MOD()+1. I can see what CEILING and MOD are returning via the tests you suggested, but I'm not sure what those values are doing within the formula overall. Any help you can provide with those, or with anything I got wrong above, would be greatly appreciated!
Bookmarks