+ Reply to Thread
Results 1 to 2 of 2

VLOOKUP with hierarchy of options

  1. #1
    Registered User
    Join Date
    11-11-2011
    Location
    Hull
    MS-Off Ver
    Excel 2007
    Posts
    3

    VLOOKUP with hierarchy of options

    Hi guys, I am trying to put a formulae together that incorporates a subcategory when I do a vlookup. I have a supplier code, each supplier has a product group, this group then has a discount associated to it. I am trying to put into one formulae the search of a supplier code and group if there is one to show the discount in place. Some product groups also cover a few suppliers because they are generic items. the vlookup I am using is here:
    =(VLOOKUP(H5,'DISCOUNTS PER GROUP'!$A$1:$J$2431,8,FALSE))

    say my supplier code is 1 it may have discount groups a, b, c attached to it, supplier 2 might have discount groups b, c, d. I have built a sheet that has each supplier with the discount codes within them. so I have duplicated the discount groups.

    Thank you in advance guys

    SB

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: VLOOKUP with hierarchy of options

    There are a few of methods. The first method is to use INDEX and MATCH, along with concatenation, to search multiple columns. This is an array formula, however, and so can slow the workbook down if used too much. Also, you should not reference entire columns (and cannot if using Excel 2003 or earlier). The link below will give you details

    http://support.microsoft.com/kb/59482

    The second method still uses VLOOKUP, but requires you to create a "helper column" to concatenate the desired columns/fields.

    The links below will detail the various methods.
    http://chandoo.org/wp/2010/11/02/mul...dition-lookup/
    http://www.dailydoseofexcel.com/arch...n-two-columns/

    Note: INDEX/MATCH and VLOOKUP will allow for the return of a string, whereas SUMPRODUCT and SUM Array Formula will only work with numeric values.
    Last edited by Whizbang; 11-28-2011 at 12:55 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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