Google Sheets GOOGLEFINANCE Function: Syntax, Examples & Tips

The GOOGLEFINANCE function retrieves real-time financial data, such as stock prices and historical market information, directly into Sheets.
Google Sheets
GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days], [interval])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is GOOGLEFINANCE?
  3. A Practical Example
  4. GOOGLEFINANCE Formula
  5. Result of the Formula
  6. Why Use GOOGLEFINANCE?
  7. Key Takeaways:
  8. Example use case

Parameters

ticker:
The stock symbol or ticker of the company you want to retrieve financial data for, enclosed in quotation marks (e.g., "GOOG").

attribute:
The specific financial metric you want to retrieve, such as "price", "volume", or "marketcap". This is optional and defaults to "price".

start_date:
The date from which you want to start retrieving historical data, formatted as a date or a string (e.g., "2023-01-01"). This is optional.

end_date|num_days:
The date until which you want to retrieve historical data or the number of days from the start_date to retrieve data for. This is optional.

interval:
The frequency of the data points you want to retrieve, such as "DAILY" or "WEEKLY". This is optional and defaults to "DAILY".

What is GOOGLEFINANCE?

The GOOGLEFINANCE function in Google Sheets is a powerful tool that allows users to retrieve real-time financial data from Google Finance. This function can be used to pull information such as stock prices, historical data, currency exchange rates, and more, directly into your spreadsheet. It is particularly useful for investors, analysts, and anyone interested in tracking financial markets.

In simpler terms, GOOGLEFINANCE enables you to access and display financial data without having to manually search for it, making it a valuable resource for financial analysis and decision-making.

A Practical Example

Imagine you are tracking the stock prices of a few companies in your Google Sheets:

Stock Prices Table:

Ticker SymbolCompany NameCurrent Price
GOOGAlphabet Inc
AAPLApple Inc
MSFTMicrosoft Corp

You want to automatically populate the current stock prices for these companies.

GOOGLEFINANCE Formula

To achieve this, you would use the GOOGLEFINANCE function as follows:

Google Sheets
=GOOGLEFINANCE(A2, "price")

In this formula:

  • A2 is the cell containing the Ticker Symbol (e.g., GOOG).
  • "price" is the attribute you want to retrieve, which in this case is the current stock price.

Result of the Formula

When you apply the GOOGLEFINANCE formula to the Stock Prices Table, the output would look like this:

Ticker SymbolCompany NameCurrent Price
GOOGAlphabet Inc2800.00
AAPLApple Inc150.00
MSFTMicrosoft Corp300.00

As the stock prices fluctuate, the values in the Current Price column will update automatically.

Why Use GOOGLEFINANCE?

GOOGLEFINANCE is beneficial because it automates the process of retrieving financial data, saving you time and effort. It provides real-time updates, ensuring that your data is always current. Additionally, it can pull a wide range of financial information, making it a versatile tool for various financial analyses.

Key Takeaways:

  • GOOGLEFINANCE: A function that retrieves real-time financial data from Google Finance.
  • Automation: Automatically updates stock prices and other financial metrics without manual input.
  • Versatile: Can pull various types of financial data, including historical prices, currency exchange rates, and more.
  • Common Use Cases: Ideal for tracking stock portfolios, analyzing market trends, and financial reporting.

GOOGLEFINANCE is an essential function for anyone involved in finance or investment, providing a seamless way to enhance financial analysis and reporting capabilities.

Happy spreadsheeting!

Example use case

You have a table listing stock symbols in Column A and their current prices in Column B. By using the GOOGLEFINANCE formula, you can automatically pull live stock prices into your sheet, allowing for real-time tracking of investments without manual updates.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.