COLUMN(A1) is the key term. COLUMN(A1) resolves to 1 which tells excel, the last sample
As you drag it to the right (as in my spreadsheet) as COLUMN(B1) =2 is second from last, 3 is 3rd from last.
The array
IF(ISNUMBER($E2:$AH2), COLUMN($E2:$AH2)-COLUMN($E2)+1,0) returns a relative row number that all the numbers are in, with zeros filling in the values where there is no number
So in my sheet, for row 2
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0, 0, 23, 0, 0, 26, 27, 0, 0,0
Then LARGE(that array, COLUMN(B1)) returns 26
INDEX(E2:AH2, 26) returns 9
Voila!
Bookmarks