File with STOCKHISTORY function becomes unresponsive

%3CLINGO-SUB%20id%3D%22lingo-sub-2022088%22%20slang%3D%22en-US%22%3EFile%20with%20STOCKHISTORY%20function%20becomes%20unresponsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2022088%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20have%20several%20Excel%20files%20using%20the%20beta%20Stockhistory%20function.%20One%20file%20has%20become%20unresponsive%20every%20time%20I%20open%20it.%20These%20files%20download%20daily%20price%20data%20for%20multiple%20stocks%20for%20the%20past%2042%20days.%20To%20first%20assign%20dates%20for%20the%20data%20I%20need%2C%20I%20first%20use%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DTRANSPOSE(STOCKHISTORY(%24B%2432%2CTODAY()-42%2CTODAY()%2C0%2C1))%2C%20where%20the%20%24B%2432%20references%20a%20stock.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20I%20use%20%22%3DSTOCKHISTORY(%24B32%3A%24B42%2CEU%243%2C%24FV%243%2C0%2C0%2C1)%22%20where%20EU%243%20and%20%24FV%243%20references%20the%20start%20and%20end%20dates%20delivered%20by%20the%20earlier%20%22Transpose(Stock%20..)%22%20function.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20it%20looks%20like%20the%20first%20function%20results%20in%20a%20SPILL%20error%2C%20probably%20because%20of%20the%20%2242%22%20setting.%20At%20bottom%20right%20I%20see%20%22Calculating%20(Spill%20Resize%20Pass%201)%3A%200%25%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20this%20is%20then%20causing%20a%20problem%20for%20the%202nd%20function%2C%20and%20the%20file%20becomes%20unresponsive.%20To%20try%20and%20fix%20the%20problem%2C%20I'd%20like%20to%20adjust%20the%20first%20function%20to%2040%20to%20prevent%20Spill.%20But%20I%20can't%20because%20the%20data%20download%20automatically%20starts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20a%20solution%20to%20my%20problem%3F%20It's%20a%20large%20file%2C%20so%20I'd%20like%20to%20avoid%20rebuilding%20the%20file%20from%20scratch.%20Is%20there%20a%20way%20to%20stop%20data%20download%20from%20starting%20automatically%20when%20the%20file%20is%20open%3F%20Would%20appreciate%20any%20suggestions%20to%20my%20problem.%20I%20don't%20have%20problems%20with%20the%20other%20files%20using%20these%20same%20functions.%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2022088%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2023001%22%20slang%3D%22en-US%22%3ERe%3A%20File%20with%20STOCKHISTORY%20function%20becomes%20unresponsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2023001%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F907033%22%20target%3D%22_blank%22%3E%40doktorj%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EInteresting%20case.%20Could%20you%20please%20share%20sample%20file%20(not%20your%20work%20file%2C%20but%20simple%20one%20which%20illustrate%20an%20issue)%20not%20to%20build%20the%20models%20for%20the%20replication.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2024008%22%20slang%3D%22en-US%22%3ERe%3A%20File%20with%20STOCKHISTORY%20function%20becomes%20unresponsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024008%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3EThanks%20for%20reply%20Sergei.%20I'm%20unable%20to%20replicate%20the%20problem%20in%20a%20sample%20file%2C%20as%20the%20other%20files%20with%20the%20same%20functions%20seem%20to%20be%20working.%20Again%2C%20I'm%20assuming%20the%20problem%20stems%20from%20a%20SPILL%20of%20the%20array%20into%20adjacent%20cells%2C%20so%20what%20I've%20done%20with%20the%20files%20that%20are%20working%20is%20to%20enter%20additional%20empty%20columns%2C%20to%20%22catch%22%20the%20spill.%20As%20there's%20nothing%20sensitive%20in%20the%20file%20(just%20stock%20codes)%2C%20I'm%20attaching%20it%20here%20for%20you%20to%20look%20at%20...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello, I have several Excel files using the beta Stockhistory function. One file has become unresponsive every time I open it. These files download daily price data for multiple stocks for the past 42 days. To first assign dates for the data I need, I first use:

 

=TRANSPOSE(STOCKHISTORY($B$32,TODAY()-42,TODAY(),0,1)), where the $B$32 references a stock.

 

Then I use "=STOCKHISTORY($B32:$B42,EU$3,$FV$3,0,0,1)" where EU$3 and $FV$3 references the start and end dates delivered by the earlier "Transpose(Stock ..)" function.

 

But it looks like the first function results in a SPILL error, probably because of the "42" setting. At bottom right I see "Calculating (Spill Resize Pass 1): 0%"

 

I think this is then causing a problem for the 2nd function, and the file becomes unresponsive. To try and fix the problem, I'd like to adjust the first function to 40 to prevent Spill. But I can't because the data download automatically starts.

 

Does anyone have a solution to my problem? It's a large file, so I'd like to avoid rebuilding the file from scratch. Is there a way to stop data download from starting automatically when the file is open? Would appreciate any suggestions to my problem. I don't have problems with the other files using these same functions. Thanks.

2 Replies

@doktorj 

Interesting case. Could you please share sample file (not your work file, but simple one which illustrate an issue) not to build the models for the replication.

@Sergei BaklanThanks for reply Sergei. I'm unable to replicate the problem in a sample file, as the other files with the same functions seem to be working. Again, I'm assuming the problem stems from a SPILL of the array into adjacent cells, so what I've done with the files that are working is to enter additional empty columns, to "catch" the spill. As there's nothing sensitive in the file (just stock codes), I'm attaching it here for you to look at ...