+ Reply to Thread
Results 1 to 4 of 4

Help with reducing calculation time in formulas

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Honolulu, Hawaii
    MS-Off Ver
    Office 2010
    Posts
    6

    Help with reducing calculation time in formulas

    Hi!

    I've been trying to create a spreadsheet that calculates counts based on provided stats. I currently have a working spreadsheet, but it takes over an hour to calculate. Need some recommendations on what I can do to reduce the calculation time. There are a lot of things going on, so please bear with me.

    Below is a snapshot of what the spreadsheet would look like.

    Each cell has a calculation that references another spreadsheet based on the month. It does a count if the Agency(Agency1) and Error(E1) match. There can also be multiple Agencies I need to lookup for each Error. I also do SUM functions for the Total column.

    This is what is in each cell to calculate the count:

    Please Login or Register  to view this content.
    The INDIRECT cell in Row3 has the path to the other spreadsheet. And I basically just add another SUMPRODUCT formula if there are multiple agencies I need to lookup.

    spreadsheet.gif

    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Help with reducing calculation time in formulas

    The first thing to try is changing the full column references to limited ranges, or, ideally, making them dynamic named ranges.

    So, $E:$E would become $E$2:$E$1000, for example.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-11-2012
    Location
    Honolulu, Hawaii
    MS-Off Ver
    Office 2010
    Posts
    6

    Re: Help with reducing calculation time in formulas

    Ok thanks! Also, is it better to use the SUMPRODUCT or COUNTIFS function? Or is there a better way to get the counts?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Help with reducing calculation time in formulas

    You're welcome. Thanks for the rep.

    With the advent of COUNTIFS in Excel 2007, it was less necessary to use SUMPRODUCT. But it is still a viable option, especially if you want the formula to be backwards compatible. In theory, it should be better to use COUNTIFS, but, who knows ... I think you're better off doing the comparison once you've eliminated the more obvious reasons for slow performance.

    Regards, TMS

+ 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