1. Home
  2. Functions
  3. Web
  4. GOOGLEFINANCE

GOOGLEFINANCE function

Gets current or past stock market data. Live web data is not available yet, so this returns #BLOCKED!.

Syntax

=GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days], [interval])

Arguments

ArgumentRequiredDescription
tickerRequiredThe ticker symbol
attributeOptionalWhat to fetch, like "price"
start_dateOptionalStart of the period
end_date|num_daysOptionalEnd of the period or number of days
intervalOptional"DAILY" or "WEEKLY"

How to use GOOGLEFINANCE

This function reads data from outside the workbook, so its result depends on what the source returns when the sheet calculates.

GOOGLEFINANCE takes 1 required argument and 4 optional arguments. Type =GOOGLEFINANCE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=GOOGLEFINANCE("NASDAQ:GOOG")Result #BLOCKED!

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.