+ Reply to Thread
Results 1 to 31 of 31

Discover what threads are being calculated in a slow workbook.

  1. #1
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Discover what threads are being calculated in a slow workbook.

    I've just reduced my workbook by over 50% and removed all conditional formatting but it is still very slow. Entering data in one of three cell brings up "Calculating 4 threads". Is there anyway of discovering which four threads its looking at?
    Last edited by Marvo; 01-01-2021 at 05:29 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Discover what threads are being calculated in a slow workbook.

    Do any of the formulae use full column references? Do any use volatile functions such as OFFSET and INDIRECT?

    I think the message simply means that all four cores are being used to process the data, but I know no way of determining which formulae are causing that.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    Okay. I got rid of the offset I could find and Glenn helped me with limiting full column references. It never used to be slow and it only seems to be these three cells where the problem lie, others parts of the workbook update instantly. I spent the morning reducing the size in the hope that would help, got rid of a lot of formula but to no avail. Oh well, I guess I'll have to put up with it. I suppose I could move to manual calculation rather than automatic. At least then the three cells should calculate together. Thanks anyway.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Discover what threads are being calculated in a slow workbook.

    OK - so tell us what is in those three cells, please. If it's manually entered data, then it's not those cells: it's formulae feeding off of them.

  5. #5
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    It's the latter. I need to discover what feeding off them and whether I need that to happen. If I switch to manual it takes about the same time to do all three as it does on each automatically.

    One odd thing. When you place something in a cell and press enter, it doesn't complete until the calculation is done though it doesn't show its doing a calculation. However if you place something in the cell, then click on another cell it then shows you the calculation taking place. I don't know whether that means anything?

    I wish I could remember when the change first happened, that might tell me what slowed the workbook down. I did have some VBA put in but the chap told me it couldn't be to do with that.

  6. #6
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    I have found a whole bunch of OFFSET and they all refer to the three columns in question, J,K & L on the All page. The OFFSET is on the managers page in the red box. Could I use a different formula to achieve the same results?

    I'm not sure this will speed up the workbook but worth a try.

    As an aside, to reduce the workbook to put on here I cleared a lot of data and it hardly reduced at all. I then cleared a large block than had hardly any data in it and it reduced substantially. Doesn't make much sense?
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    Those will definitely slow things up. To streamline it, the name and years should best be in different cells. can I separate them?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    Just to add to my last paragraph there. Earlier today I reduced a block of 20 columns which had 324,240 cells with formula to less than 1,000. That reduced my workbook from just under 4000KB to 1872KB. I just experimented and deleted the 20 columns with just the 1000 cells left with formula and the workbook reduced in size to 713KB. Anybody give me an explanation for that?

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    The formula was giving you incorrect results, in anuy event.

    I'll just leave the names the way they are. it'll make little difference.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Discover what threads are being calculated in a slow workbook.

    Nope - not without knowing EXACTLY what you deleted.

    Please answer Glenn's question above.

  11. #11
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    Quote Originally Posted by Glenn Kennedy View Post
    Those will definitely slow things up. To streamline it, the name and years should best be in different cells. can I separate them?
    Sure, its there tenure. That can be in a separate column.

  12. #12
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    Quote Originally Posted by Glenn Kennedy View Post
    The formula was giving you incorrect results, in any event.
    That's frightening.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    Here you go. No idea if it's qucker, bu the OFFSETS are gone.
    Attached Files Attached Files

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    Quote Originally Posted by Glenn Kennedy View Post
    The formula was giving you incorrect results, in anuy event.

    I'll just leave the names the way they are. it'll make little difference.
    I checked a few before/afters and they were miles out.

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    I am a great believer in double checking. For example, in an situation like this, I'd always add up the column total and check it against total number of wins, etc, and have the two values (calculated from the table and from the raw data) in adjacent cells to act as a visual stimulus.

  16. #16
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    Thanks Glenn, I'll transfer the formula to my workbook and see whether it helped with speed. I'll get back to you.

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    Don't do anything yet!!!

    There are loads of errors on that page.

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    There are quite a few managers who do not appear in that red table.

    Why?

  19. #19
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    I think a misunderstanding of what the table is doing.

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    OK.

    1. There is a spelling mistake in AJ23.

    2. How do you want me to distinguish between D Bowens 2 periods at the top. There is no column in ALL exactly corresponding to NAME (period in charge)

  21. #21
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    The OFFSETS are gone. However, I still need an answer wrt Mr Bowens, before this is complete.
    Attached Files Attached Files

  22. #22
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    The other formula referred to each managers first game in charge, then worked down from that point. As Dave Bowen managed the team twice he had two starting points. That is maybe is why OFFSET was used in the first place? As we are now using MATCH I guess I'll need to refer to Dave Bowen as maybe 1 & 2. I'll have to have a think about it.

  23. #23
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    Possibly so... I had nothing to do with that. I avoid OFFSET, INDIRECT, etc, if at all possible.

  24. #24
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    It's a tricky one as another table refers to Dave Bowen in his entirety, so counts all his games from both spells. I'll come up with something. Thanks for the help Glenn, it will be interesting to see if the workbook quickens up.

  25. #25
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    Okay, the solution I came up with was to change all the formula in the table to yours Glenn EXCEPT the second Dave Bowen which I've left as the one OFFSET formula in the workbook. It's the best I could come up with. However after all that work, it has not speeded up the workbook one iota. I'm going to have to do some more experimentation to try and discover what is slowing it down. I think the answer lies in my post at 3:17pm.

  26. #26
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    No, its not that. Deleted those columns (which reduced the entire workbook to just 713KB) but still hasn't had any affect on the speed of the calculations. I'm at a loss now.

  27. #27
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Discover what threads are being calculated in a slow workbook.

    You have a lot of stuff going on. So as you add more stuff, it will get slower. The only other suggestion (you won't like it...) is that every time you add a row, the whole thing recalculates. The formulae in your search tables could be modified to =IF(searchterm="","",formula) and the search term cell left BLANK.

    This would stop them calculating every time a new row is added. They would only calculate when a search term was selected. This may help, but whether it would help enough....

    Anyway, I have had enough for today. See you next year.

    G.

  28. #28
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    Happy New Year. Have a good one.

  29. #29
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990
    Well I got changed every formula that looked at entire rows and still the workbook is slow. I think I've give up.

  30. #30
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,872

    Re: Discover what threads are being calculated in a slow workbook.

    So many variations within the thread that it is difficult to know what you are currently working with.

    One thing I see in both your file (post #6) and Glen's file (post #21) is multiple copies of the exact same slow linear "exact match" lookup. In the post #6 file, I see this in managers columns X:AF. In Glen's file, I see it in the INDEX(...MATCH(...)) formulas that define the counting/summing ranges of managers AL21:AP35. Exact match lookups are notoriously slow even though they are quite common. I would recommend seeking ways to improve your lookup/search strategy:

    1) Can you sort any of your lookup tables? Binary "approximate match" lookups are much faster.
    2) Can you move the "lookup" MATCH() part of your function into a helper cell? Then your spreadsheet will only need to perform the lookup step once, and have multiple INDEX() functions that reference the one lookup function (example here and someone put it in a spreadsheet in post 13: https://www.excelforum.com/excel-for...ml#post4041181 ).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  31. #31
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: Discover what threads are being calculated in a slow workbook.

    Hi All, Well I'm going to mark this as solved because I've carried on "tidying things up" as at some point everything has got back to normal, instant calculations. Unfortunately i have no idea which was the fateful move that did it so this is not going to be much help to anybody. I will say though it "felt" to me more like a conflict problem more than just sheer amount of formula, Excel was struggling with something, I just didn't know what. Anyway thanks for everybody who tried to help and MrShorty, I didn't receive notification of your post so have only just seen it and despite the problem being "solved" will look into what you say.

+ 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. [SOLVED] My Excel file is working slow calculating 2 threads with complex formula.
    By ahsan.masood1980 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-18-2020, 08:06 AM
  2. Replies: 0
    Last Post: 10-06-2020, 11:23 AM
  3. Replies: 11
    Last Post: 02-27-2017, 08:02 AM
  4. Pivot Calculated Item Slow
    By KAC1979 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-03-2016, 04:37 PM
  5. Pivot - Slow calculated items
    By Krones in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 05-30-2014, 04:40 PM
  6. [SOLVED] Slow sheet (I have tried every suggestion in previous threads/google!)
    By jdrunbike in forum Excel General
    Replies: 3
    Last Post: 02-19-2014, 04:32 PM
  7. [SOLVED] Slow update of forum threads?
    By Alf in forum The Water Cooler
    Replies: 4
    Last Post: 11-04-2012, 03:10 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