Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Finance in Google Sheets: How to Use It

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can pull live stock quotes, currency rates, and market data into Google Sheets with the built-in GOOGLEFINANCE function. The shortest working version is =GOOGLEFINANCE("AAPL"), which returns the current price for Apple. The function needs an internet connection and a Google account, but no add-ons or API keys. This guide covers the syntax, the attributes that actually work, and the errors you will hit.

What You'll Need

  • A Google account and access to Google Sheets (desktop browser or the mobile app).
  • An internet connection, because the function fetches data from Google's servers.
  • The correct ticker symbol for each security, including the exchange prefix when the stock is not on a US exchange (for example "LON:VOD" for Vodafone on the London Stock Exchange).
  • No add-ons, scripts, or API keys. GOOGLEFINANCE is a native function.

Step-by-Step

  1. Open Google Sheets and create a new spreadsheet or open an existing one. Click a cell where you want the data to appear.
  2. Type =GOOGLEFINANCE( and notice the autocomplete hint showing the arguments: ticker, attribute, start date, end date, interval.
  3. Enter a ticker in quotes, for example "GOOGL", then close the parenthesis and press Enter. The cell returns the current price. The result refreshes automatically while the sheet is open, though Google does not guarantee a fixed refresh interval.
  4. To get a specific attribute instead of the price, add a second argument. For example =GOOGLEFINANCE("GOOGL","price") returns the price, "name" returns the company name, "volume" returns trading volume, and "marketcap" returns market capitalisation. The full list of supported attributes is in Google's Sheets function help page.
  5. To pull historical data, add start and end dates and an interval. For example =GOOGLEFINANCE("GOOGL","close",DATE(2024,1,1),DATE(2024,3,1),"DAILY") returns a two-column table of dates and closing prices. The interval can be "DAILY" or "WEEKLY"; intraday intervals are not reliably supported and often return errors.
  6. For currency conversion, use the CURRENCY: prefix. =GOOGLEFINANCE("CURRENCY:USDGBP") returns the USD to GBP rate. The order is from-currency then to-currency, with no space or slash.
  7. To track several stocks, put the tickers in one column and copy the formula down. Use absolute references if you are referencing a single ticker cell, for example =GOOGLEFINANCE($A$2,"price").
  8. Format the output. Select the cells, then use Format > Number to set currency or percentage formatting. Historical results return a header row and data rows, so leave room below and to the right of the formula.
  9. Check your work by comparing one value against a public quote page. If the ticker is wrong, the cell shows #N/A with an error message rather than a number.

Common Mistakes

  • Forgetting the quotes around the ticker. =GOOGLEFINANCE(AAPL) treats AAPL as a named range and returns an error. Use "AAPL".
  • Using the company name instead of the ticker. "Apple" does not work; "AAPL" does.
  • Omitting the exchange prefix for non-US stocks. Many international tickers need a prefix such as LON:, TSE:, or HKG:. Without it you get #N/A.
  • Expecting real-time data. Quotes are delayed and the delay varies by exchange. Do not use the function for trading decisions that depend on second-by-second prices.
  • Requesting unsupported attributes. If an attribute name is wrong or not available for that security, the cell returns an error. Check the official attribute list rather than guessing.
  • Overloading the sheet. Hundreds of GOOGLEFINANCE calls can slow recalculation and may hit service limits. Consolidate where possible.
  • Assuming historical data covers today. Historical ranges typically end at the most recent completed trading day, and dates must be valid trading days for the exchange.

Tips

  • Use a helper cell for the ticker and reference it, so you can change the stock without editing every formula.
  • Wrap the formula in IFERROR to keep the sheet clean: =IFERROR(GOOGLEFINANCE("AAPL","price"),"n/a").
  • For a portfolio view, build columns for ticker, name, price, and day change, then use GOOGLEFINANCE with the "change" and "changepct" attributes where supported.
  • Historical requests return an array, so do not drag the formula down; one formula fills the block.
  • Copy and paste values (Edit > Paste special > Values only) if you need a static snapshot that will not change.
  • Keep the sheet shared only with people you trust; market data in a shared sheet can be edited by collaborators.

Troubleshooting

If a cell shows #N/A, first check the ticker symbol and exchange prefix. A misspelled ticker is the most common cause. Next, confirm the attribute name is spelled exactly as documented. If the whole sheet shows errors at once, check your internet connection and reload the page; a temporary service issue on Google's side can also cause failures, so try again later.

If historical data returns only a header, your date range may contain no trading days, or the interval may be unsupported. Widen the range and use "DAILY" or "WEEKLY". If currency conversion fails, check that both currency codes are valid three-letter codes and that the pair is written without separators.

If the sheet is slow, reduce the number of live formulas, remove unused historical ranges, and avoid volatile functions combined with GOOGLEFINANCE. If the mobile app shows different results from the desktop browser, refresh both; cached values can differ briefly.

Frequently Asked Questions

Is GOOGLEFINANCE free?

Yes. It is a built-in Google Sheets function and does not require a paid subscription or API key.

Does it give real-time prices?

No. Quotes are delayed, and the delay varies by exchange. Treat the data as indicative, not as a live trading feed.

Can I use it for cryptocurrencies?

Support for crypto tickers is limited and inconsistent. Some pairs work with a CURRENCY: style format, but many do not. Verify each ticker before relying on it.

Why does my formula return #N/A?

Usually a wrong ticker, a missing exchange prefix, or an unsupported attribute. Check the symbol first, then the attribute spelling.

Can I get dividends or financial statements?

Only the attributes Google documents are available. Dividends and full financial statements are not reliably supported, so use a dedicated data source for those.

Does it work in Excel?

No. GOOGLEFINANCE is specific to Google Sheets. Excel has different stock data features that require their own setup.