Pull stock prices & stock data with the GOOGLEFINANCE function in Google Sheets (& Crypto too)

Spreadsheet Class · Intermediate ·📊 Data Analytics & Business Intelligence ·4y ago

Key Takeaways

The video demonstrates how to use the GOOGLEFINANCE function in Google Sheets to pull stock data and cryptocurrency prices, including real-time and historical data, and how to use the TODAY function to pull data from a specific date range.

Full Transcript

in this video i'm going to show you how to use the google finance function in google sheets to pull stock data as well as cryptocurrency prices but i have another video that i've linked below that shows you a lot more about how to pull cryptocurrency prices in this video we're mostly going to stick to pulling stock data so let's go over a few examples of how to use this function then i'll teach you more really important things about the criteria that you can enter and then we'll go over the rest of the examples so the easiest way that you can use the google finance function shown here in the formula bar is to simply indicate a ticker and then that's it and in this case i've typed the ticker symbol into cell a2 for the stock tesla and the symbol is tsla and then i've referred to cell a2 in the google finance function to specify the ticker tsla now since we have not entered an attribute and we're pulling real-time data the google finance function has defaulted to showing the current price or the real time price which at the moment is 905 dollars and so if all you want to do is pull the current price of a stock all you need to do is enter the ticker symbol into the formula and that's it now here off to the right you can see alternate versions of this formula so here you can see what it looks like when you enter the stock symbol directly into the formula instead of using a cell reference i have the symbol tsla entered between quotation marks and this formula would do the exact same thing as the formula that's in cell b2 now the same thing goes for this formula here where we've indicated the attribute price again when pulling real-time data the google finance function is going to default to the attribute price if you do not specify it but if you do specify it this formula would do the same thing as the one in cell b2 now speaking of cell references this makes it really handy to be able to change the stock symbol in your spreadsheet without having to modify the formula and so if i wanted to change tesla to google i would simply change the stock symbol and then the price would change and so this is what makes using cell references very handy and you can use cell references for any of the criteria and the formula so here's another example where we've indicated the attribute market cap where the google finance function is showing us the market cap of tesla and if you're not sure what market cap is or any of the other terms that you hear in this video i've linked the article below which goes into even more detail here's another example of pulling a different type of data or a different attribute in this case we've pulled the volume for the stock tesla which at this time was eleven million six hundred and fifty three thousand six hundred and ten so let's go over an example of pulling historical data real quickly then i'll show you the different attributes and then we'll continue with the examples so here in cell d1 i've entered a formula which is pulling historical data with the google finance function we've indicated the ticker in cell b1 which is the stock tesla again then we type a comma and indicate the attribute which in this case is price and then we indicate the start date and the end date and in this case i've typed the start date and the end date into spreadsheet cells and then i'm referring to those cells within the formula and this is the easiest way to indicate start dates and end dates with the google finance function but i'll show you alternate methods here in just a minute so we're telling google sheets to pull the historical prices for tesla starting at 1-1-2021 and ending at the end of the same year on 12-31-2021 and this formula is going to show us daily prices as you can see here in column d because we have not indicated an interval and the formula will automatically default to a daily interval if you do not specify an interval when pulling historical data with the google finance function so here we have the daily historical prices for tesla now you'll see that it does not start on 1-1 and it starts on 1-4 and this is because it can only show data for trading days where the market was open so this does not include weekends and holidays etc and for each data type with historical data it's going to show two columns the date and then the value that you pulled which again in this case is price now notice that in cell e1 it says close and this is because we're using the price attribute for historical data and when we simply indicate price for historical data the formula is going to default to showing the closing price for each day now off to the right here we have some formulas that are written differently but perform the same function so here in this formula in row 2 we've indicated an interval of daily and again this will do the same thing as the formula where we did not indicate an interval at all because this formula is defaulting to a daily interval and so it would do the same thing if we indicated a daily interval now in this formula in row 3 instead of using cell references to enter the dates into a cell and then refer to those cells with the formula we're simply using the date function to indicate a date in the google finance function and so the date function as you can see here first you indicate the year then the month and then the day and as you can see this is a little bit more tedious and so this is why most people prefer to use cell references instead alright so before we get back to the other examples now here's what i really want to show you and this is the different attributes of the different types of data that you can pull with the google finance function and this data that you're seeing right here is directly from google and again i'm not going to go over each one so you can check out the article and learn at your own pace but you can see here that there's different attributes for real-time data and also attributes for historical data all right so let's quickly go over an example of pulling weekly historical data and this is going to be the same as the last example except we're going to indicate an interval of weekly after indicating the start date and the end date and so as you can see here we've entered the interval weekly between quotation marks and now the dates in the formula are incrementing by seven days rather than by one day so another formula that you can use to combine with the google finance function to indicate start dates and end dates is the today function the today function all by itself simply displays today's date but you can also use this with other formulas like right here where we have used the today function in place of an end date so this is going to tell google sheets to display data with the starting date of 4-9 and an ending date of today so it's always going to display data from the start date up until today now an even more useful way of using the today function with the google finance function is by using subtraction to indicate the start date so just like the last example we've indicated today as the end date but the start date we've used today minus nine and so we're telling google sheets show us all of the data from nine days ago up until today and so this is an incredibly useful way to show all of the most recent data without having to constantly change your start dates and your end dates all right so again there's a lot of different attributes that you can pull but a special one that you can use is the attribute called all which pulls the open price the high price the low price the closing price and the volume all in one single formula and that's the cool thing about it is that it only uses one formula and it only shows one column of dates attached to all of this different data and so it uses less resources and takes up less columns than having to do one formula for each of these different data types so here as you can see on top i've told google sheets to pull all data for the stock gme which is gamestop and i've indicated a starting date of 30 days before today and an ending date of today and one of the cool things that you can do when you have the open high low and close prices is you can make a candlestick chart such as here where we're showing a traditional stock chart that shows the open high low and the close for each day alright so let's go over one more quick example of how to pull cryptocurrency prices with the google finance function and so here in cell a2 i've indicated the symbol btc usd btc is the symbol for bitcoin but we have to indicate a currency pair and so we're indicating bitcoin and u.s dollars and so when we enter this stock symbol or this crypto symbol into the google finance function it's showing us the current price for bitcoin which is almost 39 000 at this time but the number of cryptocurrencies that this formula works with is very limited and there's actually multiple ways full cryptocurrency prices in google sheets and i've linked my video that teaches you how to do exactly that in the description so i hope you like this video if you did please like and subscribe and i hope you have a great day

Original Description

Article: https://www.spreadsheetclass.com/googlefinance-function-stock-crypto-data-google-sheets/ Stock tracker templates: https://youtu.be/vqAua-vh5k4 Pull crypto prices: https://youtu.be/YKn0mTpxGjk Get help with your spreadsheet project, or personalized training: https://www.spreadsheetclass.com/consulting/ Get the ultimate formulas cheat sheet https://www.spreadsheetclass.com/best-google-sheets-cheat-sheet/ Learn to build dashboards in Google Sheets: https://www.spreadsheetclass.com/google-sheets-dashboards-course/ In this video I am going to show you all of the different ways to use the GOOGLEFINANCE function, to pull stock prices and other stock data in Google Sheets (I will also show you a basic example of how to pull cryptocurrency prices). You'll learn how to pull real-time stock data, as well as historical stock data. I'll show you how to use the DATE function and the TODAY function along with the GOOGLEFINANCE function, and I'll show you a variety of "attributes" / data types that you can pull with the GOOGLEFINANCE function in Google Sheets.
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Spreadsheet Class · Spreadsheet Class · 54 of 60

1 How to use the FILTER function in Google Sheets (Single or Multiple Conditions)
How to use the FILTER function in Google Sheets (Single or Multiple Conditions)
Spreadsheet Class
2 5 formulas that combine columns in Google Sheets (Horizontal and Vertical)
5 formulas that combine columns in Google Sheets (Horizontal and Vertical)
Spreadsheet Class
3 All the ways to extract text and numbers in Google Sheets
All the ways to extract text and numbers in Google Sheets
Spreadsheet Class
4 How to filter based on a list in Google Sheets
How to filter based on a list in Google Sheets
Spreadsheet Class
5 How to fix the "FILTER has mismatched range sizes" error in Google Sheets
How to fix the "FILTER has mismatched range sizes" error in Google Sheets
Spreadsheet Class
6 How to color cells, and alternate row colors in Google Sheets
How to color cells, and alternate row colors in Google Sheets
Spreadsheet Class
7 How to automatically create a series of values in Google Sheets
How to automatically create a series of values in Google Sheets
Spreadsheet Class
8 Google Sheets Beginner Tutorial
Google Sheets Beginner Tutorial
Spreadsheet Class
9 How to make a Dashboard in Google Sheets (Full Tutorial)
How to make a Dashboard in Google Sheets (Full Tutorial)
Spreadsheet Class
10 Using the SORT and FILTER function in the same formula in Google Sheets
Using the SORT and FILTER function in the same formula in Google Sheets
Spreadsheet Class
11 ARRAYFORMULA function: Apply a formula to an entire column in Google Sheets
ARRAYFORMULA function: Apply a formula to an entire column in Google Sheets
Spreadsheet Class
12 Automatically resize columns in Google Sheets with Fit to Data
Automatically resize columns in Google Sheets with Fit to Data
Spreadsheet Class
13 How to import or convert a CSV file into Google Sheets
How to import or convert a CSV file into Google Sheets
Spreadsheet Class
14 How to export / download a CSV from Google Sheets
How to export / download a CSV from Google Sheets
Spreadsheet Class
15 How to change text case in Google Sheets  with UPPER LOWER and PROPER
How to change text case in Google Sheets with UPPER LOWER and PROPER
Spreadsheet Class
16 How to use the Calendar Template in Google Sheets
How to use the Calendar Template in Google Sheets
Spreadsheet Class
17 How to rotate text in Google Sheets
How to rotate text in Google Sheets
Spreadsheet Class
18 How to create charts in Google Sheets (And how to customize them too)
How to create charts in Google Sheets (And how to customize them too)
Spreadsheet Class
19 How to copy formulas, and lock cell references in Google Sheets (Relative & absolute references)
How to copy formulas, and lock cell references in Google Sheets (Relative & absolute references)
Spreadsheet Class
20 How to copy and paste values only in Google Sheets
How to copy and paste values only in Google Sheets
Spreadsheet Class
21 How to fix the "Circular Dependency Detected" error in Google Sheets
How to fix the "Circular Dependency Detected" error in Google Sheets
Spreadsheet Class
22 Evenly space columns in Google Sheets (Make columns the same size quickly)
Evenly space columns in Google Sheets (Make columns the same size quickly)
Spreadsheet Class
23 Doing math in Google Sheets: Add, Sum, Subtract, Multiply, Divide, Square, Square Root
Doing math in Google Sheets: Add, Sum, Subtract, Multiply, Divide, Square, Square Root
Spreadsheet Class
24 How to filter horizontally in Google Sheets (Filter columns)
How to filter horizontally in Google Sheets (Filter columns)
Spreadsheet Class
25 UNIQUE function: Removing duplicates with 2 methods in Google Sheets
UNIQUE function: Removing duplicates with 2 methods in Google Sheets
Spreadsheet Class
26 Report Builder template for Google Sheets (Automatically organize / calculate your data)
Report Builder template for Google Sheets (Automatically organize / calculate your data)
Spreadsheet Class
27 Build a Google Sheets dashboard with Google Forms data (Automated)
Build a Google Sheets dashboard with Google Forms data (Automated)
Spreadsheet Class
28 Guitar tabs template for Google Sheets (& PDF) | Create your songs in a Google spreadsheet
Guitar tabs template for Google Sheets (& PDF) | Create your songs in a Google spreadsheet
Spreadsheet Class
29 Interactive Google Sheets dashboard with drop down menus tutorial
Interactive Google Sheets dashboard with drop down menus tutorial
Spreadsheet Class
30 Student attendance dashboard tutorial in Google Sheets: Simple + advanced
Student attendance dashboard tutorial in Google Sheets: Simple + advanced
Spreadsheet Class
31 SORT function in Google Sheets (Sort data vertically or horizontally)
SORT function in Google Sheets (Sort data vertically or horizontally)
Spreadsheet Class
32 How to use the SORT function in Google Sheets (Quick Version)
How to use the SORT function in Google Sheets (Quick Version)
Spreadsheet Class
33 How to copy chart formatting and duplicate charts in Google Sheets
How to copy chart formatting and duplicate charts in Google Sheets
Spreadsheet Class
34 How to copy a tab to a new file / sheet in Google Sheets
How to copy a tab to a new file / sheet in Google Sheets
Spreadsheet Class
35 How to duplicate tabs in Google Sheets
How to duplicate tabs in Google Sheets
Spreadsheet Class
36 How to hide and unhide tabs in Google Sheets
How to hide and unhide tabs in Google Sheets
Spreadsheet Class
37 How to make a copy of a file in Google Sheets
How to make a copy of a file in Google Sheets
Spreadsheet Class
38 How to change tab color in Google Sheets
How to change tab color in Google Sheets
Spreadsheet Class
39 How to insert, delete, rename, and reorder tabs in Google Sheets
How to insert, delete, rename, and reorder tabs in Google Sheets
Spreadsheet Class
40 How to move a chart to another sheet in Google Sheets
How to move a chart to another sheet in Google Sheets
Spreadsheet Class
41 How to wrap text, unwrap text, and clip text in Google Sheets
How to wrap text, unwrap text, and clip text in Google Sheets
Spreadsheet Class
42 Switch columns and rows with the TRANSPOSE function in Google Sheets
Switch columns and rows with the TRANSPOSE function in Google Sheets
Spreadsheet Class
43 Project management timeline template for Google Sheets (Gantt Chart)
Project management timeline template for Google Sheets (Gantt Chart)
Spreadsheet Class
44 Build a dashboard in 3 simple steps (Google Sheets)
Build a dashboard in 3 simple steps (Google Sheets)
Spreadsheet Class
45 Pull data from websites in Google Sheets with IMPORTXML function | Web scraping (Stock prices)
Pull data from websites in Google Sheets with IMPORTXML function | Web scraping (Stock prices)
Spreadsheet Class
46 (Quick version) Pulling data from websites with IMPORTXML function | Google Sheets web scraping
(Quick version) Pulling data from websites with IMPORTXML function | Google Sheets web scraping
Spreadsheet Class
47 Pull cryptocurrency prices in Google Sheets (2 methods) | GOOGLEFINANCE and IMPORTXML crypto prices
Pull cryptocurrency prices in Google Sheets (2 methods) | GOOGLEFINANCE and IMPORTXML crypto prices
Spreadsheet Class
48 Fast & simple dashboard tutorial for Google Sheets (Build in under 15 minutes)
Fast & simple dashboard tutorial for Google Sheets (Build in under 15 minutes)
Spreadsheet Class
49 How to create drop-down lists in Google Sheets (Data validation)
How to create drop-down lists in Google Sheets (Data validation)
Spreadsheet Class
50 The ultimate cheat sheet for Google Sheets (Formulas, charts, shortcuts, and more)
The ultimate cheat sheet for Google Sheets (Formulas, charts, shortcuts, and more)
Spreadsheet Class
51 3 ways to pull crypto prices into Google Sheets | GOOGLEFINANCE, IMPORTXML, IMPORTDATA
3 ways to pull crypto prices into Google Sheets | GOOGLEFINANCE, IMPORTXML, IMPORTDATA
Spreadsheet Class
52 Stock & crypto tracker templates for Google Sheets (Portfolio, Analysis, Watchlist, Screener)
Stock & crypto tracker templates for Google Sheets (Portfolio, Analysis, Watchlist, Screener)
Spreadsheet Class
53 How to indent in Google Sheets (5 Methods)
How to indent in Google Sheets (5 Methods)
Spreadsheet Class
Pull stock prices & stock data with the GOOGLEFINANCE function in Google Sheets (& Crypto too)
Pull stock prices & stock data with the GOOGLEFINANCE function in Google Sheets (& Crypto too)
Spreadsheet Class
55 How to create and customize charts in Google Sheets (Quick version)
How to create and customize charts in Google Sheets (Quick version)
Spreadsheet Class
56 Apply a formula to an entire column in Google Sheets with the ARRAYFORMULA function | Quick Version
Apply a formula to an entire column in Google Sheets with the ARRAYFORMULA function | Quick Version
Spreadsheet Class
57 How to insert a new line in a cell (or formula) in Google Sheets
How to insert a new line in a cell (or formula) in Google Sheets
Spreadsheet Class
58 How to freeze rows & columns (& How to unfreeze) in Google Sheets
How to freeze rows & columns (& How to unfreeze) in Google Sheets
Spreadsheet Class
59 How to add and sum in Google Sheets (Addition and SUM function)
How to add and sum in Google Sheets (Addition and SUM function)
Spreadsheet Class
60 How to average in Google Sheets (Using the AVERAGE function)
How to average in Google Sheets (Using the AVERAGE function)
Spreadsheet Class

This video teaches how to use the GOOGLEFINANCE function in Google Sheets to pull stock data and cryptocurrency prices, and how to use the TODAY function to pull data from a specific date range. It also covers how to create a candlestick chart showing open, high, low, and close prices for each day. The video is useful for those who want to analyze stock data and create visualizations in Google Sheets.

Key Takeaways
  1. Enter a ticker symbol into the formula bar
  2. Specify a start date and end date for historical data
  3. Use cell references for the stock symbol and other criteria
  4. Use the TODAY function to pull data from a specific date range
  5. Create a candlestick chart showing open, high, low, and close prices for each day
💡 The GOOGLEFINANCE function in Google Sheets can pull multiple attributes of stock data, including real-time and historical data, and can be used to create visualizations such as candlestick charts.

Related AI Lessons

Top 5 DBMS Concepts (2026) | Perfectnotes
Learn the top 5 DBMS concepts to manage data efficiently in applications
Medium · Data Science
The Nervous System of the Telco: Unlocking the Real-Time Power of the Network Element Interfaces…
Unlock the power of network element interfaces to enable real-time insights in telco operations
Medium · Data Science
Enhanced RFM Analysis for Customer Segmentation using K-Prototypes
Learn how to enhance RFM analysis for customer segmentation using K-Prototypes, a clustering algorithm that handles categorical and numerical data, to improve marketing strategies and customer targeting.
Medium · Machine Learning
One Survey Asked Rich People Ten Times More Often Than Poor People.
Learn how a biased survey sample can impact data analysis and decision-making, and why it's crucial to ensure representative sampling in data science
Medium · Data Science
Up next
Spreadsheet Guy Meets the CFO: "Define How Much"
Digital Transformation with Eric Kimberling
Watch →