cell reference from hlookup

G

Guest

I am using the HLOOKUP function to find a value in a table.
I also need to confirm the cell reference. I have tried nesting my HLOOKUP
within the OFFSET function, but HLOOKUPs return variables rather than
references.

Here's my (unsuccessful) formula:

=OFFSET(HLOOKUP($A$1,$A$4:$H$13,4,0),0,1)

How can I make a 'lookup' return a cell reference?

Thanks!
Warren
 
A

Arvi Laanemets

Hi

p.e.
=OFFSET($A$4,1,MATCH($A$1,$A$4:$H$4,0)-1)
reads column heading value from cell A1, looks for this header in row 4, and
for it's position, and returns according value from row 5.
 
A

Aladin Akyurek

=INDEX($A$7:$H$7,MATCH(A1,$A$4:$H$4,0))

=CELL("Address",INDEX($A$7:$H$7,MATCH(A1,$A$4:$H$4,0)))

The first formula is equivalent to the HLOOKUP formula that you have.
 
G

Guest

Thanks Avri; just what I was looking for!

Arvi Laanemets said:
Hi

p.e.
=OFFSET($A$4,1,MATCH($A$1,$A$4:$H$4,0)-1)
reads column heading value from cell A1, looks for this header in row 4, and
for it's position, and returns according value from row 5.
 
G

Guest

Thanks Aladin - This is excellent stuff which I will use lots and lots and
lots...! :blush:)
 

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