Vlookup Offset Row?

jmersing

Well-known Member
Joined
Apr 14, 2004
Messages
887
My lookup is below. Is there a way to return a result that is 2 rows higher than the existing match?

Let's say my match was found in Colunm B and I am returning 1st colunm, could I return 2 rows higher than my match?

I tried offset((VLOOKUP("T"&$AI5,ENTRY!$B$2:$B$2001,1,FALSE)),2,0)
with no success.

=(VLOOKUP("T"&$AI5,ENTRY!$B$2:$B$2001,1,FALSE))

Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Try

=Index(ENTRY!$B$2:$B$2001,Match("T"&AI5,ENTRY!$B$2:$B$2001,0)-2)
 

jmersing

Well-known Member
Joined
Apr 14, 2004
Messages
887
Thanks! I actually had to change it to +2, but the end result was the desired effect.

One more question if you don't mind, is it possible to offset the result by colunm also?

i.e. After a match is found I'm get-ting the result of 2 rows lower, what if I wanted 2 rows lower but 2 colunms to the right? Is that possible?

Thanks again
 

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Try:

If you mean column C, then

=Index(ENTRY!$B$2:$C$2001,Match("T"&AI5,ENTRY!$B$2:$B$2001,0)+2,2)


If you mean column D, then

=Index(ENTRY!$B$2:$D$2001,Match("T"&AI5,ENTRY!$B$2:$B$2001,0)+2,3)
 

jmersing

Well-known Member
Joined
Apr 14, 2004
Messages
887
Sweet!

I was changing the range on both parts of the formula istead of just the first one.

Thanks again!
 

Forum statistics

Threads
1,137,207
Messages
5,680,194
Members
419,888
Latest member
Prasad K

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top