+ Reply to Thread
Results 1 to 10 of 10

Slow Calculations - Any advice to help speed a file up?

  1. #1
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Slow Calculations - Any advice to help speed a file up?

    Hi All,

    Hopefully someone can give me some pointers.

    I have a file that is made up as follows:

    Main Summary sheet, c.5000 rows and columns to AW with 25 of them containing formulas, formulae include, concatenates (to give unique references), index/match, nested If/Sumifs (to allow 2 x sumifs based on the True/False of the the if statement). The sumifs generally contain indirect formulas to direct them to other tabs within the workbook from where to pull the values.

    4 x tabs for Data Sources (for the differing data to be pulled from for the main summary as detailed above), Lets call them A/B/C/D.

    Tabs A/B/C/D are fairly flat, just hard coded data from other worksheets, the only formulas present on these tabs are there for validation purposes, a concatenate to give the unique reference (for the Main Summary) and a lookup formula to ensure that unique reference is present on the Main summary. Other formulas are just simple stuff for totals/subtotals for when filtering.

    There are no external data links (all the info required for the summary is all encompassed on the Data source tabs.

    The overall file size is around 6MB.

    The file is very slow when calculating any changes, as such we have the file set to manual calculation and have to hit 'calculate now'/press F9 when the file is updated.

    I just wondered if anyone could offer any pearls of wisdom on this one.........

    Thanks
    seash
    Last edited by seash; 07-16-2015 at 04:53 AM.

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Slow Calculations - Any advice to help speed a file up?

    Does the order of calculation make logical sense? That is, are the calculations progressive as you follow down the worksheets or are they jumping all over the place?

    "The sumifs generally contain indirect formulas to direct them to other tabs within the workbook from where to pull the values." When directed to other tabs, is a calculation taking place or is a value being taken from the worksheets? If there are calculations in the Sumifs directed to other worksheets taking place on those worksheets, can you replace any of the calculations that are taking place on the other worksheets by summary cells that would have those calculations already made so that the results just have to be referenced by the Sumifs formulae?

    If you can stip down your workbook so that it doesn't have sensitive data and just leave enough data (real or fake) to make sense of the workbook, it would be easier to see how the flow of the calculation is actually taking place. Formulae can also be checked to see if there are more efficient formulae that can be used.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Slow Calculations - Any advice to help speed a file up?

    Turn off RECALC.
    then when you need, recalc manually, F9

  4. #4
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Re: Slow Calculations - Any advice to help speed a file up?

    Hi Ranman256,

    Thanks for your reply.

    This is what I'm doing already to stop the file from doing a recalc at every change.

    Ideally Im looking for a method to speed it up, with a hope that we can either have the calculation on auto, or that manual recalc will work a lot quicker.

    Thanks
    seash

  5. #5
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Re: Slow Calculations - Any advice to help speed a file up?

    Hi newdoverman,

    I cant upload the file as its over the 1mb limit for this forum? Any suggestions on that?

    Thanks

  6. #6
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Slow Calculations - Any advice to help speed a file up?

    Delete some data until you get below the 1mb limit.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  7. #7
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: Slow Calculations - Any advice to help speed a file up?

    In my experience index/matches (when there's a ton) and indirect formulas slow things down a lot.

    I didn't know that a "flow of calculation" was something that mattered, so thanks for that @newdoverman!

    If there is any way around the indirect formulas I would try getting rid of those first, but I know that can be very inconvenient

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Slow Calculations - Any advice to help speed a file up?

    You can upload a zipped file that is over 1MB.

  9. #9
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Re: Slow Calculations - Any advice to help speed a file up?

    Ok heres the file, reduced in size, but hopefully will still give you an idea.

    Thanks
    seash
    Attached Files Attached Files
    Last edited by seash; 07-17-2015 at 11:37 AM.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Slow Calculations - Any advice to help speed a file up?

    Some things to consider re the performance of your workbook.

    The use of Full Column references in the formulae throughout the workbook is in my opinion unnecessary and excessive. Do you really have to reference over 1 million rows every time? That is a lot of wasted calculation resources.

    The Lookup Data worksheet has several columns that have no connection to any other cells in the workbook. Are these actually going to be used? If not, they are just taking up space.

    You might consider defining names for all the columns on the Lookup_Data and use the names instead of actual cell references in your formulae.

    This workbook is approximately 1.3 M and the full workbook is about 6 MB. That isn't overly large by any means and the formulae are not complicated so that leads me to think that the referencing of whole columns may be playing a large role in being slow. Another factor is the computer that this is being used on. Is it up to the task? Does it have enough memory, enough free disk space and is the computer fast enough?

+ 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] How to slow down the animation speed
    By morasrikanth in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2015, 10:25 AM
  2. Spreadsheet Really Slow - Can anyone help speed it up?
    By AlexChatz in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-18-2014, 01:12 AM
  3. [SOLVED] Very Slow Macro... Any Advice How To Speed It Up, Please?
    By mrodrigues in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-07-2012, 04:37 PM
  4. Macro to trigger calculations // File too slow
    By Honeypum in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2011, 10:44 AM
  5. Very Slow Script... Speed Up Advice?
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-15-2010, 01:18 PM
  6. How can I speed up this slow macro?
    By rs2k in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2008, 08:34 PM
  7. [SOLVED] slow Macro speed
    By Lam Chop in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2006, 11:10 PM

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