Share via

How to use Stockhistory function to load data into Excel?

Anonymous
2023-11-14T14:22:30+00:00

Referring to following link, I would like to know on how to use Stockhistory function to load data into Excel?

Does anyone have any suggestions?
Thanks in advance

Microsoft 365 and Office | Excel | Other | 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

Answer accepted by question author

  1. Anonymous
    2023-11-14T15:52:23+00:00

    Hello OemSoft,

    I'm Ibhadighi and I'd happily help you with your question. In this forum, we are Microsoft consumers just like yourself.

    The STOCKHISTORY function in Excel is a powerful tool for fetching historical data about stocks directly into your spreadsheet. It's particularly useful for financial analysis, stock market research, or just keeping an eye on your investments. Here's a basic guide on how to use it:

    1. **Check Excel Version and Subscription**: First, ensure you have Microsoft Excel for Microsoft 365 or Excel for the web, as the STOCKHISTORY function is available only on these versions.
    2. **Open a New or Existing Excel Workbook**: Open Excel and choose where you want to insert the stock data.
    3. **Using the STOCKHISTORY Function**:
      • The basic syntax of the function is =STOCKHISTORY(stock, start_date, [end_date], [interval], [headers], [properties]).
      • **stock**: This is where you enter the ticker symbol of the stock (e.g., "MSFT" for Microsoft).
      • **start_date**: The date from which you want to start fetching the stock data.
      • **[end_date]**: This is optional. If you want data up to a specific date, include it here.
      • **[interval]**: Also optional. You can set it to "daily", "weekly", or "monthly" to specify the frequency of the data.
      • **[headers]**: Optional. If you want headers like Date, Close, Volume, etc., to be included, set this to TRUE.
      • **[properties]**: Optional. This allows you to specify which properties of the stock you want, like high, low, volume, etc.
    4. **Entering the Function**: Click on the cell where you want the data to start appearing. Then type in the function with the parameters you need. For example, =STOCKHISTORY("MSFT", "1/1/2020", "12/31/2020", "daily", TRUE) would give you daily data for Microsoft stock for the year 2020.
    5. **Press Enter**: After typing in the function, press Enter. Excel will fetch the stock data and populate your cells accordingly.
    6. **Troubleshooting**: If you run into errors, double-check the ticker symbol and the date formats. Also, ensure your internet connection is stable, as Excel needs it to retrieve the data.

    Please note that the availability of the STOCKHISTORY function and the specifics of its use can vary based on the Excel version and the subscription plan.

    I hope this helps.

    Best Regards, Ibhadighi

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-11-15T01:17:03+00:00

    I wonder on why MYRCNY=X not working with StockHistory function ?

    Any suggestions?

    Thanks

    0 comments No comments
  2. Anonymous
    2023-11-14T23:35:48+00:00

    Thanks you

    0 comments No comments
  3. Anonymous
    2023-11-14T21:53:58+00:00

    You are welcome OemSoft,

    The STOCKHISTORY function became available in Microsoft Office 365 in July 2020.

    For more guidance; https://mspoweruser.com/microsoft-excel-stockhistory-function/#:~:text=July%201%2C%202020%20Last%20year%2C,history%20of%20a%20financial%20instrument

    'Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.'

    Best Regards, Ibhadighi

    0 comments No comments
  4. Anonymous
    2023-11-14T21:07:35+00:00

    I would like to know on when Stockhistory function become available on Office 365.

    Do you have any suggestions?

    Thank you very much for suggestions :)

    0 comments No comments