• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

STOCKHISTORY Function In Excel: Checking Stock Data

0 Comments

If you are interested in the stock market, with a simple formula, you can track stock data over time for a company right in the familiar Excel tool. At the end of 2019, Microsoft introduced the STOCKHISTORY function to make this process easier. Let’s explore the syntax and how to use this function with Buffcom.net!

What is the STOCKHISTORY Function in Excel?

The STOCKHISTORY function – one of the new dynamic array formulas – will help you obtain historical stock prices and exchange rates for a company over a daily, weekly, or monthly period. This function utilizes the Stocks data type linked to an online source of information, and dynamic array functionality to retrieve stock prices on different dates.

The STOCKHISTORY function not only updates stock information but can also be used to view bond data, index fund data, mutual fund data, bond pairs, currency pairs, and more.

This function is relatively new and is currently only available in Office 365.

Syntax of the STOCKHISTORY Function in Excel

Stock History Function Formula

=STOCKHISTORY(stock, start_date, [end_date], [interval], [headers], [property0], [property1] [property2], [property3], [property4], [property5])

Explanation of Parameters in the Formula

STOCKHISTORY Function In Excel 1
Note:

  • The date parameters (start_date and end_date) can be a date placed in double quotes (e.g., “01-01-2020”), a formula (e.g., TODAY()), or a reference to a cell containing a date (e.g., A3)
  • The return date may be earlier than the date provided. For example: if the start_date is March 29, 2022 with a monthly data retrieval interval (interval=2), the returned data will start from March 1, 2022 for the requested period.The safest way to provide start_date and end_date is to reference a
  • cell containing a valid date or use the DATE function. This is because date inputs in text value format can sometimes be misinterpreted.

Example of the STOCKHISTORY function in Excel

Example 1: You want to check the stock data of Apple (with the stock code AAPL) for today. In Office 365 Excel, you enter the following formula:

=STOCKHISTORY(“AAPL”, TODAY())

However, note that not every day is a trading day for that exchange, so if it is not a trading day, Excel will display the #VALUE! error due to non-trading day.

Example 2: To check the stock data of Apple within a 15-day period from today, you use the formula:

=STOCKHISTORY(“AAPL”, TODAY()-15, TODAY())

STOCKHISTORY Function In Excel 2Excel returns a table with many results as shown in the figure above. You can insert a chart to visualize the data and easily observe the fluctuations in stock prices.

Example 3: To check Microsoft’s stock data (with stock code MSFT) weekly, within the period from January 3, 2022, to January 25, 2022, you enter the formula:

=STOCKHISTORY(“MSFT”, DATE(2022, 1, 3), DATE(2022, 1, 25), 1, 1)

STOCKHISTORY Function In Excel 3Conclusion

Through this article, Buffcom.net hopes that you have gained a better understanding of a new and interesting function – STOCKHISTORY. Excel has many great features that you may not have fully utilized, so make sure to regularly visit the Buffcom.net website to update yourself with useful Excel knowledge!

In addition, if you are interested in purchasing a licensed office software, please contact Buffcom.net for support!

Rate this post
32
324 Views
Excel Tutorial: IF Function and Multiple IF StatementsPrevExcel Tutorial: IF Function and Multiple IF StatementsApril 14, 2023
How to copy a table from Excel to Word while maintaining the formattingApril 15, 2023How to copy a table from Excel to Word while maintaining the formattingNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Windows 11 Pro Product Activation Key Windows 11 Pro Product Activation Key
    Rated 5.00 out of 5
    $6.00
  • AVG Internet Security 2021 10 Devices 1 Year Global AVG Internet Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $30.00
  • Kaspersky Total Security 2021 1 year 1 device key Global Kaspersky Total Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $27.00
  • Avast Ultimate Suite 2021 2 Years 10 Devices Global Avast Ultimate Suite 2021 2 Years 10 Devices Global
    Rated 5.00 out of 5
    $77.00
  • Buy Windows 11 Pro CD Key License Buy Windows 11 Pro CD Key License
    Rated 5.00 out of 5
    $6.00
Products
  • Microsoft Visual Studio 2022 Professional Key Microsoft Visual Studio 2022 Professional Key $19.00
  • Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
  • Microsoft Visio Standard 2016 Key 1PC Microsoft Visio Standard 2016 Key 1PC $9.00
  • Office 2019 Professional Plus Key Global Bind to your Microsoft Account Office 2019 Professional Plus Key Global Bind to your Microsoft Account
    Rated 4.97 out of 5
    $49.00
  • Windows Server 2019 Datacenter Key Global Windows Server 2019 Datacenter Key Global
    Rated 4.75 out of 5
    $7.00
  • Buy Microsoft Office Professional Plus 2019 CD Key Global - 5 PC Buy Microsoft Office Professional Plus 2019 CD Key Global - 5 PC
    Rated 4.95 out of 5
    $32.00
  • Kaspersky Standard - 1 Device, 1 Year (Global License) Kaspersky Standard - 1 Device, 1 Year (Global License) $21.00
  • Windows 10 Home Key Global Windows 10 Home Key Global
    Rated 4.81 out of 5
    $10.00
  • SQL Server 2019 Standard SQL Server 2019 Standard $20.00
  • Microsoft Project Standard 2019 - 1 PC Microsoft Project Standard 2019 - 1 PC $12.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.