Reputation: 33
I have a column consisting of single numbers and blank spaces. The numbers are not unique, but can occur in multiple cells. I want to find the row index for the last number 9 (i.e., in the photo above it is in row 12). What formula can I use for this purpose? I cant get it to work with MATCH or INDEX.
Upvotes: 0
Views: 414
Reputation: 11968
Use LOOKUP which lets you search on a column a specific key (in your case C1
, to return the last value 1/(A:A=C1)
is used) and returns a specific range of matches (in your case to return the row index the formula takes use of ROW):
=ArrayFormula(LOOKUP(1,1/(A:A=C1),ROW(A:A)))
Upvotes: 2