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) using a specified symbol (for example, SPY, VOO) and a 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.

Main Characteristics of the ETF Function

Syntax:

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

Parameters:

Example Usage

Example 1

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

=ETF(Symbol; Date; Indicator)

We will have 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 the Yahoo Finance website:

ETF formula usage

How Does It Work?

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

To use it as an array, just 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 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 into values - select the entire array and in the menu Data > Calculate select Formula to Value.


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

Download the Extension

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