+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Complicated HLOOKUP or VLOOKUP based on many values

Hybrid View

  1. #1
    Registered User
    Join Date
    12-26-2011
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    14

    Complicated HLOOKUP or VLOOKUP based on many values

    Hello everyone,

    I have a very complicated workbook I'm working on.

    I attached an example workbook:
    example.xlsx

    Basically, here is the deal.

    The user can select 3 inputs: A, B or C.

    Based on that, Excel has to look through an extensive list based on those three values and return two columns of different values.

    So, concatenating: A \ A \ A
    Color: Blue
    Size: 40
    Price: $40,00

    And for: A \ A \ B
    Color: Red
    Size: 50
    Price: $50,00

    Possibly, with the "color, size, price" in a different column.

    Can anyone please help me or point me in the right direction?
    The example workbook attached can really help picture the case.

    Thank you very much for your attention!

  2. #2
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Complicated HLOOKUP or VLOOKUP based on many values

    Please refer to attached.

    Hope this is what you are looking for!

    SC
    Attached Files Attached Files
    Last edited by SCLai; 05-17-2012 at 10:21 PM.
    Do give a * (bottom left) if the post helped!

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,053

    Re: Complicated HLOOKUP or VLOOKUP based on many values

    a vlookup will give you what you need. but a few comments on your sample workbook...

    1. if your live workbook is set up in the same way, i would recommend you change the layout. i reformatted your data on the data sheet to make the lookups more efficient.

    2. avoid merge and center if you can, use format/center across, it also makes lookups easier

    3. to combine your data for the search, you can just do it the way i did in my vlookup formula...unless you really want to add the /, you dont need it

    anyway, take a look at what i have and let me know if this is something you can work with?
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    12-26-2011
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Complicated HLOOKUP or VLOOKUP based on many values

    Hello SCLai, FDibbins,

    Thank you very, very much!

    This helped me immensely! Actually, it practically solved the problem for me.
    Thanks a lot!

    Also, I'll follow your guidelines, FDibbins!

    I repped both of you for the help, though it's not much compared to the help you provided.

    Thank you!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,053

    Re: Complicated HLOOKUP or VLOOKUP based on many values

    glad to help

+ 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