How To Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
How To Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
TABLE OF CONTENTS
https://www.sheetaki.com/googlefinance-function-google-sheets/ 1/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
Google Sheets has tons of advanced functions that you can use to fast-track your
work. In this article, we’ll take a look at an out-of-the-box function called
GOOGLEFINANCE to help you gain insights on up-to-date financial analytics.
Whenever you research a stock, you are likely to work with a spreadsheet, storing
data from reputable websites such as Google Finance. To save you the trouble of
manually copying and pasting market trends information, consider using the
GOOGLEFINANCE function of Google Sheets.
This function lets you access real-time data straight from Google Finance. Thus,
you no longer need to use highly technical scripts or programs just to keep track of
your stock portfolio efficiently.
You can import a wide range of relevant stock information such as the current
price, trading volume, and market capitalization into your spreadsheet with just a
few configurations.
This all seems convenient, right? Now, it’s time to learn how you can utilize the
GOOGLEFINANCE function in Google Sheets.
https://www.sheetaki.com/googlefinance-function-google-sheets/ 2/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
= just like other functions, the equal sign is the first character we should type in
to use GOOGLEFINANCE.
GOOGLEFINANCE is the function that we’ll need to import data from the
Google Finance website.
ticker is the first parameter. This parameter should hold both the exchange and
ticker symbols of the stock you want to know. The ticker symbol usually
consists of letters and/or numbers. To give you an example, the ticker of
Amazon, Inc. is AMZN. If you’re not sure about the company’s ticker symbol you
want to retrieve, you can always search it in Google Finance.
attribute is a parameter that you can use to specify the type of information you
would like to retrieve. You can use the following attributes taken from Google’s
official documentation.
Attribute Description
https://www.sheetaki.com/googlefinance-function-google-sheets/ 3/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
“change” The change in price since the end of the previous day’s
trading.
“changepct” The percentage change in price since the end of the previous
day’s trading.
For retrieving historical data, you can use the following attributes:
Attribute Description
https://www.sheetaki.com/googlefinance-function-google-sheets/ 4/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
You can also retrieve mutual fund data with these attributes:
Attribute Description
https://www.sheetaki.com/googlefinance-function-google-sheets/ 5/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
start_date is an optional parameter that can be used to specify the start date of
the historical data you wish to retrieve.
end_date|num_days is also an optional parameter that holds either the end
date or the number of days from the start date of the historical data you want to
retrieve.
interval is another optional parameter you can use to define the frequency of
returned data. Specify in this parameter if you want to retrieve “DAILY” or
“WEEKLY”. Alternatively, you can use 1 or 7.
https://www.sheetaki.com/googlefinance-function-google-sheets/ 6/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
The image above shows the current market data of Amazon taken from the Google
Finance website.
For instance, we want to retrieve the price and trading volume and the high and low
prices of the current day. Obviously, you can always fetch these attributes by
scanning through all the data fields and graphs on the website. However, this can
be cumbersome at times.
Google Sheets offer an easier and more efficient way of retrieving the required
data. In the image below, we utilized GOOGLEFINANCE to retrieve the four
attributes automatically.
https://www.sheetaki.com/googlefinance-function-google-sheets/ 7/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
You see how easy that is? Now, make a copy of the example data and try the
GOOGLEFINANCE function on your own.
We just showed you a concrete example of how to retrieve the current market data
using GOOGLEFINANCE. This time, let’s try to utilize this function to pull out
historical data. We’ll be using the same spreadsheet, so go ahead and click the link
above.
1. Upon opening the copy of the example spreadsheet, click Sheet2 to display the
following data.
The purpose of the spreadsheet is to record the weekly highest and lowest
prices of the Amazon market from January to March 2021. Given the
parameters, let’s use the GOOGLEFINANCE function to display the relevant
data next to the table.
2. We’ll retrieve the high price first. In cell D3, type in the equal sign ‘=’ followed
by ‘GOOGLEFINANCE(’ to start the function.
https://www.sheetaki.com/googlefinance-function-google-sheets/ 9/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
4. The next parameter we should indicate is the attribute. We need to retrieve the
high price, and the appropriate attribute for this is ‘high‘. Let’s specify it as our
attribute parameter.
5. The values for our last three parameters are already provided in the
spreadsheet. Therefore, it should be easy now to complete the function. Specify
the start_date, end_date, and interval parameters by indicating ‘B5‘, ‘B6‘, and
https://www.sheetaki.com/googlefinance-function-google-sheets/ 10/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
‘B7‘, respectively.
6. When all parameters have been specified, type the close parenthesis ‘)‘ and
press the Enter key on your keyboard. This will return a result similar to the data
below.
7. Good work! You just retrieved the records we need. At this point, try to display
Amazon’s previous low price records from January to March. Type in your
formula on cell F3.
https://www.sheetaki.com/googlefinance-function-google-sheets/ 11/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
There you go! You just learned another powerful function called
GOOGLEFINANCE. Use it along with other Google Sheets formulas to make your
work more efficient.
SHARE TWEET
Chan Pascual
As an IT professional, Google Sheets and MS Excel are included in my arsenal of skills. In fact, they are my
go-to tools for organizing and analyzing data. I deal with large data sets every day, but I don't have to worry
since these tools have me covered. I would love to share everything I know about them, so, make sure to
catch up!
https://www.sheetaki.com/googlefinance-function-google-sheets/ 12/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
— PREVIOUS ARTICLE
NEXT ARTICLE —
G — GOOGLE SHEETS
The Query with Importrange in Google Sheets is useful if you want to pull the exact data that…
https://www.sheetaki.com/googlefinance-function-google-sheets/ 13/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
G — GOOGLE SHEETS
Learning how to compare two sheets in Google Sheets is useful to identify matches and
differences between two…
https://www.sheetaki.com/googlefinance-function-google-sheets/ 14/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
G — GOOGLE SHEETS
Learning how to create a Gantt chart in Google Sheets is useful for creating a graphical display
of…
G — GOOGLE SHEETS
The PROPER function in Google Sheets is useful if you want to capitalize words on a given text…
https://www.sheetaki.com/googlefinance-function-google-sheets/ 15/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
G — GOOGLE SHEETS
The COUNTA function in Google Sheets is useful when you want to return the number of values
in…
https://www.sheetaki.com/googlefinance-function-google-sheets/ 16/17
1/14/22, 10:37 PM How to Use GOOGLEFINANCE Function in Google Sheets - Sheetaki
G — GOOGLE SHEETS
This guide will show you how you can compute reverse percentages in Google Sheets using
basic arithmetic operations.…
https://www.sheetaki.com/googlefinance-function-google-sheets/ 17/17