Consulting

Results 1 to 8 of 8

Thread: combined Vlookup & Hlookup?

  1. #1
    VBAX Regular
    Joined
    Sep 2004
    Posts
    26
    Location

    combined Vlookup & Hlookup?

    Is it possible to do a combined Vlookup & Hlookup?

    I have attached a simple spreadsheet for what I’m trying to achieve

    What I would like to do is populate the mini tables on the left, using the data in the table on the right by looking at the Store ID, then look at the price, then pet and how many they have in stock.

    Many thanks for any help!


  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try these array formulae

    =MIN(IF($H$3:$H$17=$B$1,IF(($I$3:$I$17=$A6)*($H$3:$M$3=B$5),$H$3:$M$17)))

    or Store 2

    and

    =MIN(IF($H$3:$H$17=$B$15,IF(($I$3:$I$17=$A6)*($H$3:$M$3=B$5),$H$3:$M$17)))

    for store 3
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Sep 2004
    Posts
    26
    Location
    Thank you for your response… However all I get is a #VALUE! Error

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Did you array-enter them?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Sep 2004
    Posts
    26
    Location
    Really sorry, but how would I go about doing that? would that still work if the Store ID were to change on a weekly basis? or More IDs were added?

  6. #6
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Two solutions in the attached, formula based and pivot table.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  7. #7
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by DarrylW
    Really sorry, but how would I go about doing that? would that still work if the Store ID were to change on a weekly basis? or More IDs were added?
    When you type in the formula, use Ctrl-Shift-Enter, not just Enter. Excel will enclose the formula in braces {...}
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  8. #8
    VBAX Regular
    Joined
    Sep 2004
    Posts
    26
    Location
    Thank you both for your responses. I now have a number of ways to achive what I need to

Posting Permissions

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