+ Reply to Thread
Results 1 to 5 of 5

cell reference from hlookup

  1. #1
    warrenb
    Guest

    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. #2
    Arvi Laanemets
    Guest

    Re: 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<at>tarkon.ee )


    "warrenb" <[email protected]> wrote in message
    news:[email protected]...
    >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. #3
    Aladin Akyurek
    Guest

    Re: 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. #4
    warrenb
    Guest

    Re: 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<at>tarkon.ee )
    >
    >
    > "warrenb" <[email protected]> wrote in message
    > news:[email protected]...
    > >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. #5
    warrenb
    Guest

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1