As part of generating a list of matching values in an INDEX list, I've had the idea of checking the list from the last matching value's position and continuing down the list from there. I know the INDEX returns a cell value, but is there some way to access that or force it to output it so that another cell can use an INDIRECT reference to see 'where that got to', as such?
Let me explain in more detail. I'm building an interactive character sheet for a roleplaying game, in which all of the abilities that a character would have are listed on a hidden sheet. The INDEX function references this sheet, and searches the entire sheet for items that match the class of the character via the following formula: =INDEX('Hidden Sheet'!A1:F4,MATCH(B2,'Hidden Sheet'!C1:C4,0),1,1). Now, this cell returns the value of the first matching value it finds on the hidden sheet, which is fair enough.
Now, INDEX returns a cell reference, right? So, the cell underneath should be able to do the following: =INDEX((INDIRECT(A150)):'Hidden Sheet'!F4,MATCH(B2,'Hidden Sheet'!C1:C4,0),1,1). In theory, this should get the location that the last cell was referred to (which will be in the A column) as the starting value of the array, and then continue from there. Instead, it accesses the cell and gets the value of the INDEX function, and not the cell reference, meaning it just returns a big, fat #REF! error rather than doing as it's told.
Can anyone suggest how to either rewrite the formula, so that the cell underneath returns the next value that matches the criteria, or to allow me to force the cell to return the value I want, so that the cell underneath can reference that and use it to continue the search?
Bookmarks