+ Reply to Thread
Results 1 to 17 of 17

Excel keeps calculating - no idea why?

  1. #1
    Registered User
    Join Date
    09-02-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 2016
    Posts
    11

    Excel keeps calculating - no idea why?

    Hi all


    I have an issue that Excel keeps calculating for a long time.
    Not that long, like 15 seconds, but way to long to work fluently with this file.
    Also clicking cells and pushing enter after I filled in something seems to go slow.

    I really tried to remove lots of things and change formulas and so on but nothing helps.
    I'm also working with a similar file already so lots of formulas are based on that file and there it's working perfectly.

    Pic 1: Planning where you can fill in an article number and data should appear immediately, the second error is for the amount.
    Pic 2: This appears on the production tab.
    Pic 3: Tab 'Deliveries in' if somethin' gets delivered (fill in manually).
    Pic 4: Result of those tabs together to follow up stocks.

    Excel file as well as an attachment.

    If somebody would be able to help me I would be really grateful.

    Thanks a lot already.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,703

    Re: Excel keeps calculating - no idea why?

    My first thought is the large number of INDIRECT function calls (Production sheet). If you are not aware of it INDIRECT is volatile and too many of them will slow performance.

    If you would like to know more about volatility see if this article is helpful. Volatility
    Dave

  3. #3
    Registered User
    Join Date
    09-02-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel keeps calculating - no idea why?

    I agree that it seems logic to think that the indirect functions are creating this issue but in the previous file this was one of the things that were already included and there it's running really smooth...
    That's why I think it's something else that I can't find.

    + If I would like to work with something else than those indirect functions, do you see any possibilities in the file?

    Thanks.
    Last edited by AliGW; 04-27-2021 at 04:08 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Excel keeps calculating - no idea why?

    Did you have 18000 SUMIFS formulas using INDIRECT in the other version?
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,649

    Re: Excel keeps calculating - no idea why?

    Try to delete 90% of indirect function in that sheet (may be, from column F to end right columns) to see if it is faster.
    Quang PT

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Excel keeps calculating - no idea why?

    In you wk01 sheet you have lots of array formulas in col M and N. Formulas like =IFERROR(INDEX(ARTICLES!$D$9:$D$88;MATCH(I6;ARTICLES!$A$9:$A$88;0);0);"") do not need to be array entered

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,649

    Re: Excel keeps calculating - no idea why?

    ...and store repeated formulas under user name define, may help to increase the calculation speed

    for example

    Stay at cell I6, Ctrl-F3
    name : "Something":
    =IFERROR(INDEX(ARTICLES!$D$9:$D$88;MATCH(I6;ARTICLES!$A$9:$A$88;0);0);"")

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Excel keeps calculating - no idea why?

    In the "production sheet" amend your formula in C14 as follows
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    amend other cells as required (pull down and right)

    By adding
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to exclude all non number strings,calcs seem to be faster

    Don't forget to replace semi colons and the \ with commas if needed

    (It still takes ages to load or save...)
    Attached Files Attached Files
    Last edited by Pepe Le Mokko; 04-27-2021 at 05:49 AM.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Excel keeps calculating - no idea why?

    In the production sheet are you often changing the values in column B . If it is often not changed ( once in a way ok) we can use work sheet event to put formulas in the range, where you are now using iINDIRECT formulas , without INDIRECT function. It avoids delay . if values in Col B is changed worksheet event will change required formulas automatically.
    If you are ready to experiment on a copied file I will give code.
    Last edited by kvsrinivasamurthy; 04-27-2021 at 10:26 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Registered User
    Join Date
    09-02-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel keeps calculating - no idea why?

    Quote Originally Posted by bebo021999 View Post
    Try to delete 90% of indirect function in that sheet (may be, from column F to end right columns) to see if it is faster.
    This doesn't help.

  11. #11
    Registered User
    Join Date
    09-02-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel keeps calculating - no idea why?

    Quote Originally Posted by Pepe Le Mokko View Post
    In you wk01 sheet you have lots of array formulas in col M and N. Formulas like =IFERROR(INDEX(ARTICLES!$D$9:$D$88;MATCH(I6;ARTICLES!$A$9:$A$88;0);0);"") do not need to be array entered
    Can you explain a little more or make an example formula?
    As English is not my native language I'm a bit struggling what you're meaning with array entered.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,781

    Re: Excel keeps calculating - no idea why?

    I changed ALL the formulae in "Production" to fixed (i.e. not INDIRECT) formulae and then simply copied the sheet. There was no delay.

    Doing the same exercise with the "Production" INDIRECT formula: the delay was significant as Excel recalculated.

    So my conclusion is that the prime cause of the performance problems IS the use of INDIRECT.

  13. #13
    Registered User
    Join Date
    09-02-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel keeps calculating - no idea why?

    Quote Originally Posted by kvsrinivasamurthy View Post
    In the production sheet are you often changing the values in column B . If it is often not changed ( once in a way ok) we can use work sheet event to put formulas in the range, where you are now using iINDIRECT formulas , without INDIRECT function. It avoids delay . if values in Col B is changed worksheet event will change required formulas automatically.
    If you are ready to experiment on a copied file I will give code.
    Can you change in file and upload? Thanks!

  14. #14
    Registered User
    Join Date
    09-02-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel keeps calculating - no idea why?

    Other mentioned tips didn't solve the issue unfortunately....

  15. #15
    Registered User
    Join Date
    09-02-2020
    Location
    Amsterdam
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel keeps calculating - no idea why?

    Quote Originally Posted by JohnTopley View Post
    I changed ALL the formulae in "Production" to fixed (i.e. not INDIRECT) formulae and then simply copied the sheet. There was no delay.

    Doing the same exercise with the "Production" INDIRECT formula: the delay was significant as Excel recalculated.

    So my conclusion is that the prime cause of the performance problems IS the use of INDIRECT.
    Yes, you're right. If you remove ALL indirect it's solved (in the past I always removed most of the formula but never in ALL cells). The weird thing is that this function was already included in my previous file. So I must have changed something, will check again.
    If you see the issue in it, please inform.

    Thanks a lot, that's already one step further.

  16. #16
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Excel keeps calculating - no idea why?

    Here is the file with VBA code for macro "ApplyFormula()" and Worksheet_Change event for "PRODUCTION" sheet.

    Macro is given to refresh all formulas in PRODUCTION sheet if required.
    Worksheet event changes the formula in the row in which B column value is changed. Say B25 is changed then 25th row all formulas are changed automatically.

    In both the codes last column is taken as AZ. If you want you can change in the code.
    Now the delay due to calculation is not there as indirect formulas are removed.

    Worksheetevent

    To paste the code
    Right click on Sheet tab --> view code
    Visual Basic (VB) window opens.
    Paste the code
    Close the VB window.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 04-29-2021 at 12:48 AM.

  17. #17
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Excel keeps calculating - no idea why?

    Have you even tried my suggestion in post #8 ?

+ 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. Any idea how to build in Excel a correlations cylinder, or circle?
    By galkas in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-04-2018, 06:25 AM
  2. Idea for excel appliction
    By behedwin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2017, 11:35 AM
  3. Help with Excel idea
    By prescotmunn in forum Excel General
    Replies: 1
    Last Post: 03-15-2016, 02:41 PM
  4. Excel...I had no idea...
    By lawlegge in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-20-2013, 08:33 PM
  5. Excel for noobs. No idea where to start...
    By dynastyss in forum The Water Cooler
    Replies: 4
    Last Post: 10-10-2012, 10:49 AM
  6. Beautiful Visualization Idea - Can excel do it?
    By saltcod in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2008, 12:30 PM
  7. Replies: 0
    Last Post: 05-21-2006, 08:30 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