+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT calculation speed issues

  1. #1
    Registered User
    Join Date
    11-29-2007
    Posts
    22

    SUMPRODUCT calculation speed issues

    Hi Guys,

    I'm currently using a SUMPRODUCT formula in a spreadsheet (in approx 130,000 cells) and it is slowing the calculation down immensely! I've restricted the formula to look at specific cells not full columns etc but calculation is still slow! The formula is as below:

    =IF($A13>"",(SUMPRODUCT((Sheet2!$A$6:$A$506=$E13&$G13)*(Sheet2!$CW$1:$ER$1=$C13&H$12),Sheet2!$CW$6:$ER$506)),"")

    Is there a faster formula that will do do the calculation that you know of?

    Any help would be much appreciated!!

    Thanks

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: SUMPRODUCT calculation speed issues

    Is the formula picking up a single value from the table (at the intersection of the matching row and column)? If so try using INDEX/MATCH like this

    =IF($A13="","",INDEX(Sheet2!$CW$6:$ER$506,MATCH($E13&$G13,Sheet2!$A$6:$A$506,0),MATCH($C13&H$12,Sheet2!$CW$1:$ER$1,0)))
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-29-2007
    Posts
    22

    Re: SUMPRODUCT calculation speed issues

    Hi Daddylonglegs,

    You've cracked it (again!) as that is definately quicker but I'm getting N/A's when there is no match, what can I add to make these a 0?

    Thanks again for your help

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: SUMPRODUCT calculation speed issues

    Which version of Excel are you using? In Excel 2007 or later you can use IFERROR like

    =IF($A13="","",IFERROR(INDEX(Sheet2!$CW$6:$ER$506,MATCH($E13&$G13,Sheet2!$A$6:$A$506,0),MATCH($C13&H$12,Sheet2!$CW$1:$ER$1,0)),0))

+ 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