+ Reply to Thread
Results 1 to 8 of 8

Index Match Function

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    31

    Index Match Function

    Hi,
    I'm trying to use index match to return a value from an index I have setup. It only returns results for half the index because it is also returning the blanks. How do I index the table to return the numeric values?

    Regards,
    Tim
    Attached Files Attached Files
    Last edited by paynod; 10-09-2014 at 01:14 PM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Index Match Function

    Hi

    in AA9 and down


    =INDEX($C$3:$V$22,MATCH(Y9,$B$3:$B$22,0),MATCH(Z9,$C$2:$V$2,0))

    First score is zero

    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Index Match Function

    Hi again,

    same outputs using



    =SUMPRODUCT($C$3:$V$22,($B$3:$B$22=Y9)*($C$2:$V$2=Z9))


    Regards

  4. #4
    Registered User
    Join Date
    02-09-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Index Match Function

    Hi,
    Thank you for the reply. The first result should be 225 and the second result in this instance should be 57. I don't want to return any 0
    values.

    Kind regards,
    Tim

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Index Match Function

    The problem, essentially, is that you're trying to run a lookup on a lower triangular matrix, but you're treating it like a square matrix.

    Easiest solution: situationally mirror the lookup across the diagonal of the matrix using MAX and MIN. (Note: This requires that the two headers are in the same order.)

    try this:
    Please Login or Register  to view this content.
    You can nest the MATCHes if you want, I left them in helper cells for fewer operations + easier reading.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Index Match Function

    The problem is that you need to match the ROW first then match the COLUMN. The original chart only allows for Row first and column Second. Unfortunately, this arrangement eliminates half of the possibilities (the area in green).
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Registered User
    Join Date
    02-09-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Index Match Function

    Thanks newdoverman,
    Is it not possible to say something like if the index match formulae evaluates to 0 then do this

    Please Login or Register  to view this content.
    otherwise do
    Please Login or Register  to view this content.
    ??...

    I know you can say true or false but this is neither just a null value.....mmmm

    Kind regards,
    Tim

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Index Match Function

    To cover the possibility of 0 enter this in AA9 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 03-17-2014, 08:10 PM
  2. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  3. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  4. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  5. Emulate Index/Match combo function w/ VBA custom function
    By Spencer Hutton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2005, 01:06 PM

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