GOOGLEFINANCE Function
GOOGLEFINANCE pulls live stock prices, currency rates, and historical market data into your spreadsheet.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| ticker | The ticker symbol to look up, including exchange prefix when needed, e.g. 'NASDAQ:GOOG' or 'EURUSD'. For currency pairs, use 'CURRENCY:EURUSD'. | Required |
| attribute | The data point to retrieve, e.g. 'price', 'change', 'changepct', 'high', 'low', 'volume', 'marketcap', 'eps', 'pe', 'name', 'close', 'open', 'high52', 'low52'. Default is 'price'. | Optional |
| start_date | For historical data, the start date of the range. Omit for current data. | Optional |
| end_date | For historical data, the end date of the range, or a number of days (e.g. 30) to retrieve from the start_date. | Optional |
| interval | Frequency of historical data: 'DAILY' or 'WEEKLY'. Default is 'DAILY'. | Optional |
Basic Example
Get the current stock price for Apple
=GOOGLEFINANCE('AAPL', 'price')The first argument is the ticker. The second argument asks for the current price.
Advanced Examples
Example 1: Historical closing prices for the last 30 days
Stock analysisPull daily closing prices for Tesla over the past 30 days
=GOOGLEFINANCE('TSLA', 'close', TODAY()-30, TODAY())Example 2: Currency exchange rate
Forex lookupGet the current EUR to USD exchange rate
=GOOGLEFINANCE('CURRENCY:EURUSD')Example 3: Company fundamentals
Fundamental analysisRetrieve the P/E ratio and market cap for Microsoft
=GOOGLEFINANCE('MSFT', 'pe')How GOOGLEFINANCE Works
GOOGLEFINANCE connects to Google Finance and returns live or historical market data. The ticker argument identifies the security or currency pair. Attributes specify which metric to retrieve. For historical data, dates and interval control the returned table.
Important Notes & Limitations
GOOGLEFINANCE is Google Sheets only and does not work in Excel.
Data may be delayed (typically 15-20 minutes) and is not suitable for real-time trading.
Some attributes are not available for all tickers or exchanges.
Google may limit the number of GOOGLEFINANCE calls in a spreadsheet.
Common Errors & Fixes
#N/A errorTicker is unrecognized or the attribute is not supported for that ticker.Fix: Try a different exchange prefix (e.g. 'NYSE:T' instead of 'T') or verify the attribute name.
Blank resultThe market is closed or the ticker has no data.Fix: Check the ticker and try again during market hours.
Wrong currency rateCurrency pair syntax is incorrect.Fix: Use 'CURRENCY:EURUSD' for EUR to USD, not 'EURUSD' alone.
Download Practice File
GOOGLEFINANCE
googlefinancePractice GOOGLEFINANCE with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the GOOGLEFINANCE function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps