The STATISTICS() function is designed to obtain company valuation metrics (valuation metrics) directly from the Yahoo Finance website (finance.yahoo.com) by the specified stock ticker (e.g., AAPL, NVDA) and selected data type.
This function allows you to analyze market capitalization, P/E ratios, profitability metrics, and other key statistical data directly in Excel (LibreOffice Calc) tables.
=STATISTICS(Ticker; [Indicator])
The STATISTICS() function allows you to quickly get financial metrics. Just specify the ticker and parameter, and Excel (Calc) will load the data:
=STATISTICS(Ticker; Indicator)
We will get the following result:
In this example, the following values are used:
In this example, the following values are used:
In this example, the following values are used:
The STATISTICS() function can work both in normal mode and as an array function.
To use it as an array, simply enter the function into 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 array cell and press Ctrl+/.
If you need to convert an array formula to values - select the entire array and in the menu
You can use the function STATISTICS() by installing the extension YLC Utilities.
After installation, the function will be globally available in your Excel (LibreOffice Calc).