+ Reply to Thread
Results 1 to 8 of 8

4 threads calculating. Massive slowdown since adding sumifs formulas

  1. #1
    Forum Contributor
    Join Date
    12-18-2013
    Location
    Kings Lynn, England
    MS-Off Ver
    Excel 2019
    Posts
    234

    4 threads calculating. Massive slowdown since adding sumifs formulas

    Hi all,
    I have a file I use for keeping track of booking vehicles.
    I also have a tab (statistics) that I will use for trending vendor performance.
    There is 4 sets of criteria (early, late, on time and Not arrived) for each haulier/vendor, for each week of the year.
    I am using a sumifs formula in each cell to calculate this, but the more I have add, the slower the file became with the 4 threads calculating message.
    Is there another formula or another way of achieving the same result?
    Any help would be appreciated.
    Attached Files Attached Files
    Last edited by Pepe Le Mokko; 09-27-2019 at 02:29 AM. Reason: Title amended. Help is what you are here for

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: 4 threads calculating. Massive slowdown since adding sumifs formulas

    Do you REALLY need to see all of the weeks data at once?

    Two suggestions. Use a dropdown box to select the week you're interested in and do a COUNTIFS on that one only. Or... restrict the COUNTIFS range. COUNTIFS normally doesn't mind whole column references, but you do have a shedload of whole column references there!!!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    12-18-2013
    Location
    Kings Lynn, England
    MS-Off Ver
    Excel 2019
    Posts
    234

    Re: 4 threads calculating. Massive slowdown since adding sumifs formulas

    Hi Glenn,
    thanks for the reply.
    Unfortunately, I do need the weeks as it is used to calculate haulier performance and I would pull out haulier by year. I thought I had restricted the range?
    Is there a way do you think that I could work around it with VB instead?
    The only other option that I thought of, was simply set the statistics tab up on a separate file and just link the formulas to that file. The stats file would be really slow I guess, but at least the booking in file would remain quick and useable.
    Thanks again.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: 4 threads calculating. Massive slowdown since adding sumifs formulas

    Ok... so do you really need to see all the hauliers at once? Dd for haulier and then return data???? I can set it up, if a possibility.

  5. #5
    Forum Contributor
    Join Date
    12-18-2013
    Location
    Kings Lynn, England
    MS-Off Ver
    Excel 2019
    Posts
    234

    Re: 4 threads calculating. Massive slowdown since adding sumifs formulas

    Ahh! Now that's a possibility.
    No, I don't need to see all the hauliers at once (just capture the data). If you go to the far right of the stats tab you will see it is set up with a drop down list for hauliers to generate a graph with the output of the data. That is set up for one haulier at a time. That is all I am looking for really. If you can set something up with that, that would be great. Thanks.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: 4 threads calculating. Massive slowdown since adding sumifs formulas

    Will do. Out for lunch now, but will set it up later on today.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: 4 threads calculating. Massive slowdown since adding sumifs formulas

    Box A2: select a haulier (only Turners & Reed Boxall have had dummy data added by me).

    Formula used in B4, copied across and down was:

    =IFERROR(SUMPRODUCT(((INDIRECT("'"&$A4&"'!J3:AJ60")=Statistics!$A$2)*((INDIRECT("'"&$A4&"'!I3:AI60")=Statistics!B$3)))),"")

    Voila.

    However, it could be made MUCH more efficient if all the raw data was stored on a SINGLE sheet, with an additional column for week number. However, even as it is, it's faster (by a million miles) than previously.

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-18-2013
    Location
    Kings Lynn, England
    MS-Off Ver
    Excel 2019
    Posts
    234

    Re: 4 threads calculating. Massive slowdown since adding sumifs formulas

    That's perfect! Thanks very much sir!

+ 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. help needed, sumifs or index match formulas?
    By juca73 in forum Excel General
    Replies: 2
    Last Post: 05-11-2019, 09:41 AM
  2. Replies: 11
    Last Post: 02-27-2017, 08:02 AM
  3. Adding 2 sumifs formulas together
    By brian_2me in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2017, 09:12 AM
  4. Replies: 1
    Last Post: 04-22-2016, 10:44 AM
  5. [SOLVED] help needed with macro for adding formulas
    By Brewel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2013, 04:04 AM
  6. Copy and paste named range at end of loop causing massive slowdown over time
    By Sccye in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2013, 07:03 AM
  7. Too many sumproduct formulas causing slowdown
    By sd7000 in forum Excel General
    Replies: 5
    Last Post: 08-28-2009, 09:37 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