• 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
23
314 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
  • Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL
    Rated 5.00 out of 5
    $17.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
  • AVG Internet Security 2021 10 Devices 2 Years Global AVG Internet Security 2021 10 Devices 2 Years Global
    Rated 5.00 out of 5
    $42.20
  • Trend Micro Maximum Security 3 Devices 1 Year key Global Trend Micro Maximum Security 3 Devices 1 Year key Global
    Rated 5.00 out of 5
    $15.00
  • Windows 11 Home Key Global 2021 Windows 11 Home Key Global 2021
    Rated 5.00 out of 5
    $6.00
Products
  • Microsoft Office Professional Plus 2010 retail Microsoft Office Professional Plus 2010 retail Key Global - 5 PC
    Rated 4.96 out of 5
    $15.00
  • Microsoft Office Professional Plus 2019 CD Key Global Microsoft Office Professional Plus 2019 CD Key Global - 5 PC
    Rated 4.92 out of 5
    $32.00
  • Visio Professional 2024 Visio Professional 2024 $33.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
  • Windows 10 Home OEM Key Global Windows 10 Home OEM Key Global
    Rated 4.80 out of 5
    $6.00
  • Office 2024 Home And Business For Mac/Pc Bind Office 2024 Home And Business For Mac/Pc Bind $99.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
  • Buy Windows Server 2016 Essentials Key Global Buy Windows Server 2016 Essentials Key Global
    Rated 4.75 out of 5
    $10.00
  • Microsoft Visual Studio 2022 Professional Key Microsoft Visual Studio 2022 Professional Key $19.00
  • Kaspersky Standard - 1 Device, 1 Year (Global License) Kaspersky Standard - 1 Device, 1 Year (Global License) $21.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.