ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   cell reference from hlookup (https://www.excelbanter.com/excel-worksheet-functions/63232-cell-reference-hlookup.html)

warrenb

cell reference from hlookup
 
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


Arvi Laanemets

cell reference from hlookup
 
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.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


"warrenb" wrote in message
...
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




Aladin Akyurek

cell reference from hlookup
 

=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.

warrenb wrote:
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


warrenb

cell reference from hlookup
 
Thanks Avri; just what I was looking for!

"Arvi Laanemets" wrote:

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.


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


"warrenb" wrote in message
...
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





warrenb

cell reference from hlookup
 
Thanks Aladin - This is excellent stuff which I will use lots and lots and
lots...! :o)

"Aladin Akyurek" wrote:


=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.

warrenb wrote:
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




All times are GMT +1. The time now is 12:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com