+ Reply to Thread
Results 1 to 4 of 4

Combine multiple sumproducts to speed up sheet

  1. #1
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    416

    Combine multiple sumproducts to speed up sheet

    Hi,

    I have a sheet used to calculate the progress percentages.
    The structure is divided into two parts (65/35) and have separate elements in each part
    I am using separate sum-products for each row and i have 100s of such rows in my sheet which is slowing the sheet.

    Is there an elegant way of achieving this?

    File attached for reference
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Combine multiple sumproducts to speed up sheet

    I have to say, looking at the calculation itself it's unlikely to cause a big drag on performance.

    Are you using Conditional Formatting, and/or other functions elsewhere such as OFFSET, INDIRECT ?

    If you want to be sure of whether or not the SUMPRODUCTs are, themselves, the problem - you could temporarily insert some code like below:

    Please Login or Register  to view this content.
    Put XL into Manual Calc mode, and then select your SUMPRODUCT range and run the above macro (via ALT + F8), the Debug.Window in VBE will show you how long it took to calculate.

    I applied the above to your sample, having extended the examples for a few thousand rows, and the calculation time is very small.

  3. #3
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    416

    Re: Combine multiple sumproducts to speed up sheet

    Hi Xlent,

    Yes I have conditional formatting in the sheet.
    Maybe its causing the drag.

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Combine multiple sumproducts to speed up sheet

    Yes, quite possibly, conditional formatting is classed as "super volatile"

    Charles Williams has a superb site covering XL optimisation, if you ever have the time I would suggest reading -- below link references the above point:

    http://www.decisionmodels.com/calcsecretsi.htm

+ 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. dynamic sheet with sumproducts
    By jra81882 in forum Excel General
    Replies: 8
    Last Post: 04-17-2017, 10:38 AM
  2. Trying to create multiple Sumproducts
    By simmo86 in forum Excel General
    Replies: 1
    Last Post: 10-23-2015, 01:34 PM
  3. Replies: 0
    Last Post: 10-12-2015, 10:02 AM
  4. Replies: 2
    Last Post: 06-11-2014, 11:14 AM
  5. [SOLVED] Combine VBA Modules to Speed Performance???
    By Jester0001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2013, 06:56 PM
  6. [SOLVED] align or combine multiple columns from multiple sheets into one sheet in sequence
    By calif in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2013, 11:49 AM
  7. Combining or Optimizing Multiple SUMPRODUCTS
    By skyxliner in forum Excel General
    Replies: 14
    Last Post: 07-02-2012, 09:48 AM

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