Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Feb 2001
    Location
    Dallas plus 20 miles or so, Texas, USA
    Posts
    876
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Referencing Names with Lookup Functions (2000)

    Changing this
    <pre>=HLOOKUP($A$2,SHEET1,3)
    </pre>

    to this
    <pre>=HLOOKUP($A$2,B1,3)
    </pre>

    or to this
    <pre>=HLOOKUP($A$2,=B1,3)
    </pre>

    does not seem to work.
    If I "hard code" the lookup range into the formula, all is well. If I try to refer to the range name in the second example by putting the range name in B1, it does not work. Is the syntax wrong, or am I not allowed to refer to the range name by reference?

  2. #2
    5 Star Lounger
    Join Date
    Feb 2001
    Location
    Dallas plus 20 miles or so, Texas, USA
    Posts
    876
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Referencing Names with Lookup Functions (2000)

    Cool....the following works...

    <pre>=HLOOKUP($A$2,INDIRECT(B1),3)
    </pre>


  3. #3
    Lounger
    Join Date
    Nov 2001
    Location
    MI, USA
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Referencing Names with Lookup Functions (2000)

    So would =HLOOKUP($A$2,MyB1,3), for absolute or dynamic purposes when MyB1 refers to a specific cell or named range.

    AJF

  4. #4
    5 Star Lounger
    Join Date
    Feb 2001
    Location
    Dallas plus 20 miles or so, Texas, USA
    Posts
    876
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Referencing Names with Lookup Functions (2000)

    Actually AJ, the cell I was attempting to refer to contained the name of a named range, put there by a data validation list so the only way I could get it to work was by using the Indirect function.

Posting Permissions

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