A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi, James R Thompson
This looks less like a formula problem and more like an instrument-matching problem inside Excel’s stock data service. Both XNYS and OTCM are supported exchanges, and Excel can struggle to match some symbols cleanly unless you use the Stocks linked record/selector first.
Here are some suggestions you can try:
Instead of typing "XNYS:AU" or the OTC symbols directly into STOCKHISTORY, enter the ticker or full company name in a cell, go to Data > Stocks, and use the selector pane if Excel prompts for a match. Then point STOCKHISTORY to that linked stock cell rather than the text string, since it is recommended using a Stocks data type cell as the input.
You can also open the linked stock card first and confirm fields like Exchange/Previous Close. If the linked record does not resolve correctly there, STOCKHISTORY usually will not resolve it either. A suggestion on similar cases is to rely on the data selector to get the exact instrument Excel recognizes, rather than assuming the typed market code is the one its feed wants.
Thank you for your patience in reading, I hope this information has been helpful to you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment."
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.