Excel STOCKHISTORY() function repeatedly encounters #CONNECT! error.

Anonymous
2024-08-19T21:41:33+00:00

Hi Team,

I spent over 2 hours troubleshooting this issue with an advocate in Office support (7*********0). He worked very hard to understand and resolve the issue.

We tried numerous resets: the network, uninstalling and reinstalling office, updating office, powering down, and restarting the computer. Nothing helped.

The issue occurs in approximately 20% of the values for a list of stocks and one date. It occurs in a similar percentage of dates for a single stock.

Ultimately we discovered that creating a new spreadsheet and typing or pasting the formula into an empty cell will not result in the #CONNECT! error. But this does not work in previously created spreadsheets.

Please check on this as soon as possible. This is a critical function for applying Excel to stock research.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

54 answers

Sort by: Newest
  1. Anonymous
    2024-08-31T16:12:04+00:00

    Thank you for the detailed analysis of erroneus results. This is something I have not considered.

    I am still getting the error: "Excel ran out of resources..."

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-08-31T15:01:42+00:00

    I was having the same problem for a while and agree that this is even worse than the function not responding at all. It was then pointed out that the symbols that were generating completely erroneous quotes might be confused with similar symbols from another stock market. Eg the symbol FT exists on the NY market (XNYS:FT) but also on another market (I forget which one). This happened with 4 or 5 other ticker symbols.
    If the STOCKHISTORY function is specified using "FT" as the symbol (either directly or by reference to another cell), Excel decided to pick quotes from the other market FT. This can be corrected either by specifying the exact market/ticker symbol (XNYS:FT) or by referral to a cell containing XNYS:FT using a Data>Stock type.
    I didn't have this problem when STOCKHISTORY was working properly a couple of weeks ago. I had to go through all my 54 symbols and ensure they used the market:ticker format in every case. They now seem to be ok.
    Microsoft's guidance for STOCKHISTORY states: "Enter a ticker symbol in double quotes (e.g., "MSFT") or a reference to a cell containing the Stocks data type. This will pull data from the default exchange for the instrument. You can also refer to a specific exchange by entering a 4-character ISO market identifier code (MIC), followed by a colon, followed by the ticker symbol (e.g., "XNAS:MSFT")"

    It could be that the system is no longer pulling data from the default exchange and is being arbitrary about which exchange to use. By following the last sentence of the guidance, the correct ticker should be identified.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-08-31T12:17:54+00:00

    I am still having probems with the STOCKHISTORY function, but not in terms of producing ERRORs I am no longer getting "Excel ran out of resources" that others have mentioned either. I have posted the following under a new thread per your suggestion, but wanted to also post it here FWIW to others in the thread.

    My new problem is that STOCKHISTORY is returning incorrect prices for random tickers. And the specific ticker(s) for which it happens is/are different every time I re-open the file containing the errors. I've tried overwriting the incorrect cells with the same formula from a different cell that is correct and re-calcing, but it just reproduces the same incorrect result for the erroneous ticker in question. I have also been re-opening the file, which usually results in the previously erroneous results being corrected, but then an erroneous results shows up for a different ticker. I've tried this both with automatic re-calc and manual re-calc, but it is rarely and very inconconsistently correcting the problem for ALL tickers at one time in either case.

    Though a less widespread problem than before in terms of the number of tickers affected at one time, this is actually worse in a sense since it is not producing error messages. It is producing results that are incorrect and those erroneous results are not readily aparent without digging to find them. I only discovered that it was happening because some higher level calculations using multiple ticker results were not making sense. This all but renders my analyses useless and takes up a lot of time to have to go in ticker by ticker to identify the erroneous results and account for them accordingly in my decision-making because the occurence of the problem is seemingly completely random.

    Please make this a very high priority to correct.

    Thank you.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-08-30T14:55:26+00:00

    Ok, thank you very much, Thomas. I understand there isn't much you can do. It's harder to understand MS's somewhat cavalier attitude, at least in my opinion.

    Thanks for your effort.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-08-30T04:40:02+00:00

    Hi Jacques,

    We have contacted them via email, but their response to us is "do not advise users to roll back their Office version, as it won't help" and "reassure the user and wait for the development team to fix it." I really wish I could help you but please forgive me there is nothing I can do at this time.

    Thomas

    Was this answer helpful?

    0 comments No comments