TOP

ETF Function

ETF() Description

The ETF() function is designed to automatically obtain stock prices of exchange-traded funds (ETFs) directly from the Yahoo Finance website (finance.yahoo.com) by the specified ticker symbol (for example, SPY, VOO) and the selected date.

This function allows you to track the value of ETF portfolios directly in Excel (LibreOffice Calc) spreadsheets, which significantly simplifies investment analysis and market monitoring for users.


An internet connection is required for this function to work.

Key Features of the ETF Function

Syntax:

=ETF(Symbol; [Date]; [Indicator])

Parameters:

Example of Use

Example 1

The ETF() function automates quote data collection. You need to specify the fund ticker, and Excel (Calc) will automatically download the data:

=ETF(Symbol; Date; Indicator)

We will get the following result:

Example of using the ETF() function
Example of using the ETF() function

The following values are used in this example:

Example 2

Example of using the ETF() function
Example of using the ETF() function

The following values are used in this example:

Corresponding data from Yahoo Finance:

ETF formula usage

How It Works?

The ETF() function can work in both standard mode and as an array function.

To use it as an array, simply enter the function in any cell, specifying the appropriate parameters. After that, you need to press Ctrl+Shift+Enter to enter the array formula, and LO Calc will automatically return the data table.

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

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

When using a date as text, it must first be converted into a real date, for example: DATEVALUE("2026-01-25").


If you need to get historical data for a long period of time, we recommend using the YFINANCE function to avoid delays.

Pre-built templates

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

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

Download the extension

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

After this, 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