How to Use Google Finance Function in Google Sheets (Beginner’s Guide)

how to use Google Finance Function in Google Sheets 29
Key Takeaways: How to Use Google Finance Function in Google Sheets

To Use Google Finance Function in Google Sheets

  1. Open your Google Sheets document.
  2. In a cell, enter the Google Finance Function with the attribute “Currency” and specify the currency pair you want to convert, e.g., =GOOGLEFINANCE(“Currency:USDCAD“).
  3. Press Enter to get the conversion rate for 1 USD to CAD.

OR

  1. Write the Google Finance Function, e.g., =GOOGLEFINANCE(“Exchange:Symbol“).
  2. Replace “Exchange” with the stock exchange and “Symbol” with the stock symbol you want to fetch.
  3. Hit Enter to get real-time market data, including the price and other attributes.

OR

  1. Write the Google Finance Function with the attributes “CLOSE” (or other attribute), “DATE(yy,mm,dd)” for the start date, and the number of days to retrieve data.
  2. For example, =GOOGLEFINANCE(“BTCUSD“,”CLOSE“,DATE(2022,6,20),20) fetches Bitcoin data against USD for the last 20 days.
  3. Press Enter to get the historical market data.

In this article, we will learn how to use Google Finance Function in Google sheets.

We have seen many things and learned many formulas and functions in google sheets so far, now it’s Google Finance Function to learn, it’s a very advanced and modern function that fetches data from the server and produce accurate results on your google sheets file.

Google Finance Function helps you in many ways, you can bring currencies data in seconds, you can exchange between currencies quickly, you can see the stock market data on your sheet, even you can make a future forecast about different markets like crypto, and stocks

This function is very powerful and it makes it easy to produce and analyze real-time results and the fluctuation coming in the data, you can use it to monitor the trend about the insights of different markets and take a good financial decision if you’re a finance professional.

For casual google sheets users, this Google Finance Function helps you to learn currency exchanges, oversee the market data, reading and analyze trends using daily up and down. Let’s see how it works and how we use this function

Use case of using Google Finance Function in Google Sheets

There are plenty of reasons we need to learn the Google Finance Function, its a very complex function and there are a lot of things we do use this Function, for example, we can bring real-time currency data in our google sheets, we can convert between all currencies, we can bring the price of any currency from a specified data to a specified data. We can see the stock prices from a specific date to a specific date, we can analyze trends of data coming in USD, Bitcoin, the Stock market, and any of the sub-categories.

Using custom formula within the Function we can bring large data and the data is auto-updated when it’s updated in real. This is the power of the Google Finance Function. We will see in detail we will see all the attributes and what are optional and mandatory attributes we will learn everything about it. For now, I think you have understood why we need to learn – How to use Google Finance Function in Google sheets.

How to use Google Finance Function in Google Sheets

To learn Google Finance Function step-by-step, we will first see the basic attributes of the function, we will see the optional and mandatory attributes, and we will see what each attribute is doing in the formula. And, of course, we will see multiple use cases to learn it completely and enable you to use it on your own and bring some great data from Google Finance using Google Finance Function, let’s move on to practical learning.

How to use Google Finance Function for Real-time Currency Conversion

In this section, we will learn how to use Google Finance Function for real-time currency conversion, we normally directly use the internet to see the currency exchange rates, we search their teams like USD to CAD, to find out the exchange rates, but what if you have google sheets that have the exchange rate data for as many currencies as you want and it auto-updates in every 20 minutes? Isn’t it excited? I think it is. So, we are going to learn how easy it is to do this in your google sheet file. Follow to below steps to learn along with me practically.

Step 1

Open the Google sheets file

how to use Google Finance Function in Google Sheets 1

Step 2

In any cell, write the Google Finance Function

how to use Google Finance Function in Google Sheets 2

=GOOGLEFINANCE()

Step 3

Now pass the attribute value as “Currency (Ticker is the value to tell google sheets, what exactly you want to do)

how to use Google Finance Function in Google Sheets 3

Step 4

After “Currency, within the same double quotes then a colon: then pass the two currency names i.e. USDCAD without space in between.

how to use Google Finance Function in Google Sheets 4

how to use Google Finance Function in Google Sheets 5

Step 5

Now close the double quotes, and parentheses the function will be

how to use Google Finance Function in Google Sheets 6

=GOOGLEFINANCE(“Currency:USDCAD”)

Step 6

Hit Enter you and will get the value of 1 USD against 1 CAD

how to use Google Finance Function in Google Sheets 7

This is how simply we can make currency conversion in google sheets, with an auto-update feature every 20 minutes.

Now, similarly, you can use a list of currency codes and directly converts them simply using the cell attributes in Google Finance Function.

Step 1

Write some Currency codes in your google sheets file

how to use Google Finance Function in Google Sheets 8

Step 2

In the adjacent column’s cell, write the Google Finance Formula

how to use Google Finance Function in Google Sheets 9

Step 3

Now you can pass the cell addresses instead of passing currency codes in the Google Finance Function using Ampersand &

how to use Google Finance Function in Google Sheets 10

how to use Google Finance Function in Google Sheets 11

This is how the function will look like

=GOOGLEFINANCE(“Currency:”&A2&B2)

Step 4

Drag down the function for the entire column

how to use Google Finance Function in Google Sheets 12

how to use Google Finance Function in Google Sheets 13

You saw how easily we converted from many-to-many currencies using a one-time function and dragging for the entire column.

But this is not the only thing you can do using Google Finance Function.

Now, in the next method, we will learn a new thing.

How to use Google Finance Function to Retrieve Market information and Data

In this section, we will learn how to use Google Finance Function to retrieve market information and data, in this section we will how to fetch real-time market data by various means, we can bring data for today, for 1 week back, and also the predicted data for 1 week in future. This helps us to see the overall market trend and help us to end up making proficient financial decision for personal or business.

Understanding the General syntax of Google Finance Function 

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

Ticker – The ticker is the first parameter, it’s mandatory to use to avoid discrepancies. i.e. using “NASDAQ:GOOG” instead of “GOOG.” only. both work the same but for better results “NASDAQ:GOOG” is recommended.

Attribute – The attribute is an optional argument, (its price by default), it is the exact property to fetch about the specified ticker, or Google Finance will automatically use a ticker that fits best for your problem (it can cause discrepancies).

Attributes that can be used in Google Finance Function are following

Attribute Name

Description

price

Real-time price quote, delayed by up to 20 minutes.

priceopen

 The price as of market open.

high

The current day’s high price.

low

The current day’s low price.

volume

The current day’s trading volume.

marketcap

The market capitalization of the stock.

tradetime

The time of the last trade.

datadelay

 How far delayed is the real-time data is.

volumeavg

The average daily trading volume.

pe

The price/earnings ratio.

eps

The earnings per share.

high52

The 52-week high price.

low52

The 52-week low price.

change

The price change since the previous trading day’s close.

beta

The beta value.

changepct

The percentage change in price since the previous trading day’s close

closeyest

The previous day’s closing price.

shares

The number of outstanding shares.

curreny

The currency in which the security is priced. Currencies don’t have trading windows, so open, low, high, and volume won’t return for this argument.

name

pulls the listed company name in Google Finance for the given ticker

 

In this example, we will how to fetch the data for different stocks

 

Step 1

Write the Google Finance Function

how to use Google Finance Function in Google Sheets 14

Step 2

Pass the “Exchange:Symbol” to fetch the price

how to use Google Finance Function in Google Sheets 15

Step 3

Hit Enter key, and you get the price for a specific company in a specific exchange

how to use Google Finance Function in Google Sheets 16

how to use Google Finance Function in Google Sheets 17

Step 4

You can use other attributes than the price

This is how you can use any attribute instead of (default attribute) price

how to use Google Finance Function in Google Sheets 18

how to use Google Finance Function in Google Sheets 19

how to use Google Finance Function in Google Sheets 20

how to use Google Finance Function in Google Sheets 21

how to use Google Finance Function in Google Sheets 22

How to use Google Finance Function to Retrieve Historical Market Data

Attributes that can be used in Google Finance Function are following

Attribute Name

Description

open

The opening price for the specified date(s).

close

The closing price for the specified date(s).

high

The high price for the specified date(s).

low

The low price for the specified date(s).

volume

The volume for the specified date(s).

all

All of the above

 

In this section, we will learn how to use Google Finance Function to retrieve historical market data in google sheets, we will see fetching the data from a specific date to a specific date. For this example, I have an example we will see practically how it is done.

The Google Finance syntax for this example will be

=GOOGLEFINANCE(“NASDAQ:GOOG”,”close”,DATE(2021,2,27),5)

NASDAQ: is the exchange

GOOG: is the symbol

CLOSE: is an attribute

DATE(): from the date

5: number of days after the specified date

Using a similar formula, we will pull the Bitcoin value against USD for the last 7 days

Step 1

Write the Google Finance Function

how to use Google Finance Function in Google Sheets 23

Step 2

Write the symbol for BTC to USD in double quotes “BTCUSD

how to use Google Finance Function in Google Sheets 24

Step 3

Add a comma, and pass the attribute in double quotes (in this example I used “Closed”

how to use Google Finance Function in Google Sheets 25

Step 4

Add a comma, and pass the Date(yy,mm,dd) (i passed Date(2022,07,10)

how to use Google Finance Function in Google Sheets 26

Step 5

Add a comma, and write the number of days, (here I will use 8 as my date is 9 days behind the current date)

how to use Google Finance Function in Google Sheets 27

Step 6

The Function will be like this

=GOOGLEFINANCE(“BTCUSD”,”CLOSE”,DATE(2022,6,20),20)

Press Enter key, and you’re done.

how to use Google Finance Function in Google Sheets 28

how to use Google Finance Function in Google Sheets 29

 

Similarly, you can do the same for currencies like USD to CAD, etc.

how to use Google Finance Function in Google Sheets 29

Similarly, you can use other symbols than only currencies like exchange “New York Stock Exchange”, and company names like “New Market Corporation” (NEU)

how to use Google Finance Function in Google Sheets 31

Notes

  • You can use the “all” attribute while working on the historical data sheet
  • All attributes will return all the attributes result in a different column. They include: open, close, high, low, and volume.
  • You can also 2 dates within the function starting and ending
  • The symbol should be perfectly spelled for accurate results
  • Sometimes you will get the #NA error, it’s normal for Google Finance sometimes not to produce results and return an error.
  • In case you have other errors, read the error that appeared on the function with a red line below the function
  • Google Finance function updates all the data every 20 minutes automatically

FAQ

How Google Finance function works?

Google Finance function retrieves the data from its server where all the data and information are kept, it retrieves real-time data and auto updates it every 20 minutes, since both are Google products so we can expect accurate results.

Conclusion

So today we learned a great function which is the Google Finance function, we learned how to use Google Finance Function in google sheets, and we learned various scenarios that started from the basics and ended up fetching real-time data for currencies, crypto, stocks, etc. I hope you guys like this article, please comment below if you have any problems see you soon with another great article. Thank you. Keep learning with Office Demy and don’t forget to subscribe to us.

Content Protection by DMCA.com

M. Shaiq Ansari

Hi, I am Shaiq, I am a highly skilled technical writer working full-time for Office Demy. I am specialized in Google Workspace and Microsoft Office applications. With a background in Software Engineering, I possess a deep understanding of the intricate functionalities and features of these productivity tools. Connect me on Linkedin https://www.linkedin.com/in/shaiq-ansari/

OfficeDemy.com
Logo
Enable registration in settings - general