+ Reply to Thread
Results 1 to 5 of 5

Index-Match Function Not Working all the time

  1. #1
    Registered User
    Join Date
    12-07-2007
    Posts
    2

    Exclamation Index-Match Function Not Working all the time

    Hope someone can help. I am losing my mind with this. I have attached the file for you to view. I have two drop down boxes which serve as the inputs to an Index function with 2 nested Match functions. The Index function works for the first 10 items of the "Largest Pipe Size" drop down, but does not work for any of the other. I have tried multiple versions of the forumla and formating the cells...nothing seems to work.

    Here is my formula:
    =INDEX($G$6:$P$44, MATCH($C$7,$H$6:$P$6,0), MATCH($C$6,$G$7:$G$44,0))

    Any assistance would be Greatly Appreciated!!

    Austin
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Looking only at the formula, you can never get to the rightmost column or the lowest row on the index range. The match ranges are one column narrower and one row shorter. And reversed: the syntax is INDEX(Array, Row, Column), not INDEX(Array, Column, Row).

    =INDEX($G$6:$P$44, MATCH($C$7, $H$6:$P$6, 0), MATCH($C$6, $G$7:$G$44, 0) )
    Last edited by shg; 12-07-2007 at 12:26 AM.

  3. #3
    Registered User
    Join Date
    12-07-2007
    Posts
    2
    Thanks shg. I got the formula to work by increasing the range of the match functions and following the correct row and column order in the INDEX function.

    Thanks again for the help.

    Here is the formula that ultimately worked

    =INDEX($G$6:$P$44, MATCH($C$6,$G$6:$G$45,0), MATCH($C$7,$G$6:$Q$6,0))

  4. #4
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179
    Quote Originally Posted by hoosierhunter
    Thanks shg. I got the formula to work by increasing the range of the match functions and following the correct row and column order in the INDEX function.

    Thanks again for the help.

    Here is the formula that ultimately worked

    =INDEX($G$6:$P$44, MATCH($C$6,$G$6:$G$45,0), MATCH($C$7,$G$6:$Q$6,0))
    I think that should be something like:

    =INDEX($H$7:$Q$44, MATCH($C$6,$G$7:$G$44,0), MATCH($C$7,$H$6:$Q$6,0))

    in view of consistency...

  5. #5
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Solution

    Here is an alternative:
    =SUMPRODUCT((G7:G44=C6)*(H7:P44)*(H6:P6=C7))

    Hope it helped
    Ola Sandström

+ 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