lookup or macro to find and then get value...

hubris_one

New Member
Joined
Apr 24, 2002
Messages
1
for instance i want a formula or macro to lookup a value in say B5 and then find the match on another sheet and give me the value 5 cells over and 1 cell down (offset?).
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi,

Not quite sure I follow completely, but if the lookup range is col A in Sheet2 the following worked for me:

=OFFSET(INDIRECT("Sheet2!A"&MATCH(B5,Sheet2!A:A,0)),5,1)

This doesn't seem very efficient to me, so if I can find a better solution, I'll repost.

Bye,
Jay

EDIT: Should be

=OFFSET(INDIRECT("Sheet2!A"&MATCH(B5,Sheet2!A:A,0)),1,5)
This message was edited by Jay Petrulis on 2002-04-25 15:50
 
Upvote 0
This will work too...

=index(sheet2!a2:z100,match(b5,sheet2!a2:a100,false),5)

I actually worked on this for something today!!
Hope it works for you!!
 
Upvote 0
On 2002-04-25 15:48, EdE wrote:
This will work too...

=index(sheet2!a2:z100,match(b5,sheet2!a2:a100,false),5)

I actually worked on this for something today!!
Hope it works for you!!

Make that...

=INDEX(sheet2!A2:Z100,MATCH(B5,sheet2!A2:A100,0)<font color=red>+1,6</font>)

Note that INDEX has 1 advantage of OFFSET -- it's not volatile. See http://www.decisionmodels.com/calcsecretsi.htm.
This message was edited by Mark W. on 2002-04-25 16:13
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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