vlookup or match formula - maybe

stapuff

Well-known Member
Joined
Feb 19, 2004
Messages
1,126
I want to vlookup or match on sheet1 to return a value from sheet2 with a negative row offset.

In M2 of sheet1:

The value is L2 from sheet1.
The Range is B2:X2 from sheet2.

If exact is found I want the value directly above it.

Example

L2 = 1/22/2005 on sheet1, look up 1/22/2005 on sheet2 between B2&X2.
Exact match is found in R2. M1 = sheet2 R1 value.

Thanks,

Kurt
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473
stapuff said:
I want to vlookup or match on sheet1 to return a value from sheet2 with a negative row offset.

In M2 of sheet1:

The value is L2 from sheet1.
The Range is B2:X2 from sheet2.

If exact is found I want the value directly above it.

Example

L2 = 1/22/2005 on sheet1, look up 1/22/2005 on sheet2 between B2&X2.
Exact match is found in R2. M1 = sheet2 R1 value.

Thanks,

Kurt

=INDEX(B1:X1,0,MATCH(L2,B2:X2,0))
 

stapuff

Well-known Member
Joined
Feb 19, 2004
Messages
1,126
just jon -

Thanks for the help. Works perfect.

Again - Thank You,

Kurt
 

Forum statistics

Threads
1,181,892
Messages
5,932,668
Members
436,850
Latest member
Jasperlee93

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