+ Reply to Thread
Results 1 to 14 of 14

Bad performance using formulas

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Bad performance using formulas

    I am finding my spreadsheet very slow from adding a small amount of records to a large amount. There may be better ways to write a formula or an entirely different concept. See attached, I know the trend tabs are a huge performance hit, but unsure how to lay out the data in another way instead of laying it out the way I did it to get the graph that I am after. There are a few arrays everywhere and all are set to 25000 for maintenance free.

    Any help is appreciated.
    Thank you so much.
    Bill
    Last edited by antexity; 04-16-2015 at 03:59 PM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Bad performance using formulas

    Hi antexity and welcome to the forum.

    I think when it comes to large data sets, one should turn their attention to using other tools that are more efficient in handling large volume of data. Using MS Access database to store all your tables and queries and then export them into excel for data analysis is a much better way of doing things.

    Just a thought.

    Alex
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Bad performance using formulas

    Thanks Alex, If we will start getting even more complex, then that will be my next step. Access came across my mind a couple of times throughout this development. Just hoping someone with good dev skills can rewrite the formula's or organize the data in a way to be more efficient.

    Thanks for your reply.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Bad performance using formulas

    You're welcome. Please don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Bad performance using formulas

    Another option to look at is to create helper colunms that will let you use regular formulas instead of those array formulas you have, that can become resource-hogs as well
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    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
    48,017

    Re: Bad performance using formulas

    Using 25,000 may mean maintenance free, but it also means you are multiplying 25,000 cells against 25,000 cells for however many columns you include in your array formula. That's why the workbook is slow.

    You would be better off creating Dynamic Named Ranges or, even better, converting your data to a Structured Table and Excel will manage the ranges for you.

    How much data is there currently (in terms of rows and columns)? And how quickly does it grow? 25,000 rows will NOT be enough eventually, but is that next week, next month, next year, ... five years?
    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


  7. #7
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Bad performance using formulas

    Quote Originally Posted by TMS View Post
    Using 25,000 may mean maintenance free, but it also means you are multiplying 25,000 cells against 25,000 cells for however many columns you include in your array formula. That's why the workbook is slow.

    You would be better off creating Dynamic Named Ranges or, even better, converting your data to a Structured Table and Excel will manage the ranges for you.

    How much data is there currently (in terms of rows and columns)? And how quickly does it grow? 25,000 rows will NOT be enough eventually, but is that next week, next month, next year, ... five years?
    Thanks for the reply, we want to keep an average 1 year and 2 months of data and we will purge the rest when it ages past that month. We are starting with March 2015 with an average of 60 records per day (21960 for a year approx). Right now we have about 2000 records.

  8. #8
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Bad performance using formulas

    Quote Originally Posted by FDibbins View Post
    Another option to look at is to create helper colunms that will let you use regular formulas instead of those array formulas you have, that can become resource-hogs as well
    Thanks for the advice. I have used helper columns for dates but unsure where else I can use helper columns. Ill keep this in mind.

    Thank you

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Bad performance using formulas

    You said you attached a WB, but I dont see it...if you attach it again, we may be able to simplify some of your formulas.

    Another option (that I have used in the past), is if the historic data is static/unchanging, then forumulas that use only that data could be converted to values?

  10. #10
    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
    48,017

    Re: Bad performance using formulas

    @Ford: there WAS a workbook. It is very, very slow. Been playing a little but there are a lot of Array Formulae with several columns so it is very long winded calculating.

  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
    48,017

    Re: Bad performance using formulas

    This is the updated workbook with the Error Report Data converted to a Structured Table. Superfluous lines in the Error Report Data sheet have been removed. Because this is a Structured Table, new lines added to the bottom of the list will be automatically incorporated into the Table and any formulae, formatting, conditional formatting and data validation will be propagated.

    The formulae have all been modified to use either formal Structured Table references, or (Dynamic) Named Ranges based on the Structured Table references.

    It's still a little slow on my (now elderly) laptop but it is manageable. The %age calculated goes up 10s rather than 1s with large pauses in between.

    I don't think that the number of records is an issue at present and hence a database probably would not be the answer. The problem is the number of complex array formulae and SUMPRODUCT formulae throughout the workbook. This was exacerbated by using a row count of 25,000 (give or take) everywhere. The workbook size isn't huge, but reduced 75 kb from the original.

    As an aside, if you choose to move to an Access Database for your raw data, you will have the cost of purchasing or subscribing to the product plus a huge learning curve (in my opinion). And, if you are still pulling the data into Excel to analyse it, you may still incur calculation overheads.

    Anyway, interesting exercise. See if it's an improvement for you. If not, well, I tried


    Regards, TMS
    Attached Files Attached Files

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Bad performance using formulas

    Quote Originally Posted by TMS View Post
    @Ford: there WAS a workbook. .
    I figured there was 1, but that it had been removed

  13. #13
    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
    48,017

    Re: Bad performance using formulas

    I have it if you want it

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Bad performance using formulas

    I started looking at it (your uploaded copy), intending to see if helpers might - well - help, but that got so involved, I gave up (plus, getting a head-cold, so feeling "foggy" lol)

+ 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. VBA Performance Tuning on Formulas - Help!
    By excelrabbit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2015, 12:15 AM
  2. Skip "empty" rows (with formulas) in Worksheet to increase Performance
    By britzer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2014, 04:06 PM
  3. aaaarrrgh!! Calculating performance appraisal formulas
    By mzad811 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2014, 05:35 AM
  4. VBA performance with building formulas
    By jkj115 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2013, 11:33 AM
  5. Formulas for Excel Performance Review
    By jodir in forum Excel General
    Replies: 3
    Last Post: 01-07-2013, 10:14 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