Home

What causes Excel to use excessive CPU time and generate an 'Excel not responding' msg w/each entry?

%3CLINGO-SUB%20id%3D%22lingo-sub-765413%22%20slang%3D%22en-US%22%3EWhat%20causes%20Excel%20to%20use%20excessive%20CPU%20time%20and%20generate%20an%20'Excel%20not%20responding'%20msg%20w%2Feach%20entry%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-765413%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20LOOKUP%20table%20with%20~%201500%20x%2010%20elements.%26nbsp%3B%20It%20contains%20a%20list%20of%20foods%20and%20all%20the%20nutritional%20factors%20for%20each.%26nbsp%3B%20The%20next%20worksheet%20is%20used%20to%20track%20food%20consumption%20by%20entering%20the%20food%20name.%26nbsp%3B%20This%20triggers%20the%20LOOKUP%20pulling%20in%20the%20nutrition%20info.%26nbsp%3B%20A%20serving%20size%20factor%20then%20adjusts%20the%20serving%20size%20nutritional%20factors%20based%20on%20the%20portion%20size%20to%20show%20what%20was%20consumed.%26nbsp%3B%20I%20track%20this%20daily%20so%20each%20day%20has%20a%20list%20of%20%3CSPAN%3E10%20-%2020%3C%2FSPAN%3Eitems%20consumed.%26nbsp%3B%20These%20values%20are%20accumulated%20for%20daily%2C%20weekly%20and%20quarterly-average%20totals.%26nbsp%3B%20After%20a%20quarter%20the%20number%20of%20elements%20%2F%20LOOKUPS%20%2Fcalculations%20will%20top%2015%2C000.%26nbsp%3B%20After%20that%20Excel%20starts%20to%20slow%20significantly.%26nbsp%3B%20When%20I%20go%20to%20add%20another%20food%20LOOKUP%2C%20I%20get%20the%20cycling%20circle%20and%20when%20I%20look%20at%20Task%20Manager%20it%20shows%20Excel%20as%20'not%20responding'.%26nbsp%3B%20it%20start%20taking%20several%20seconds%20to%20accept%20and%20calculate%20the%20last%20entry%20and%20when%20I%20get%20to%20a%202nd%20calendar%20quarter%20it%20can%20take%20minutes.%26nbsp%3B%20I've%20broken%20the%20workbooks%20to%20individual%20quarters%20but%20have%20the%20same%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAm%20I%20just%20expecting%20too%20much%20from%20Excel's%20ability%20to%20do%20the%20LOOKUPs%20and%20do%20all%20the%20calculations%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123886i73A4A6EB6D20CB1F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Annotation%202019-07-19%20134237.jpg%22%20title%3D%22Annotation%202019-07-19%20134237.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-765413%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-765789%22%20slang%3D%22en-US%22%3ERe%3A%20What%20causes%20Excel%20to%20use%20excessive%20CPU%20time%20and%20generate%20an%20'Excel%20not%20responding'%20msg%20w%2Feach%20en%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-765789%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F379203%22%20target%3D%22_blank%22%3E%40RichL579%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20some%20tips%20that%20you%20can%20follow%20to%20speed%20up%20the%20lookup%20functions%20calculations%20and%20prevent%20the%20workbook%20from%20crashing.%3C%2FP%3E%3CP%3EOne%20of%20them%20is%20to%20use%20the%2064-bit%20version%20of%20Excel%2C%20especially%2C%20if%20you%20have%20a%20huge%20number%20of%20lookups%20in%20the%20workbook.%3C%2FP%3E%3CP%3ECould%20you%20provide%20a%20sample%20of%20your%20workbook%20and%20formulas%20to%20see%20how%20we%20can%20help%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-765843%22%20slang%3D%22en-US%22%3ERe%3A%20What%20causes%20Excel%20to%20use%20excessive%20CPU%20time%20and%20generate%20an%20'Excel%20not%20responding'%20msg%20w%2Feach%20en%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-765843%22%20slang%3D%22en-US%22%3EAnother%20possibility%20is%20that%20your%20lookups%20might%20be%20using%20volatile%20functions%2C%20such%20as%20OFFSET%20and%20INDIRECT.%20Avoid%20them%2C%20if%20possible.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-765936%22%20slang%3D%22en-US%22%3ERe%3A%20What%20causes%20Excel%20to%20use%20excessive%20CPU%20time%20and%20generate%20an%20'Excel%20not%20responding'%20msg%20w%2Feach%20en%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-765936%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F35679%22%20target%3D%22_blank%22%3E%40Haytham%20Amairah%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20are%20the%202%20sprdshts%20I%20am%20currently%20using.%26nbsp%3B%20One%20holds%20the%20nutrition%20data%20that%20the%20LOOKUP%20checks%20when%20I%20add%20a%20new%20entry%20to%20the%20nutrition%20log.%26nbsp%3B%20The%20other%20is%20the%20nutrition%20log%20that%20accumulates%20the%20info.%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-765937%22%20slang%3D%22en-US%22%3ERe%3A%20What%20causes%20Excel%20to%20use%20excessive%20CPU%20time%20and%20generate%20an%20'Excel%20not%20responding'%20msg%20w%2Feach%20en%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-765937%22%20slang%3D%22en-US%22%3ESorry%20for%20the%20naming%20confusion.%20I'm%20still%20working%20on%20these%20and%20have%20renamed%20them%20from%20food%20consumption%20to%20nutrition.%20The%20ones%20listed%20above%20are%20the%20files%20that%20I%20am%20trying%20to%20'fix'.%20No%20luck%20yet.%20I%20don't%20see%20any%20errors%20but%20am%20probably%20not%20looking%20at%20the%20right%20stuff.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-765950%22%20slang%3D%22en-US%22%3ERe%3A%20What%20causes%20Excel%20to%20use%20excessive%20CPU%20time%20and%20generate%20an%20'Excel%20not%20responding'%20msg%20w%2Feach%20en%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-765950%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F379203%22%20target%3D%22_blank%22%3E%40RichL579%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20workbooks%20are%20works%20on%20my%20machine%20without%20any%20crash%20or%20slowness!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EI%20think%20the%20reason%20is%20that%20I%20have%20the%2064-bit%20version%20of%20Excel!%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20the%20other%20hand%2C%20if%20you%20have%20the%20latest%20version%20of%20Office%20365%2C%20consider%20using%20VLOOKUP%20instead%20of%20LOOKUP%20because%20VLOOKUP%20got%20a%20huge%20boost%20in%20its%20performance%20as%20I%20think%20that%20the%20old%20LOOKUP%20doesn't%20take%20advantage%20from%20the%20latest%20update!%3C%2FP%3E%3CP%3EPlease%20check%20out%20this%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FExcel-Blog%2FExcel-performance-improvements-now-take-seconds-running-Lookup%2Fbc-p%2F765941%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Elink%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-765955%22%20slang%3D%22en-US%22%3ERe%3A%20What%20causes%20Excel%20to%20use%20excessive%20CPU%20time%20and%20generate%20an%20'Excel%20not%20responding'%20msg%20w%2Feach%20en%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-765955%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EOK%2C%20thanks%20for%20the%20feedback.%26nbsp%3B%20I'll%20move%20to%20the%2064%20bit%20version.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-766013%22%20slang%3D%22en-US%22%3ERe%3A%20What%20causes%20Excel%20to%20use%20excessive%20CPU%20time%20and%20generate%20an%20'Excel%20not%20responding'%20msg%20w%2Feach%20en%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-766013%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F379203%22%20target%3D%22_blank%22%3E%40RichL579%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%2C%20get%20rid%20of%20the%20numerous%20conditional%20formatting%20rules.%3C%2FP%3E%3CP%3ESecond%2C%20get%20rid%20of%20the%20unnecessary%20rows%20with%20formulas.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESeparate%20data%20input%20from%20calculation%20and%20reporting.%3C%2FP%3E%3CP%3E%3CSTRONG%3EDo%20not%3C%2FSTRONG%3Eput%20data%20input%20on%20more%20than%20one%20sheet%20(e.g.%20one%20sheet%20for%20each%20month%2Fquarter%2Fyear).%3C%2FP%3E%3CP%3EUse%20Excel%20tables.%3C%2FP%3E%3CP%3EUse%20Pivot%20to%20do%20the%20reporting%3C%2FP%3E%3CP%3EUse%20Power%20Query%20to%20the%20the%20calculation%20and%2For%20reporting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
RichL579
New Contributor

I have a LOOKUP table with ~ 1500 x 10 elements.  It contains a list of foods and all the nutritional factors for each.  The next worksheet is used to track food consumption by entering the food name.  This triggers the LOOKUP pulling in the nutrition info.  A serving size factor then adjusts the serving size nutritional factors based on the portion size to show what was consumed.  I track this daily so each day has a list of 10 - 20 items consumed.  These values are accumulated for daily, weekly and quarterly-average totals.  After a quarter the number of elements / LOOKUPS /calculations will top 15,000.  After that Excel starts to slow significantly.  When I go to add another food LOOKUP, I get the cycling circle and when I look at Task Manager it shows Excel as 'not responding'.  it start taking several seconds to accept and calculate the last entry and when I get to a 2nd calendar quarter it can take minutes.  I've broken the workbooks to individual quarters but have the same problem.

 

Am I just expecting too much from Excel's ability to do the LOOKUPs and do all the calculations?

 

Annotation 2019-07-19 134237.jpg

7 Replies

@RichL579

 

Hi,

 

There are some tips that you can follow to speed up the lookup functions calculations and prevent the workbook from crashing.

One of them is to use the 64-bit version of Excel, especially, if you have a huge number of lookups in the workbook.

Could you provide a sample of your workbook and formulas to see how we can help?

Another possibility is that your lookups might be using volatile functions, such as OFFSET and INDIRECT. Avoid them, if possible.

@Haytham Amairah 

Attached are the 2 sprdshts I am currently using.  One holds the nutrition data that the LOOKUP checks when I add a new entry to the nutrition log.  The other is the nutrition log that accumulates the info.  

Sorry for the naming confusion. I'm still working on these and have renamed them from food consumption to nutrition. The ones listed above are the files that I am trying to 'fix'. No luck yet. I don't see any errors but am probably not looking at the right stuff.

@RichL579

 

Hi,

 

The workbooks are works on my machine without any crash or slowness!

I think the reason is that I have the 64-bit version of Excel!

 

On the other hand, if you have the latest version of Office 365, consider using VLOOKUP instead of LOOKUP because VLOOKUP got a huge boost in its performance as I think that the old LOOKUP doesn't take advantage from the latest update!

Please check out this link.

 

Hope that helps

OK, thanks for the feedback.  I'll move to the 64 bit version.

@RichL579 

First, get rid of the numerous conditional formatting rules.

Second, get rid of the unnecessary rows with formulas.

 

Separate data input from calculation and reporting.

Do not put data input on more than one sheet (e.g. one sheet for each month/quarter/year).

Use Excel tables.

Use Pivot to do the reporting

Use Power Query to the the calculation and/or reporting.

 

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Edge insider Dev bypasses IE mode website list
HotCakeX in Enterprise on
4 Replies