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.
=ETF(Symbol; [Date]; [Indicator])
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:
The following values are used in this example:
The following values are used in this example:
Corresponding data from Yahoo Finance:
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
When using a date as text, it must first be converted into a real date, for example:
You can also use ready-made templates to get historical data, financial indicators, or a company profile.
To do this, go to the
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).