Forum Discussion
Vijay_Uppala
Dec 13, 2021Copper Contributor
Lookup for a value in an array
Hello, I have a use case where I have to look up for a value that can be in an array and output a value from the corresponding output array. Here is my input table. I have a Server Name column whi...
- Dec 14, 2021
OliverScheurich
Dec 14, 2021Gold Contributor
=IF(NOT(ISNA(INDEX($A$1:$A$40,MATCH(I1,$B$1:$B$40,0)))),INDEX($A$1:$A$40,MATCH(I1,$B$1:$B$40,0)),IF(NOT(ISNA(INDEX($A$1:$A$40,MATCH(I1,$C$1:$C$40,0)))),INDEX($A$1:$A$40,MATCH(I1,$C$1:$C$40,0)),IF(NOT(ISNA(INDEX($A$1:$A$40,MATCH(I1,$D$1:$D$40,0)))),INDEX($A$1:$A$40,MATCH(I1,$D$1:$D$40,0)),IF(NOT(ISNA(INDEX($A$1:$A$40,MATCH(I1,$E$1:$E$40,0)))),INDEX($A$1:$A$40,MATCH(I1,$E$1:$E$40,0)),IF(NOT(ISNA(INDEX($A$1:$A$40,MATCH(I1,$F$1:$F$40,0)))),INDEX($A$1:$A$40,MATCH(I1,$F$1:$F$40,0)),IF(NOT(ISNA(INDEX($A$1:$A$40,MATCH(I1,$G$1:$G$40,0)))),INDEX($A$1:$A$40,MATCH(I1,$G$1:$G$40,0))))))))
Is this what you are looking for? There is probably an easier way to achieve this but this is my best solution at the moment.
Detlef_Lewin
Dec 14, 2021Silver Contributor
- Vijay_UppalaDec 14, 2021Copper ContributorDetlef_Lewin
This worked like charm and also addresses my concerns of adding more columns in future.
Thank you very much.