• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Vlookup multiple columns but with one column data only

I have names in multiple columns which are unique. My requirement is vlookup any name from these columns and retrieve the value corresponding to that name. I have attached excel file.

Kindly guide me.
 

Attachments

  • Test5.xlsx
    9.3 KB · Views: 9
In B12, copied down :

=INDEX(E$4:E$6,SUMPRODUCT((B$4:D$6=A12)*(ROW(B$4:B$6)-ROW($B$3))))

or, if you wanted to use VLOOKUP function, try this instead :

=VLOOKUP(A12,IF({1,0},INDEX(B$4:D$6,0,SUMPRODUCT((B$4:D$6=A12)*COLUMN($A1:$C1))),E$4:E$6),2,0)

Regards
Bosco
 

Attachments

  • Test5(1).xlsx
    10.1 KB · Views: 7
Last edited:
In B12, copied down :

=INDEX(E$4:E$6,SUMPRODUCT((B$4:D$6=A12)*(ROW(B$4:B$6)-ROW($B$3))))

or, if you wanted to use VLOOKUP function, try this instead :

=VLOOKUP(A12,IF({1,0},INDEX(B$4:D$6,0,SUMPRODUCT((B$4:D$6=A12)*COLUMN($A1:$C1))),E$4:E$6),2,0)

Regards
Bosco


THANK YOU SIR..
 
Back
Top