How to get a matrix with the row numbers for every cell of the original matrix?
问题 Stumbled upon a strange behavior. This formula: =ARRAYFORMULA(ROW($A$1:$E$5)) Returns a 5 element column with the row numbers from 1 to 5. I thought that ARRAYFORMULA would iterate through every cell in the range specified and execute the ROW() on it - resulting in a new range of the same size (5 columns, 5 rows), but with the row numbers in cells. For example =ARRAYFORMULA(ISBLANK($A$1:$E$5)) returns a 5 on 5 range. I found a way to force the desired behavior (see the answer below), but is