TOP

Stock Function

STOCK() Description

The STOCK() function is designed to automatically retrieve stock prices directly from the Yahoo Finance website (finance.yahoo.com) by the specified stock ticker (for example, AAPL, NVDA) and selected date. It supports both historical quotes and real-time values.

This function is useful for creating stock trackers in Excel (LibreOffice Calc) and will be beneficial for investors, traders, and financial analysts.


Key Features of the STOCK Function

Syntax:

=STOCK(Ticker; [Date]; [Indicator])

Parameters:

Example Usage

Example 1

The STOCK() function is simple to use. You just need to specify the cell with the stock code and Excel (Calc) will automatically import its price for the specified date:

=STOCK(Ticker; Date)

We will get the following result:

Example of STOCK() function usage
Example of STOCK() function usage

In this example, the following values are used:

Example 2

Example of STOCK() function usage
Example of STOCK() function usage

In this example, the following values are used:

Corresponding data from the Yahoo Finance website:

STOCK formula usage

Download extension

You can use the STOCK() function by installing the YLC Utilities extension.

After that, this function will be available in all files opened in Excel (LibreOffice Calc).


This function is also available in the following extensions: YLC FunctionsYLC Utilities

The YLC Utilities menu in LO Calc

The YLC Utilities menu in LO Calc

The YLC Utilities menu in Excel

The YLC Utilities menu in Excel