Offset with hlookup as reference

D

DoubleZ

In excel 2007 I basically want to use the offset function to return a long
list. However, I need the returned list to be based upon a certain input
value. So I tried to use offset with hlookup as the reference value, but it
didn't work. I now understand why since hlookup returns a value, not a
reference.

Is there a way to return a reference cell rather than that cell's value?

Thanks.
 
D

DoubleZ

Thanks David. I understand now.

For anyone reading this post trying to figure out the same thing I was, here
is my solution:

Originally I was using offset with hlookup as the reference. Instead, I
used offset, using the first cell as my reference and using the match
function to define how many columns to offset from the reference(e.g.
=offset(A1,2,Match(Sheet2!B4,Sheet1!A1:Z1,0)-1,409,2), where Sheet1!A1:Z1 was
the range containing values I wanted to look through, and Sheet2!B4 was the
cell I wanted to match.

Hope that helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top