Home

Excel - Long Lag on Data Entry

%3CLINGO-SUB%20id%3D%22lingo-sub-877984%22%20slang%3D%22en-US%22%3EExcel%20-%20Long%20Lag%20on%20Data%20Entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-877984%22%20slang%3D%22en-US%22%3E%3CP%3EGreetings%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20195MB%20workbook%20with%207%20worksheets.%26nbsp%3B%20The%20only%20data%20entry%20cells%20are%20on%201st%20sheet%2C%20about%2050%20cells.%20My%20problem%20is%20that%20there%20is%20a%2010-12%20second%20delay%20on%20entry%20to%20any%20one%20of%20these%20cells.%20Calculations%20time%20is%20only%202-3%20seconds%2C%20which%20is%20acceptable%20to%20me.%20I've%20set%20to%20Manual%20Calcs%2C%20I've%20removed%20all%20conditional%20formats%3B%20in%20fact%20I've%20cleared%20all%20formatting%20for%20the%20other%206%20sheets%2C%20with%20only%20some%20bolding%20and%20merged%20cells%20on%20sheet1.%26nbsp%3BI've%20disabled%20all%20excel%20and%20com%20add-ins.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStrange%20too%2C%20is%20that%20occasionally%20I%20can%20get%20immediate%20response%20when%20entering%2C%20meaning%20I%20can%20move%20to%20new%20entry%20cell.%20But%20if%20I%20were%20to%20delete%20the%20value%20from%20that%20cell%20the%20workbook%20will%20hang%20for%2010%2B%20seconds.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20at%20a%20loss%20here.%20Any%20help%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%20Art%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-877984%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-878267%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20-%20Long%20Lag%20on%20Data%20Entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-878267%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F416002%22%20target%3D%22_blank%22%3E%40alwise%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E195%20MB%20is%20a%20huge%20size%20for%20an%20Excel%20file.%20What's%20the%20reason%20of%20this%3F%3C%2FP%3E%3CP%3EIf%20you%20have%20only%2050%20cells%20for%20data%20entry%20on%20first%20sheet%2C%20what's%20there%20on%20other%206%20Sheets%3F%3C%2FP%3E%3CP%3EAre%20you%20having%20some%20formulas%20on%20other%20sheets%20which%20involve%20some%20kind%20of%20cell%20comparison%20or%20formulas%20which%20refers%20to%20whole%20columns%20or%20rows%3F%3C%2FP%3E%3CP%3EMaybe%20it's%20time%20for%20you%20to%20revise%20those%20formulas.%20If%20formulas%20are%20complex%2C%20make%20some%20helper%20columns%20and%20simplify%20the%20formulas.%3C%2FP%3E%3CP%3EAlso%2C%20select%20each%20sheet%20and%20press%20Ctrl%2BEnd%20to%20detect%20the%20last%20cell%20used%20and%20if%20you%20find%20that%20irrelevant%2C%20delete%20the%20unused%20blank%20rows%20and%20columns.%3C%2FP%3E%3CP%3EMake%20sure%20that%20you%20have%20not%20copied%20down%20the%20formulas%20to%20large%20number%20of%20rows.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20may%20also%20consider%20saving%20your%20file%20as%20binary%20file%20.xlsb%20to%20reduce%20the%20file%20size.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-879237%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20-%20Long%20Lag%20on%20Data%20Entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-879237%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394231%22%20target%3D%22_blank%22%3E%40Subodh_Tiwari_sktneer%3C%2FA%3E%26nbsp%3BThanks%20for%20your%20reply.%20I%20have%20saved%20as%20binary%20file%20and%20double-checked%20all%20used%20ranges.%20My%20formulas%20are%20very%20simple%2C%20and%20do%20not%20use%20sumifs%2C%20etc%20or%20refer%20to%20whole%20columns%20or%20rows.%20The%202nd%20thru%204th%20sheets%20are%20tables%20of%20helper%20columns%2C%20simple%20calcs.%20The%205th%20thru%207th%20sheets%20are%20essentially%20cartesian%20products%20of%20tables%20in%202~4%20referencing%20those%20helper%20cells%20directly.%20I%20did%20all%20matrix%20lookups%20in%20vba%20and%20hardcoded%20the%20appropriate%20cell%20references%20in%20these%20larger%20tables%205~7.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20don't%20believe%20calculations%20are%20the%20issue.%20After%20whatever%20is%20happening%20on%20data%20entry%20is%20done%20and%20I%20can%20again%20control%20movement%20to%20another%20cell%2C%20the%20calculations%20themselves%20take%20only%20a%20few%20seconds.%20Given%20the%20complexity%20of%20the%20application%20I%20find%20that%20acceptable.%20I%20have%20essentially%20built%20this%20is%20access%20as%20well%2C%20with%20the%20caresian%20product%20tables%20already%20defined.%20The%20queries%20to%20join%20these%20tables%20with%20'helper'%20tables%20providing%20data%20for%20calculations%2C%20which%20in%20this%20case%20must%20be%20done%20by%20the%20query%2C%20are%20much%20slower%20than%20can%20be%20done%20in%20excel.%3C%2FP%3E%3CP%3EIt's%20really%20only%20the%20data%20entry%20lag%20that%20has%20me%20concerned.%20Best%20debugging%20clue%20I%20can%20provide%20is%20that%201st%20entry%20after%20a%20full%20recalc%20will%20lag.%20I%20can%20then%20do%20multiple%20additional%20entries%20without%20issue.%20BUT%2C%20if%20I%20instead%20delete%20the%20value%20in%20the%20cell%20I'd%20just%20entered%2C%20I%20will%20experience%20the%20lag%20again.%3C%2FP%3E%3CP%3EThe%20workbook%20is%20large%20but%20formulas%20are%20not%20complex%20and%20books%20calcs%20quickly.%20There%20is%20something%20else%20causing%20this%20lag%20I%20believe.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-882896%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20-%20Long%20Lag%20on%20Data%20Entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-882896%22%20slang%3D%22en-US%22%3EHi%20folks%2C%20I%20think%20I%20understand%20what%20was%20causing%20the%20delay.%20It%20was%20a%20calc%20issue%20in%20a%20sense.%20While%20it's%20true%20that%20calcs%20only%20took%202-3%20seconds%2C%20the%20delay%20on%20data%20entry%20appears%20to%20have%20been%20the%20result%20of%20excel%20marking%20all%20dependent%20cells%20(which%20cascade%20across%20helper%20sheets)%20as%20dirty%2C%20i.e.%20smart%20calculation.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20workaround%20for%20me%20was%20using%20vba%20ActiveWorkbook.ForceFullCalculation%20%3D%20True%2C%20which%20turns%20smart%20calcs%20off.%20I%20then%20can%20enter%20values%20either%20manually%20or%20by%20vba%2C%20and%20the%20resulting%20calc%20time%20is%20still%20far%20less%20that%20the%20smart%20calc%20updates%20required%2C%20marking%20each%20dependent%20cell%20as%20dirty%20on%20data%20entry.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-883061%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20-%20Long%20Lag%20on%20Data%20Entry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-883061%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394231%22%20target%3D%22_blank%22%3E%40Subodh_Tiwari_sktneer%3C%2FA%3E%2C%20You%20have%20a%20195%20MB%20huge%20size%20Excel%20file%20and%20you%20don't%20know%20the%20reason%20of%20this.%26nbsp%3B%20You%20have%20done%20most%20of%20the%20things%20to%20optimize%20the%20file%20for%20making%20calculations%20work%20faster%20but%20still%20it%20is%20slow.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERecently%2C%20I%20faced%20similar%20problem%20with%20an%20excel%20file%20in%20which%20used%20to%20enter%20data%20%26amp%3B%20perform%20calculation%20on%20daily%20basis%20and%20one%20day%20it%20was%20taking%20more%20time%20in%20calculations%2C%20switching%20to%20sheets%20and%20while%20opening%20%26amp%3B%20closing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20perusing%20the%20data%20I%20found%20that%20by%20mistake%20some%20one%20pasted%20the%20several%20images%20of%20a%20cell%20instead%20of%20copy%20paste%20of%20value%20from%20one%20cell%20to%20another.%20The%20data%20entry%20guy%20who%20just%20copied%20the%20value%20from%20a%20cell%20%26amp%3B%20pasted%20a%20image%20to%20below%20cell.%20Later%20on%20again%20he%20copied%20the%20data%20from%20pasted%20cell%20and%20this%20time%20he%20copied%20that%20pasted%20image%20also%20and%20again%20pasted%20in%20the%20cell%20below%20to%20it.%20This%20action%20was%20done%20many%20a%20times%20and%20due%20to%20this%20i%20was%20having%20several%20images%20in%20my%20excel%20file.%20This%20resulted%20in%20slow%20processing%20the%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20identified%20those%20images%20%26amp%3B%20replaced%20with%20data%20into%20the%20cells%20and%20issue%20was%20fixed.%3C%2FP%3E%3C%2FLINGO-BODY%3E
alwise
New Contributor

Greetings,

 

I have a 195MB workbook with 7 worksheets.  The only data entry cells are on 1st sheet, about 50 cells. My problem is that there is a 10-12 second delay on entry to any one of these cells. Calculations time is only 2-3 seconds, which is acceptable to me. I've set to Manual Calcs, I've removed all conditional formats; in fact I've cleared all formatting for the other 6 sheets, with only some bolding and merged cells on sheet1. I've disabled all excel and com add-ins. 

 

Strange too, is that occasionally I can get immediate response when entering, meaning I can move to new entry cell. But if I were to delete the value from that cell the workbook will hang for 10+ seconds.

 

I'm at a loss here. Any help would be greatly appreciated.

 

Thanks, Art

4 Replies

@alwise 

195 MB is a huge size for an Excel file. What's the reason of this?

If you have only 50 cells for data entry on first sheet, what's there on other 6 Sheets?

Are you having some formulas on other sheets which involve some kind of cell comparison or formulas which refers to whole columns or rows?

Maybe it's time for you to revise those formulas. If formulas are complex, make some helper columns and simplify the formulas.

Also, select each sheet and press Ctrl+End to detect the last cell used and if you find that irrelevant, delete the unused blank rows and columns.

Make sure that you have not copied down the formulas to large number of rows.

 

You may also consider saving your file as binary file .xlsb to reduce the file size.

@Subodh_Tiwari_sktneer Thanks for your reply. I have saved as binary file and double-checked all used ranges. My formulas are very simple, and do not use sumifs, etc or refer to whole columns or rows. The 2nd thru 4th sheets are tables of helper columns, simple calcs. The 5th thru 7th sheets are essentially cartesian products of tables in 2~4 referencing those helper cells directly. I did all matrix lookups in vba and hardcoded the appropriate cell references in these larger tables 5~7. 

 

So I don't believe calculations are the issue. After whatever is happening on data entry is done and I can again control movement to another cell, the calculations themselves take only a few seconds. Given the complexity of the application I find that acceptable. I have essentially built this is access as well, with the caresian product tables already defined. The queries to join these tables with 'helper' tables providing data for calculations, which in this case must be done by the query, are much slower than can be done in excel.

It's really only the data entry lag that has me concerned. Best debugging clue I can provide is that 1st entry after a full recalc will lag. I can then do multiple additional entries without issue. BUT, if I instead delete the value in the cell I'd just entered, I will experience the lag again.

The workbook is large but formulas are not complex and books calcs quickly. There is something else causing this lag I believe.

Hi folks, I think I understand what was causing the delay. It was a calc issue in a sense. While it's true that calcs only took 2-3 seconds, the delay on data entry appears to have been the result of excel marking all dependent cells (which cascade across helper sheets) as dirty, i.e. smart calculation.

The workaround for me was using vba ActiveWorkbook.ForceFullCalculation = True, which turns smart calcs off. I then can enter values either manually or by vba, and the resulting calc time is still far less that the smart calc updates required, marking each dependent cell as dirty on data entry.

Hi @Subodh_Tiwari_sktneer, You have a 195 MB huge size Excel file and you don't know the reason of this.  You have done most of the things to optimize the file for making calculations work faster but still it is slow.

 

Recently, I faced similar problem with an excel file in which used to enter data & perform calculation on daily basis and one day it was taking more time in calculations, switching to sheets and while opening & closing.

 

After perusing the data I found that by mistake some one pasted the several images of a cell instead of copy paste of value from one cell to another. The data entry guy who just copied the value from a cell & pasted a image to below cell. Later on again he copied the data from pasted cell and this time he copied that pasted image also and again pasted in the cell below to it. This action was done many a times and due to this i was having several images in my excel file. This resulted in slow processing the file.

 

I identified those images & replaced with data into the cells and issue was fixed.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies