+ Reply to Thread
Results 1 to 4 of 4

Index Match Problems

  1. #1
    Forum Contributor
    Join Date
    02-01-2008
    Location
    Perth, Australia
    MS-Off Ver
    Excel 365
    Posts
    135

    Smile Index Match Problems

    Hi All,

    I am having problems with getting either the Index Match formula (N7) or the Vlookup/Hlookup (N8) formula in the attached spreadsheet to work as required.

    The two problems are:

    1. If a distance value less than 100 is entered - the returned value is from the maximum value row, it should be the minimum value
    2. If a distance over the maximum value is entered - the returned value is OK exept where it partially matches a row value i.e if 2000 is entered it returns the row value where 200 is present, it should return the maximum value.

    The distance actualy falls within a range as shown in columns C and D but I have not been able to find a way to use this in addition to the current formulas.
    Is there also a way to round up or down to the next available value if between the min and max value.

    Any help is appreciated.

    Thanks
    Attached Files Attached Files
    Last edited by Zimbo; 03-02-2011 at 04:14 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Index Match Problems

    I added a named range to each "section" of the table. The names are listed in column J for reference.

    Then I adjusted your INDEX/MATCH to use an INDIRECT() reference to your type & definition to select which named range to INDEX.

    My formula in N9: =INDEX(INDIRECT(A3&B3),MATCH(C3,$C$8:$C$11, 1), MATCH(D3, $E$7:$H$7, 1))
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    02-01-2008
    Location
    Perth, Australia
    MS-Off Ver
    Excel 365
    Posts
    135

    Smile Re: Index Match Problems

    Hi Jerry,

    Thanks very much for your reply, it very definately works.

    Out of interest is there any way to achieve the same thing with out the named ranges as I will likely end up with around 100 named ranges in the workbook?

    Regards

    Ads

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Index Match Problems

    You can add a key column like so, then use a standard INDEX of the entire table.
    Attached Files Attached Files

+ 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