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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

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,148,525
Messages
5,747,203
Members
424,068
Latest member
Salim khamis

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