+ Reply to Thread
Results 1 to 10 of 10

Which Formulas are Slowing Down my Sheet?

Hybrid View

  1. #1
    Registered User
    Join Date
    05-11-2016
    Location
    Liberty Lake, Washington
    MS-Off Ver
    2010
    Posts
    79

    Which Formulas are Slowing Down my Sheet?

    Hello, I've been working on multiple Excel sheets with their own Pivot Tables and Dashboards. One sheet in particular is quite slow...

    It takes 45 seconds to load - bottom corner says Calculating (4 Processors).

    Unfortunately it contains a lot of sensitive information so I will detail the formulas used and give you an idea of how many times they are done:

    x672 cells:
    =IFERROR(VLOOKUP("2015-01",'K:\Profit Reports\[Monthly Profit Report.xlsx]IndivSalesBySalesperson'!$A:$B,2,FALSE),0)
    x1855 rows containing the following cells:
    x12 standard data entry
    x6 data validation dropdown
    =IFERROR(VLOOKUP(A1860,'K:\Profit Reports\[Monthly Profit Report.xlsx]TotalsByQuote'!$A:$B,2,FALSE),"No Data")
    =IFERROR(VLOOKUP(A1860,'K:\Profit Reports\[Monthly Profit Report.xlsx]TotalsByQuote'!$A:$D,4,FALSE),"No Data")
    =IFERROR(VLOOKUP(A1860,'K:\Profit Reports\[Monthly Profit Report.xlsx]TotalsByQuote'!$A:$E,5,FALSE),"No Data")
    =[@[Reason Lost]]
    =IFERROR(IF([@[Date In]]="","1999-01",TEXT([@[Date In]],"yyyy-mm")),"1/1/1999")
    =IFERROR(TEXT([@[First Ship Date]],"yyyy-mm"),"")
    =[@Status]
    =[@[Acquisition Likelihood]]>0.49
    =[@[Acquisition Likelihood]]>0.59
    =[@[Acquisition Likelihood]]>0.69
    =[@[Acquisition Likelihood]]>0.79
    =[@[Acquisition Likelihood]]>0.89
    =[@[Acquisition Likelihood]]=1
    =IFERROR(VLOOKUP(A1858,'K:\Profit Reports\[Monthly Profit Report.xlsx]TotalsByQuote'!$H:$I,2,FALSE),DATEVALUE("1/1/1999"))
    =TEXT([@[Contract Date]],"yyyy-mm")
    There you go... hoping some of you might be able to notice something off the top of your head that I am doing wrong and causing too much calculation time.
    I do have everything set to automatic updates because it is a shared document and the other users will not learn how/remember to do manual calculations.
    Thank you in advance for the help!

  2. #2
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: Which Formulas are Slowing Down my Sheet?

    Hi HWScott,

    Potentially the ranges in your vlookup formulas as they reference entire columns rather than defined ranges.

    Regards,

    Snook

  3. #3
    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,196

    Re: Which Formulas are Slowing Down my Sheet?

    I would have thought the Table references would be OK. Generally speaking, it's best to avoid full column references although VLOOKUP always seems to cope with them. I suspect the problem may relate to the external workbook ... which is perhaps why you have the full column references. Presumably, the fact that the workbook location is fully qualified means the workbook is closed? Does the workbook operate more quickly if it is opened?
    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


  4. #4
    Registered User
    Join Date
    05-11-2016
    Location
    Liberty Lake, Washington
    MS-Off Ver
    2010
    Posts
    79

    Re: Which Formulas are Slowing Down my Sheet?

    The_Snook, thank you. Now that you mention it, I do remember that rule of thumb. What do you recommend? Creating dynamic named ranges? Or is there a way to say "look in this row as far as the table it is in extends"?

    TMS, I think you are on to something. Yes, I just tried opening this sheet with the source sheet open and it loaded instantly. Is there anything that can be done to increase the speed with the source workbook closed?

    My thanks to you both for the help so far!

  5. #5
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Which Formulas are Slowing Down my Sheet?

    Quote Originally Posted by HWScott View Post
    The_Snook, thank you. Now that you mention it, I do remember that rule of thumb. What do you recommend? Creating dynamic named ranges? Or is there a way to say "look in this row as far as the table it is in extends"?
    If you create a named range based on column(s) in the table, that range will always extend to the last row of the table. Useful for data validation lists too
    Excel is a constant learning process and it's great to help each other. If any of us have helped you today, a click on the "reputation" star on the left is appreciated.

  6. #6
    Registered User
    Join Date
    05-11-2016
    Location
    Liberty Lake, Washington
    MS-Off Ver
    2010
    Posts
    79

    Re: Which Formulas are Slowing Down my Sheet?

    Quote Originally Posted by shirleyxls View Post
    If you create a named range based on column(s) in the table, that range will always extend to the last row of the table. Useful for data validation lists too
    Aha, very good to know.

    What about for pivot tables? I realized that in order to make a dynamic named range for pivot tables, I end up using a helper cell that references an entire column anyway... COUNTA(A:A)-3... minus 3 for the pivot report filter, column title and grand total. That gives me the dynamic figure that I put in my OFFSET named range formula to know how far to go down. So if I'm using a full column reference anyway, I don't think I'm speeding anything up.

    Thanks!

  7. #7
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Which Formulas are Slowing Down my Sheet?

    Funnily enough, there's a discussion going on in another thread about IFERROR formulas, so that might also be a cause worth investigating.

    http://www.excelforum.com/excel-form...o-iferror.html

    This user is noticing a significant difference in performance so if you have IFERROR formulas combined with LOOKUPS to other workbooks that could be double trouble

  8. #8
    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,196

    Re: Which Formulas are Slowing Down my Sheet?

    Is there anything that can be done to increase the speed with the source workbook closed?
    Not that I can think of off the top of my head.

  9. #9
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Which Formulas are Slowing Down my Sheet?

    Never tried it with pivot tables I must admit

    OFFSET is a volatile formula anyway so it's probably not much different performance wise whichever way you do it.

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

    Re: Which Formulas are Slowing Down my Sheet?

    COUNT, COUNTA, etc., are fine. They're optimised and can cope with full column references. OFFSET though is volatile and I would recommend using INDEX instead.

+ 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. forum slowing down again?
    By FDibbins in forum The Water Cooler
    Replies: 3
    Last Post: 02-21-2014, 04:34 PM
  2. Why this code is slowing down
    By TheMaciej in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2013, 01:11 AM
  3. Find slowing down
    By dingdongsilver in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2012, 03:36 PM
  4. Calculate slowing sheet
    By antony moseley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2010, 05:19 AM
  5. slowing down a macro for calculations
    By pete_22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2009, 12:06 AM
  6. SUMPRODUCT formulas slowing worksheet significantly
    By Jason_2112 in forum Excel General
    Replies: 4
    Last Post: 01-22-2009, 12:25 PM
  7. [SOLVED] Slowing Down a Macro
    By tedd13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2006, 04:15 PM
  8. slowing down
    By nowfal in forum Excel General
    Replies: 3
    Last Post: 03-28-2006, 08:33 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