Excel Workbook | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | a | b | a | b | v | a | broken | ||
2 | |||||||||
3 | |||||||||
4 | your formula: | #REF! | |||||||
5 | formula as given in link: | broken | |||||||
6 | link formula, restricted to small range: | a | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C4 | =INDEX(A:F,1,MATCH(LOOKUP(2,1/(1:1<>""),1:1),1:1,0)) | |
C5 | =LOOKUP(2,1/(1:1<>""),1:1) | |
C6 | =LOOKUP(2,1/(A1:F1<>""),A1:F1) |
Answer:
=INDEX(A:F,1,MATCH(LOOKUP(2,1/(1:1<>""),1:1),1:1,0))
Replace the "A:F" with your range of columns. And for the "1" following the "A:F" and all of the "1:1", replace them with the row number you want to search.