We’re improving Formula Genius. We’re redesigning the app and fixing issues along the way. Sorry for any disruption, and thank you for your patience.
Google Sheets intermediate

How to Use GOOGLEFINANCE in Google Sheets?

Easily access live stock prices and historical market data directly in your Google Sheets with the GOOGLEFINANCE function.

Formula Genius can generate a draft from a plain-English prompt. Supported formulas can be checked with sample cases; review the coverage on the result.

The formula

Prompt

"Pull live stock prices, historical data, and market cap into a Google Sheet using GOOGLEFINANCE"

Google Sheets
=GOOGLEFINANCE("GOOG", "price")

The GOOGLEFINANCE function retrieves current or historical market data for a specified stock symbol.

Step-by-step breakdown

  1. Specify the stock symbol, e.g., 'GOOG' for Google.
  2. Choose the attribute you want, such as 'price', 'marketcap', or 'close'.
  3. Optionally, add a start date for historical data retrieval.
  4. Optionally, add an end date for historical data retrieval.

Edge cases & warnings

  • Using an invalid stock symbol will return an error.
  • Requesting data for a non-trading day will return no data.
  • Exceeding the Google Sheets function call limits may cause errors.
  • Historical data requests without valid dates will not return results.

Examples

Prompt

"=GOOGLEFINANCE("AAPL", "price")"

Google Sheets
Returns the current price of Apple Inc.
Prompt

"=GOOGLEFINANCE("MSFT", "marketcap")"

Google Sheets
Returns the market capitalization of Microsoft Corporation.

Frequently asked questions

What stock symbols can I use?

You can use any valid stock symbol listed on major exchanges.

Can I get historical data?

Yes, by specifying a start and end date in the formula.

Why is my data not updating?

Data may not update if the market is closed or if there are connectivity issues.

Can't find what you need?

Describe a formula in plain English. Formula Genius drafts and explains it, and can check supported formulas on sample cases.