+ Reply to Thread
Results 1 to 8 of 8

Extremely slow workbook and complex formulas

  1. #1
    Forum Contributor
    Join Date
    06-16-2014
    Location
    United States
    MS-Off Ver
    Home 2010
    Posts
    122

    Extremely slow workbook and complex formulas

    My workbook is performing unreasonably slow, and I know why. It is the SUPPLIERQUOTES sheet, which has some pretty complex formulas in several columns. But, they are the only ones I found that work. There's only one macro on the AssemblyBom sheet and it is very simple. There are very simple macros on the labor sheets. I would be open to any alternatives to the formulas in SUPPLIERQUOTES. In a nutshell, it autoloads info from the AssemblyBOMS sheet based on assembly and component fields. I attached my workbook.

    I considered the following discussion in this thread, but I saw no performance difference. FYI, my SUPPLIERQUOTES sheet formulas are extended to line 1500. Yes, this is necessary

    http://www.excelforum.com/excel-gene...so-slow-2.html
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Extremely slow workbook and complex formulas

    Your posted file has LOTS of named ranges...Many refer to entire columns. It also employs SUMPRODUCT against those huge ranges, just to return one value. It's no surprise that the workbook is so sluggish.

    I would have taken a completely different approach, using Excel Tables, structured table references, INDEX/MATCH combinations, and helper columns.
    I attached an edited version of your workbook that uses those methods and seems to be very responsive.
    QUOTETEMPLATEMACRO_RON_v1a.xlsm

    Is that something you can work with and expand to suit your needs?
    (Let us know if you have questions about that approach.)
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    06-16-2014
    Location
    United States
    MS-Off Ver
    Home 2010
    Posts
    122

    Re: Extremely slow workbook and complex formulas

    I see. I dont have much choice over formatting so I have to keep it as it is.

    Where is Table1?

  4. #4
    Forum Contributor
    Join Date
    06-16-2014
    Location
    United States
    MS-Off Ver
    Home 2010
    Posts
    122

    Re: Extremely slow workbook and complex formulas

    Nevermind I understand now. Problem is, the supplier quote sheet is sent to suppliers, so I have to hide the helper column. Works great otherwise! Thank you!

    It is displaying 0's where I need blanks, though. That will confuse the supplier. How do I make them blank?
    Last edited by gaker10; 07-25-2014 at 09:23 PM.

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Extremely slow workbook and complex formulas

    1) You could hide the helper column
    - The reason I used the helper column is: most of the other formulas use an INDEX function. The helper cells calculate the RowRef for the INDEX function one time...instead of once per formula.

    2) If you use a custom number format, you can hide zero results:
    • Select the range to be formatted
    • CTRL+1...Number tab
    ...Category: Custom
    ...Type: 0;-0;"";@
    ...Click: OK

    Does that help?

    (There are many other efficiencies you could include in your workbook, but I tried to just hit some of the worst offenders.)

  6. #6
    Forum Contributor
    Join Date
    06-16-2014
    Location
    United States
    MS-Off Ver
    Home 2010
    Posts
    122

    Re: Extremely slow workbook and complex formulas

    Sure does! Thank you!

    Just for clarification, what does that format actually say or mean? 0;-0;"";@

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Extremely slow workbook and complex formulas

    Custom formats have 4 standard sections:
    Pos_nums; Neg_nums; Zeros; Text

    This one: 0;-0;"";@
    indicates:
    If Postitive: Display all digits before the decimal
    If Negative: Display a minus sign and all digits before the decimal
    If Zero: Display empty text
    If Text: Display the text

  8. #8
    Forum Contributor
    Join Date
    06-16-2014
    Location
    United States
    MS-Off Ver
    Home 2010
    Posts
    122

    Re: Extremely slow workbook and complex formulas

    Awesome Good stuff. Thank you!

+ 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. Excel gets extremely slow adding formulas
    By Hang Glider in forum Excel General
    Replies: 2
    Last Post: 01-17-2012, 05:19 PM
  2. Macro Tied to Complex Nested If Statement Extremely Inefficient/Slow - HELP
    By Umann51 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2011, 04:34 PM
  3. FileCopy extremely slow
    By Idiot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2008, 12:10 AM
  4. EXTREMELY slow toolbars?
    By Maury Markowitz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2006, 11:20 AM
  5. [SOLVED] Workbook is now Extremely Slow
    By Dmorri254 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-03-2005, 02:19 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