• 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
25
318 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
  • Kaspersky Small Office Security 15 PCs + 15 Mobiles + 2 Servers 1 Year Kaspersky Small Office Security 15 PCs + 15 Mobiles + 2 Servers 1 Year
    Rated 5.00 out of 5
    $201.00
  • Buy Windows 11 Professional MS Products CD Key Buy Windows 11 Professional MS Products CD Key
    Rated 5.00 out of 5
    $6.00
  • AVG Internet Security 2021 1 Device 1 Year Global AVG Internet Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
  • Buy Office 2021 Professional Plus Key Global For 5 PC Buy Office 2021 Professional Plus Key Global For 5 PC
    Rated 5.00 out of 5
    $68.00
  • Avast SecureLine VPN 2021 2 Years 5 Devices Global Avast SecureLine VPN 2021 2 Years 5 Devices Global
    Rated 5.00 out of 5
    $47.00
Products
  • 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
  • Windows Server 2016 Remote Desktop Services 50 USER Connections Key Global Windows Server 2016 Remote Desktop Services 50 USER Connections Key Global
    Rated 4.74 out of 5
    $15.00
  • Buy Office 2021 Professional Plus Key Global Bind To Your Microsoft Account Buy Office 2021 Professional Plus Key Global Bind To Your Microsoft Account
    Rated 4.71 out of 5
    $99.00
  • Windows Server 2016 Standard Key Global Windows Server 2016 Standard Key Global
    Rated 4.80 out of 5
    $10.00
  • Microsoft Project 2019 professional Key Global Bind to your Microsoft Account Microsoft Project 2019 professional Key Global Bind to your Microsoft Account
    Rated 4.93 out of 5
    $12.00
  • Microsoft Visio Professional 2013 Key 1PC Microsoft Visio Professional 2013 Key 1PC $9.00
  • Windows Server 2025 Standard Windows Server 2025 Standard $30.00
  • Microsoft Office Professional Plus 2013 retail CD Key Global Microsoft Office Professional Plus 2013 retail CD Key Global
    Rated 4.97 out of 5
    $11.00
  • Windows Server 2019 Essentials Key Global Windows Server 2019 Essentials Key Global
    Rated 4.71 out of 5
    $7.00
  • Avast Ultimate Suite 2021 1 Year 10 Devices Global Avast Ultimate Suite 2021 1 Year 10 Devices Global
    Rated 5.00 out of 5
    $54.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.