Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
warrenb
 
Posts: n/a
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
warrenb
 
Posts: n/a
Default 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




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
warrenb
 
Posts: n/a
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to include a cell reference that is contained in a cell withi. dutchinny Excel Worksheet Functions 5 October 24th 05 01:07 AM
How do I leave formula cell blank if 2nd reference cell is empty? Liana S Excel Discussion (Misc queries) 2 October 21st 05 04:38 PM
copied formula has correct cell reference, but result of original lvito Excel Worksheet Functions 1 October 14th 05 04:37 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Flexible Cell Reference Brandt Excel Discussion (Misc queries) 5 June 2nd 05 10:23 PM


All times are GMT +1. The time now is 07:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"