Vlookup or Hlookup Offset Vary

Stringt

New Member
Joined
Feb 18, 2002
Messages
35
Is there a way within a Vlookup or Hlookup to reference the offset column/row to another cell. Therfore when the cell changes the lookup values change?

Thanks
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
On 2002-02-19 02:01, Stringt wrote:
Is there a way within a Vlookup or Hlookup to reference the offset column/row to another cell. Therfore when the cell changes the lookup values change?

Thanks

Do you mean that you have a name or range in some cell that specifies e.g., a lookup table that you want to use in a VLOOKUP formula?
 
Upvote 0
No. I have a Hlookup like this:
=HLOOKUP($a$1,MyDataRange,2,FALSE)

Which looks up for value in A1, in the range "MyDataRange" and returns the value from offset row 2.

I want the formula to look at some other cell to determine which offset row to look at. e.g. if in cell a30 i have the 2 changes to 4, the Hlookup would now look up offset row 4.
 
Upvote 0
On 2002-02-19 05:02, Stringt wrote:
No. I have a Hlookup like this:
=HLOOKUP($a$1,MyDataRange,2,FALSE)

Which looks up for value in A1, in the range "MyDataRange" and returns the value from offset row 2.

I want the formula to look at some other cell to determine which offset row to look at. e.g. if in cell a30 i have the 2 changes to 4, the Hlookup would now look up offset row 4.


=HLOOKUP($A$1,MyDataRange,A30,FALSE)

where A30 houses a row number.

Aladin
 
Upvote 0

Forum statistics

Threads
1,214,393
Messages
6,119,261
Members
448,880
Latest member
aveternik

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