+ Reply to Thread
Results 1 to 11 of 11

Excel Processing Speed

  1. #1
    Registered User
    Join Date
    07-17-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    12

    Excel Processing Speed

    Hi all,

    I have a 7.1MB Excel file which purely uses excel formulae and graphs (no macros) and the processing speed of the file is horrendous and it doesn't seem to finish processing(ever). I would like to know what are the possible issues that may be causing this?

    My file mainly uses index, match, offset, small, large functions. The only reason I can think of that may be causing this issue is that my index match function usually refers to entire columns i.e R:R rather than R1:R100. However, I'm guessing Excel would stop after it finds the first correct value rather than going through the entire column.

    I've also posted this question at the following forum:

    http://www.mrexcel.com/forum/excel-q...ml#post4234300
    Last edited by wilfrid147; 08-03-2015 at 06:53 AM.

  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,464

    Re: Excel Processing Speed

    my index match function usually refers to entire columns i.e R:R rather than R1:R100.
    That's probably it. If you are using index, match, offset, small, large functions in a combination, there's a chance that these are array functions (committed with Ctrl-Shift-Enter rather than just Enter and confirmed by the presence of curly brackets). If they are, that's definitely a problem and you should use Dynamic Named Ranges rather than referring to entire columns.

    You should also try pressing Ctrl-End on each/every sheet. If it goes way beyond the "real" data, the sheet is bloated. You need to select all the rows below the real data and delete them using the Delete icon on the toolbar. Similarly with columns to the right of your real data.

    If you use Conditional Formatting, it's worth checking if the ranges have been split. This can happen if you delete and add rows. It may be worth making a note of the CF conditions and the ranges they SHOULD apply to and deleting ALL Conditional Formatting and re-instating it. The easy test is just to delete it all and see if it's any faster. If it is, it proves the point.

    Incidentally, OFFSET is a volatile function so that can cause excessive re-calculation if used extensively. It might be better to restructure any formulae using it ... maybe use INDEX instead.

    Anyway, just a few ideas to start you off.


    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
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Excel Processing Speed

    TMS is right. It's frankly astonishing how misunderstood is the use of entire column references within Excel formulas.

    To clarify: array formulas calculate over all cells passed to them, whether those cells are technically beyond the last-used cells in those ranges or not.

    With some functions, e.g. COUNTIF(S)/SUMIF(S), you can get away with referencing entire columns with no detriment to performance, though not with functions which operate over arrays, such as AGGREGATE, SUMPRODUCT, and any construction requiring CSE.

    Hence, if, for example, you only have data up to row 1000, and you use an array formula which is referencing entire columns, that means that just one instance of such an array formula is being forced to calculate 1,047,576 more cells than are actually necessary.

    If you have just ten such formulas, that's already more than 10 million unnecessary calculations, etc., etc.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Excel Processing Speed

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  5. #5
    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,464

    Re: Excel Processing Speed

    Thanks for the Rep. And to you also XOR LX

    It's frankly astonishing how misunderstood is the use of entire column references within Excel formulas.
    Usually done for convenience, ease, lack of awareness ... or just pure laziness As XOR LX has said, some functions are optimised and can cope with full column references but, once you get into home grown complex formulae, it can be deadly.

    The other common mistake is to "prepare" empty rows with formulae such as
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I've seen workbooks wit tens of thousands of formula like that and, by removing them, it can reduce the size of the workbook by an order of magnitude.

    Thanks Kyle: were there any replies to the cross post?

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Excel Processing Speed

    No, none yet

  7. #7
    Registered User
    Join Date
    07-17-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    12

    Re: Excel Processing Speed

    Hi Kyle,

    Does my current edited post rectify the issue? Apologies.

  8. #8
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Excel Processing Speed

    Yup much appreciated

  9. #9
    Registered User
    Join Date
    07-17-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    12

    Re: Excel Processing Speed

    Hi TMS,

    I currently have thousands of cells which use a similar formula structure as your empty rows formula as |I need to remove any excel errors for use of my small/large functions and conditional formatting. Is there an alternative method to this? I've avoided these IF formulae to return "0" as it would skew my conditional formatting colours, small/large formula and scatter plots.

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

    Re: Excel Processing Speed

    Use the Excel Table feature where possible to reduce the ranges with formulas and conditional formatting.
    http://chandoo.org/wp/2009/09/10/data-tables/
    http://www.jkp-ads.com/Articles/Excel2007Tables.asp
    <----- 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.

  11. #11
    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,464

    Re: Excel Processing Speed

    As Jacc says, convert your data to Structured Tables and then you can modify your formulae to refer to columns in the Table.

    Structured Tables will not only extend the ranges automatically, they will propagate formula, formatting, Conditional Formatting and Data Validation in new rows.

    All those formulae to produce "blank" cells/entries all take time to process/calculate.

    Regards, TMS

+ 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. Speed up the processing
    By robtuby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2014, 11:41 AM
  2. How to Speed Up the File Processing i.e Formulas Vs VBA ?
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 10-22-2011, 12:33 PM
  3. Excel processing speed
    By tony.nz in forum Excel General
    Replies: 2
    Last Post: 11-13-2009, 03:42 PM
  4. Increasing Processing Speed
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2008, 02:19 AM
  5. Processing speed
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2008, 02:21 PM
  6. How to increase speed in Excel processing
    By ROLLET in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2008, 04:11 AM
  7. [SOLVED] speed of processing
    By Chas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2006, 09:20 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