+ Reply to Thread
Results 1 to 4 of 4

Slow Calculation Time

  1. #1
    Registered User
    Join Date
    05-23-2017
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    16

    Slow Calculation Time

    Hi everyone. I have a spreadsheet that functions as I hoped it would, but it is EXTREMELY slow because of all the calculations and conditional formatting. I don’t know how to fix it without removing anything, so I’m hoping someone here might have suggestions to speed it up (I tried the ones available in a basic Google search).

    The spreadsheet already existed as a list of active patients (reduced for this sample, but appx. 200+ patients). My boss asked that I keep it as it is and make only the necessary changes for the calculations. The attached sample is a result of that request (columns H, L-Q are typically hidden).

    Here is what he asked for:
    • A column which calculates the 6-month date from when the patient was admitted
    • If the patient has been here less than 6 months, leave it as is; If they're at or over 6 months, highlight it
    • Of those that are over 6 months, some are “approved” if they are classified as “Group” or “Medication” - highlight those differently
    • A summary table (that I put on a separate tab) to show how many patients a clinician has, how many are at/over 6 months, and the split of those approved and not approved

    It seemed like a simple request, but when I put it all together it slowed down so significantly that I had to turn off Automatic Calculations (which is a pain).

    I hope I explained this well. Any suggestions on how to simplify this?
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Slow Calculation Time

    The basic problem is that you are processing whole columns with your SUMPRODUCT and Conditional formatting formula.

    You should always limit your formulae to only the size of the data you're analysing. Where the data varies in size then create dynamic range names and use the range names in your formulae.

    In addition SUMPRODUCT() is a bit old fashioned these days. It will speed up when you reduce the range to just 27 rows rather than the 1m+, but rather than that use the faster COUNTIFS() function.

    So as an example

    I've created dynamic range names for Clinician1 & Clinician2. For instance Clinician 1 is defined as
    Please Login or Register  to view this content.
    This evaluates to I2:I28 on the Active Sheet. This means that for instance the column C values on the Summary will be

    I also created a name called 'sixmonths' which covers H2:H28

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I've out this in I2:I10 so that you can compare. Once you've replaced all the current formulae based on the examples above the workbook will speed up.

    See attached
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-23-2017
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    16

    Re: Slow Calculation Time

    Sorry for the delay, I went on a vacation, but thank you so much! This worked!! The spreadsheet processes immediately now. Thanks for your help

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Slow Calculation Time

    My pleasure and tnanks for the rep.

+ 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. [SOLVED] Slow Calculation
    By radddogg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-24-2017, 04:34 AM
  2. Slow Calculation
    By Macphesto in forum Excel General
    Replies: 13
    Last Post: 08-13-2012, 06:55 PM
  3. Slow calculation
    By morpheus305 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-07-2009, 04:38 AM
  4. Slow Updates and Calculation
    By lancer_mc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-28-2009, 10:40 AM
  5. [SOLVED] Slow Calculation
    By JavyD in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2006, 05:55 PM
  6. [SOLVED] Does this slow down calculation?
    By sfrancoe in forum Excel General
    Replies: 1
    Last Post: 01-15-2006, 11:45 AM
  7. [SOLVED] Insert calculation with VBA is slow
    By Les Stout in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-13-2005, 08:05 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