The STATISTICS() function is designed to get valuation metrics directly from the Yahoo Finance website (finance.yahoo.com) by the specified stock symbol (for example, AAPL, NVDA) and the selected data type.
This function allows analyzing market capitalization, P/E ratios, profitability metrics, and other key statistical data directly in Excel (LibreOffice Calc) spreadsheets.
=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 have the following result:
The following values are used in this example:
The following values are used in this example:
The following values are used in this example:
The STATISTICS() 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 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 to values - select the entire array and in the
You can also use ready-made templates to get historical data, financial metrics, or a company profile.
To do this, go to the
You can use the STATISTICS() function by installing the YLC Utilities extension.
After installation, the function will be available globally in your Excel (LibreOffice Calc).