The FUTURES() function is designed for automatically obtaining historical data for futures contracts directly from the Yahoo Finance website (finance.yahoo.com) by the specified symbol (for example, GC for gold or BZ for oil).
This function allows you to track the price dynamics of commodities and financial derivatives directly in Excel (LibreOffice Calc) tables, which is critically important for analyzing commodity markets and hedging risks.
=FUTURES(Symbol; [Date]; [Indicator])
The FUTURES() function automates the collection of quote data. You specify the contract ticker, and Excel (Calc) imports historical indicators:
=FUTURES(Symbol; Date; Indicator)
We will have the following result:
In this example, the following values are used:
In this example, the following values are used:
Relevant data from the Yahoo Finance website:
The FUTURES() function can work both in normal mode and as an array function.
To use it as an array, simply enter the function in any cell, specifying the relevant 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
When using a date in text format, it must first be converted into a real date, for example:
You can also use ready-made templates to obtain historical data, financial indicators, or a company profile.
To do this, go to the
You can use the FUTURES() function by installing the YLC Utilities extension.
After that, this function will be available in all files opened in Excel (LibreOffice Calc).