+ Reply to Thread
Results 1 to 6 of 6

Too many sumproduct formulas causing slowdown

  1. #1
    Registered User
    Join Date
    11-06-2008
    Location
    memphis, tn
    MS-Off Ver
    2010
    Posts
    16

    Too many sumproduct formulas causing slowdown

    Hi all,

    First, I want to say thanks for any help you might be able to offer. Attached are 2 sheets out of a workbook I am using which has many sumproduct formulas. On the the Input sheet, is where vacation and training forecast dates are listed. On the Calcs sheet, there are 2 monthly calendars for the year, 1 for vacation, the other for training. Would like to know if there is a way to have both records show up on only one calendar set. I currently have the vacation shown as a '1' and the training shown as a '9'. The workbook is used in Excel 2003 & 2007.
    Thank you, Steve
    Attached Files Attached Files
    Last edited by sd7000; 08-28-2009 at 09:38 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Too many sumproduct formulas causing slowdown

    To be honest given your layout and the restriction of XL2003 compatability you will struggle ... the best approach in these instances is IMO to store the date grid adjacent to each transaction and populate for each transaction (very simple formula) and this in turn makes aggregation a very simple and inexpensive task (ie using SUMIF), however, the requirement of 365 days means this is not viable in XL2003 (limited to 256 columns less those required for data entry).... you could possibly have different sheets for each qtr and do a 3d summation but it seems like overkill.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Too many sumproduct formulas causing slowdown

    Here's an alternative approach, see Input2 / Calc2

    This is based on one key requirement - that you split any absences that cross months into separate lines (an example of which is highlighted in yellow on Input2)

    Doing this allows you to be a little "creative" in so far as you need only have columns per day of month (ie max of 31) and can create a concatenation of employee & month in one column (E) ... this means that on final calendar you can use a basic SUMIF which will be far more efficient than a SUMPRODUCT / Array based approach.

    I have only setup the first few months for the latter approach - you can obviously replicate remaining months if you choose to adopt this approach.

    even if you choose not to adopt it will hopefully give you some ideas as to possible workarounds....
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-06-2008
    Location
    memphis, tn
    MS-Off Ver
    2010
    Posts
    16

    Re: Too many sumproduct formulas causing slowdown

    Thank you so much for the quick reply and another idea on how to solve my issue, I will definitely pursue it. You mentioned that with XL 2003 I would struggle due to the limitations, if it was done only for XL 2007, would there be a different direction to go?
    Thanks, Steve

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Too many sumproduct formulas causing slowdown

    Quote Originally Posted by sd7000
    ...would there be a different direction to go?
    Well using your original setup you could possibly look at using SUMIFS rather than SUMPRODUCT - the former being more efficient than the latter but unlike the latter SUMIFS is not backwards compatible with earlier version of XL.

    Given the greater number of columns available in XL2007 you could also store each of your 365/6 days as a separate column adjacent to each transaction - the only advantage of this over my previous attachment is that you need not split transactions that cross over multiple time periods ... that said I think the prior proposal is still a good way to go (you just need to remember to do the transaction split as and when required).

  6. #6
    Registered User
    Join Date
    11-06-2008
    Location
    memphis, tn
    MS-Off Ver
    2010
    Posts
    16

    Re: Too many sumproduct formulas causing slowdown

    Thank you for your assistance.

+ 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