To compute some checks on the data entered, I need to get the index of the row which has the last non empty cell in a 2D array. Each row contains a single non-empty cell.
To solve this, the approach I went for is to first compute the column index of the non-empty cell for each row with =MATCH(FALSE;ISBLANK($A1:$Z1);0). Then I take the index of the max of this using the MATCH function again with a large number as the first argument, and mode 1 as the third. However I don't know what to use as the second argument.
When doing the formula using multiple cells, I can simply put the first MATCH function at the end of each row, then in another cell there is the second MATCH call applied on the rows. However, I need to do this in a single cell. It is not a problem if the function is very long (I only have 5 rows), but I can't find how to apply the MATCH function on an "inline list", so I could just copy the first MATCH call for each row to create an inline list or "virtual array", and apply the second MATCH to it.
I tried something like =MATCH(99;{AA1;AA2;AA3;AA4;AA5};1) (with the cell references being replaced by the first MATCH formula). But apparently Excel doesn't support {..;..} inline array. Am I wrong ?
How would you solve this issue with this approach or another ?


