Category: FUNCTION | Updated: 2026-11-22
How to Use the GOOGLEFINANCE Function: Fetch Stock Prices and Exchange Rates in Real Time
Overview of the GOOGLEFINANCE Function
The GOOGLEFINANCE function fetches current or historical securities information (stock prices, volume, market cap, etc.) and currency exchange rates from Google Finance in near real time (delayed by up to 20 minutes). It is convenient for building portfolio trackers and market analysis reports.
Syntax
=GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days], [interval])
- ticker: The exchange code and ticker symbol (e.g.,
"NASDAQ:GOOGL") or currency pair (e.g.,"CURRENCY:USDJPY"). - attribute (optional): The type of data to fetch. Use
"price"for current price,"close"for historical closing price,"volume"for trading volume, etc. (defaults to"price"). - start_date (optional): The start date when fetching historical data.
- end_date|num_days (optional): The end date when fetching historical data, or the number of days from
start_date. - interval (optional): The frequency of returned data, specified as
"DAILY"or"WEEKLY".
Practical Examples with a Table
This example fetches current prices for US stocks and the USD/JPY exchange rate.
| Cell | A (Target) | B (Ticker Code) | C (Formula) | D (Sample Result) |
|---|---|---|---|---|
| 1 | Security Name | Code | Formula | Result |
| 2 | Alphabet (Google) | NASDAQ:GOOGL | =GOOGLEFINANCE(B2, "price") |
175.50 |
| 3 | Apple | NASDAQ:AAPL | =GOOGLEFINANCE(B3, "price") |
228.20 |
| 4 | US Dollar / Japanese Yen | CURRENCY:USDJPY | =GOOGLEFINANCE(B4) |
154.35 |
Common Errors and Precautions
- Japanese stocks (TSE) not supported (
#N/Aerror): Stocks listed on the Tokyo Stock Exchange (e.g.,TYO:7203) cannot be retrieved due to Google Finance data coverage restrictions and will return#N/A. - Risk of omitting the exchange prefix: Specifying only the ticker symbol (e.g.,
"AAPL") can cause confusion with identically named tickers on other exchanges, so it is safer to include the exchange code like"NASDAQ:AAPL". - Not for live trading decisions: Retrieved data may be delayed by up to 20 minutes and should be used for informational reference rather than as an official benchmark for financial transactions.
Frequently Asked Questions
Q. Can GOOGLEFINANCE fetch stock prices for Japanese stocks?
A. Currently, Japanese stocks on exchanges like the Tokyo Stock Exchange (TYO) cannot be fetched directly using GOOGLEFINANCE. US stocks and major currency exchange rates are supported.
Q. How do I write the formula to get currency exchange rates with GOOGLEFINANCE?
A. Pass a currency pair as the ticker, such as "CURRENCY:USDJPY", to fetch exchange rates like USD/JPY.