+ Reply to Thread
Results 1 to 7 of 7

Speed Up calculations - sumproduct

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Speed Up calculations - sumproduct

    Hi,

    I have about 20 formulas, most using SUMPRODUCT, next to a database of around 14500 rows. The problem I have is it's taking about 2 minutes to calculate each time. I have read up on speeding up the process and have been told to replace them with COUNTIFS or SUMIFS, but when I do I get an error message.
    I'm Guessing this is because they are array formulas?

    =SUMPRODUCT((LName=$AB2)*(Setone=2),--(Settwo<2))

    =SUMPRODUCT(--(WName=AB2),--(LRank>=11),--(LRank<=20))

    =SUMPRODUCT((WName=$AB2)*(Setone=2),--(Settwo=0)*(wodd
    =SUMPRODUCT((LName=AB2)*(WRank>=10)*(WRank<=20)*SIGN((score1=6)+(score1=7))*SIGN((score3=6)+(score3=7))*((score2+score4)=AS4))


    Here is a few of the formulas I am using, if anybody could help change a couple, I can work out the pattern and fix the rest, and hopefully speed up my workbook.

    I appreciate any help i can get.

    Thanks

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Speed Up calculations - sumproduct

    SUMPRODUCT() is an *array formula* without array enter which means you press Enter normally without using combination Ctrl+Shift+Enter keys. That function will slow down your spread sheet.

    You can not use COUNTIFS(), or SUMIFS() when you use an older version Excel prior to XL-2007.

    To help you better... We would like to see your spread sheet. So we can try to come up with efficient/short/elegant formula as much as possible.
    Last edited by Teethless mama; 01-03-2013 at 11:00 PM.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Speed Up calculations - sumproduct

    This may help a little bit...

    Change this one:

    =SUMPRODUCT((LName=$AB2)*(Setone=2),--(Settwo<2))
    To:

    =SUMPRODUCT(--(LName=$AB2),--(Setone=2),--(Settwo<2))

    This one is incomplete but use the same general syntax as the formula above:

    =SUMPRODUCT((WName=$AB2)*(Setone=2),--(Settwo=0)*(wodd
    Change this one:

    =SUMPRODUCT((LName=AB2)*(WRank>=10)*(WRank<=20)*SIGN((score1=6)+(score1=7))*SIGN((score3=6)+(score3=7))*((score2+score4)=AS4))
    To:

    =SUMPRODUCT(--(LName=AB2),--(WRank>=10),--(WRank<=20),--ISNUMBER(MATCH(score1,{6,7},0)),--ISNUMBER(MATCH(score3,{6,7},0)),--(score2+score4=AS4))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Speed Up calculations - sumproduct

    Thanks...

    So basically I have to Ctrl+Shift+Enter on all the formulas, and they should speed up?

  5. #5
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Speed Up calculations - sumproduct

    Thanks Tony..

    I'll try that out.

  6. #6
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Speed Up calculations - sumproduct

    Quote Originally Posted by Risels7 View Post
    Thanks...

    So basically I have to Ctrl+Shift+Enter on all the formulas, and they should speed up?
    No. You're missing my point. When you calculate large spread sheet with lot of rows and/or columns try to avoid SUMPRODUCT() as much as possible. Try to use DBASE functions instead.

  7. #7
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Speed Up calculations - sumproduct

    Ok, I get you now...

    So I should be replacing SUMPRODUCT with DSUM? if so, how would I go about editing this code with that?

    =SUMPRODUCT((LName=$AB2)*(Setone=2),--(Settwo<2))

    Thanks for taking the time to help.

+ 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