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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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))
 
Upvote 0

Forum statistics

Threads
1,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

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
Back
Top