+ Reply to Thread
Results 1 to 5 of 5

Index/Match combined with Sumproduct #N/A Issue

  1. #1
    Registered User
    Join Date
    03-11-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    16

    Index/Match combined with Sumproduct #N/A Issue

    Hello all,

    I created a formula that I was hoping could reduce a few steps in the process I take to match monthly discounts that were created with their corresponding account numbers, and attempted to use an Index/Match formula with an embedded Sumproduct formula. I would understand if this didn't work at all for one reason or another, but out of the 20 accounts in my example worksheet it works for about 75% of them. I cannot for the life of me figure out what it is about the remaining accounts that is causing the formula to produce #N/A instead. I am guessing it might have something to do with Match functions issues with sorting.

    In the example workbook I've attached one tab shows the current process that produces 100% accurate results, and then the other tab is what I'm trying to replace it with and it shows that the highlighted column has some accounts that the formula works for and some that it doesn't.

    Any advice or suggestions are appreciated, I am open to modifying my approach to this process dramatically if something else would work better. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,286

    Re: Index/Match combined with Sumproduct #N/A Issue

    Try

    =INDEX($H$3:$I$22,MATCH(SUMPRODUCT(($A$3:$A$36=A3)*$D$3:$E$36),$H$3:$H$22,-1),2)

    The values in I are in descending order.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Index/Match combined with Sumproduct #N/A Issue

    Also

    =INDEX($H$3:$I$22,MATCH(ROUND(SUMPRODUCT(($A$3:$A$36=A3)*$D$3:$E$36),2),$H$3:$H$22,0),2)
    Dave

  4. #4
    Registered User
    Join Date
    03-11-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    16

    Re: Index/Match combined with Sumproduct #N/A Issue

    Hey guys,

    Thanks for both replies. I tried sorting column I in descending order then changing the Match Type to -1, which corrected the #N/A values but then caused incorrect credit memos to be matched with account numbers.

    Inserting the Round function into the formula seems to have solved the problem. I stepped into the formula and the Sumproduct was producing the correct number for all intents and purposes, but it must have someone added a trailing decimal that was causing issues with the exact match Match Type.

    Thanks again, marking this as Solved!

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Index/Match combined with Sumproduct #N/A Issue

    You're welcome.

    FWIW: Math operations will generate "floating point" errors. Even something as minute as 0.00000000000000001 or smaller will cause MATCH to return #N/A.

+ 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. Index/Match combined with Count
    By andvan in forum Excel General
    Replies: 2
    Last Post: 02-12-2017, 09:49 AM
  2. Combined count if and index match
    By emina002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2016, 12:00 PM
  3. Issue with sumproduct formula combined to INDEX MATCH
    By St3ff3ns in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-07-2015, 06:30 AM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. DIV/0 error when using a combined index match and sumproduct
    By DRFJR in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-25-2013, 07:23 PM
  6. INDEX , MATCH ,INDIRECT Combined usage example - Pls
    By TKD in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-24-2012, 09:32 AM
  7. INDEX, MATCH, and IF functions combined
    By veeeSix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2012, 01:28 PM

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