how do i get excel to do the following? I want a vlookup reference to always return the…
- User
how do i get excel to do the following? I want a vlookup reference to always return the value from the 8th cell along from where the lookup finds the initial search term. For example if i have a term i am looking up in either b2,c2,d2 or e2 then i want it to return the value from i2, j2, k2 or l2
- Assistant
You can achieve this by combining
MATCHandINDEXfunctions instead of usingVLOOKUP.VLOOKUPwouldn't work in this case because it requires you to specify the column index number relative to the lookup column, and because your search terms are in different columns, a fixed index won't work.Here's how you can do it using
MATCHandINDEXin Excel:Assuming you want to search for a value in A1 within the range B2:E2 and return the value 8 cells to the right of the found value, you can use the following formula: