TOP

Yfinance Function

YFINANCE() Description

The YFINANCE() function is designed for automatically getting historical data directly from the Yahoo Finance website (finance.yahoo.com) by a specified stock symbol (e.g., AAPL, NVDA) for a defined period.

This function allows you to analyze market trends directly in Excel (LibreOffice Calc) spreadsheets and is an indispensable tool for financial modeling and in-depth market analysis.


This function requires an internet connection to work.

Key Features of the YFINANCE Function

Syntax:

=YFINANCE(Symbol; [StartDate]; [EndDate]; [Interval]; [Header]; [Calendar])

Parameters:

Example Usage

Example 1

The YFINANCE() function allows you to download an array of historical data. You specify the stock symbol and time range, and Excel (Calc) imports the corresponding data:

=YFINANCE(Symbol; StartDate; EndDate)

We will get the following result:

Example usage of the YFINANCE() function
Example usage of the YFINANCE() function

The following values are used in this example:

Corresponding data from the Yahoo Finance website:

YFINANCE formula usage

Example 2

Example usage of the YFINANCE() function
Example usage of the YFINANCE() function

The following values are used in this example:

Corresponding data from the Yahoo Finance website:

YFINANCE formula usage

How It Works?

Simply enter the YFINANCE() function into any cell, specifying the symbol and date range. After that, press Ctrl+Shift+Enter to enter the array formula and LO Calc will automatically return a table with data.

To select all cells associated with the array formula, simply select any cell in the array and press Ctrl+/.

If you need to convert an array formula to values - select the entire array and in the menu Data > Calculate choose Formula to Value.

When using a date as text, it must first be converted to a real date, e.g.: DATEVALUE("2026-01-25").

Ready-made Templates

You can also use ready-made templates to get historical data, financial indicators, or company profile.

To do this, go to the menu YLC Utilities > Template > Company screener and select one of the following reports:

Download Extension

You can use the YFINANCE() 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 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