Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (2024)

Google Sheets has a built-in function called GOOGLEFINANCE which fetches current or historical securities information from Google Finance to a Google Sheet. This article details how this function can be used with our Spreadsheets data source to display market data on your Geckoboard dashboard.

Note: Widgets powered by spreadsheets using the GoogleFinance function refresh approx. every 15 minutes. If this isn't fast enough for your needs, you can run a script and set your own refresh interval.

Here's the syntax of the GOOGLEFINANCE function:

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

ticker: The ticker symbol for the security to consider.

attribute: (Optional - "price" by default ) - The attribute to fetch about ticker from Google Finance.

start_date: (Optional) - The start date when fetching historical data.

end_date|num_days: (Optional) - The end date when fetching historical data, or the number of days from start_date for which to return data.

interval: (Optional)- The frequency of returned data; either "DAILY" or "WEEKLY".

Example: How to display Google's stock price on a dashboard

In this example, we'll use the GOOGLEFINANCE function and a Google Sheet Number Widget to display Google's current stock price on a dashboard.

  1. To fetch Google's current stock price into Google Sheets, open a new Google Sheet and type the following formula into cell A2:

    =GOOGLEFINANCE("GOOG", "price")

    Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (1)

    Essentially, what this formula is doing is querying Google Finance for GOOG current price (GOOG is the ticker symbol for Google Inc.). Something similar happens when you Google "Google stock price".

  2. Save your Google Sheet and give it a name.

  3. With Google's stock price information in a Google Sheet, switch to your Geckoboard dashboard.

  4. Click Add widget.

  5. Choose the Spreadsheets integration.

  6. Select the Google Sheets file that you just saved.

  7. Select the Number widget.

  8. Select the appropriate Sheet (Sheet1 in this example).

  9. Enter the value of GOOG price in the Number selection (in the above example, it's A2).

  10. Disable the Comparison Visualization and adjust the title.

  11. Click Add to dashboard to add your widget to your dashboard.

    Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (2)

  12. And that's it! Your Geckoboard dashboard is now displaying the information found in Cell A2 of the Google Sheet – Google's current stock price.

    Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (3)

Widgets powered by spreadsheets using the GOOGLEFINANCE function refresh approx. every 15 minutes. If this isn't fast enough for your needs – and your G Suite account allows it – you can write a script that can further reduce the refresh times.

Please open a new Google Sheet to work through these next steps.

  1. Click on the Tools menu and select the option Script Editor.

  2. A Google Apps Script window will appear. Click the Blank Project option.

    Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (4)

  3. Replace the default function with the following script:

    Important note

    Make sure you follow the aforementioned instructions to the letter, otherwise, cells in the Sheet might not match the ones in the script and your countdown will not update automatically

    function getData() { SpreadsheetApp.getActiveSheet().getRange('A2').setValue('=GOOGLEFINANCE("GOOG", "price")');}
  4. Save your function and give it a name.

  5. From inside the Script Editor, click on the Edit menu and select the option Current project's triggers.

  6. Click on the project's trigger's menu.

    Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (5)

  7. Click the + Add Trigger button in the bottom right corner of the page.

    Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (6)

  8. Set a trigger for the myFunction function, that runs from Head on a Time-driven source that's triggered on a Minute timer.

    Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (7)

  9. Once you set the trigger (and so that you don't have to wait 1 hour to get data), run the script for the first time.

    Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (8)

You're done!

Now that you've written the script and set the trigger running, you'll be able to see the data on your Google Sheet refresh faster than the default 15 minutes. This will continue to refresh even when your Google Sheet is closed.

Potential Google server errors

We've found that a few times a week, a server error will occur on Google's end and the script will fail to run. By default, you'll receive an email to notify you that this has happened. Considering the script runs every minute of the day which totals 1440 times, a few times a week is nothing to be concerned about.

Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (9)

Tip: If you're interested in finance and economic data, you might find Quandl very useful. This website has a wide range of public (and private) data from a variety of sources available as hosted CSV files i.e. https://www.quandl.com/api/v3/datasets/WIKI/GOOGL.csv which can be used in combination with our CSV integration.

Related Articles

Display Firebase data in GeckoboardDisplay a 'quote of the day' text widget using spreadsheetsUse ImportData to display online data in GeckoboardImport BigQuery data into Geckoboard using Google SheetsDisplay Xero metrics in Geckoboard using datasets and Zapier
Use GoogleFinance to display market data in Geckoboard | Geckoboard Help Center (2024)

FAQs

How to use GOOGLEFINANCE in Google Sheets? ›

Access Google Finance data in Sheets
  1. Create a new sheet in Google Sheets 'sheets. ...
  2. To access the finance data, click on a cell and start your query by entering:=GOOGLEFINANCE(“The full query requires the following:=GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days], [interval])

How do I use Google sheets for stock market? ›

Setting Up Your Spreadsheet for Stock Data
  1. Open a new Google Sheets spreadsheet.
  2. In cell A1, enter the header "Ticker Symbol"
  3. In the cells below A1, list the ticker symbols for the stocks you want to track (e.g., "NASDAQ:GOOG", "NYSE:AAPL")
  4. In cell B1, enter the header "Attribute" (e.g., "Price", "Volume", "High", "Low")

How do I use GOOGLEFINANCE data in Excel? ›

To import stock prices from Google Finance into Excel, first go to the 'Data' tab and click on 'From Web' under 'Get External Data'. A dialog box will appear where you can enter the URL of the Google Finance page with the desired stock prices.

What is the GOOGLEFINANCE formula for stock price? ›

Googlefinance function returns current Stock Price by this function =GOOGLEFINANCE("Exchange:Stock_Name").

Does GOOGLEFINANCE still work? ›

Google still offers financial data for use Google Sheets spreadsheets through the use of the GOOGLEFINANCE formula, but the API is no longer available to users. If you are interested in using Google's financial data, learning about the GOOGLEFINANCE formula is the best way to access this data.

How do I use Google search in sheets? ›

To access the SEARCH function in Google Sheets, simply click on the cell where you want the result to appear, then type "=" followed by "SEARCH" in the formula bar. You can also find the SEARCH function in the "Functions" menu under the "Text" category.

How do I use Google Sheets in Excel? ›

How to convert a Google Sheet to Excel
  1. Open the Google Sheets spreadsheet. First, open the Google Sheets spreadsheet that you want to convert. ...
  2. Open the "File" menu. ...
  3. Hover your cursor over the "Download" option. ...
  4. Select the "Microsoft Excel" format option. ...
  5. Ensure your new Excel document has the right format and information.
Aug 15, 2024

How do I pull data from Google Sheets to Excel? ›

Transferring a Google Sheet to Microsoft Excel Copy Link
  1. Open the file in Google Sheets you wish to transfer to Excel.
  2. Select File → Download → Microsoft Excel.
  3. You should see a notification about your Google Sheet file downloading.
  4. Double clicking the downloaded sheet should automatically open it in Excel.
Nov 16, 2023

How do I use Google Sheets for financial planning? ›

How To Use Budget Template In Google Sheets?
  1. Step 1: Open Google Sheets. Navigate to your Google Drive or directly visit sheets.google.com. ...
  2. Step 2: Click on Budget Template. ...
  3. Step 3: Customize Your Budget Template. ...
  4. Step 4: Select the Cells You Want to Edit. ...
  5. Step 5: Your Budget Template is Ready.
Aug 12, 2024

Is GOOGLEFINANCE free? ›

...plus, it's 100% Free! The GOOGLEFINANCE function is a powerful tool for incorporating real-time financial data into Google Sheets. It allows users to access current stock prices, currency conversion rates, and historical data spanning days, weeks, months, or even years, all within a single function.

How good is GOOGLEFINANCE? ›

Google Finance is one of the best places to get a large volume of stock quotes and financial news as you explore your various investment options before investing your money. In addition to having a ton of outstanding information on thousands of companies, Google Finance also has an excellent Portfolio tool.

Where does GOOGLEFINANCE get its data? ›

End of day prices provided by Morningstar. Corporate actions and company metadata provided by Refinitiv. Intra-day data may be provided by ICE Data Services.

How do I use GOOGLEFINANCE currency in sheets? ›

Here's a step-by-step guide: In a cell, type "=GOOGLEFINANCE(" to start the function. Inside the parentheses, type "CURRENCY:" followed by the currency codes you want to convert from and to, separated by a space. For example, to convert from USD to EUR, you would type "CURRENCY:USDEUR".

How do I automatically get stock prices in Google Sheets? ›

Your formula will look like this: =GOOGLEFINANCE(“NASDAQ:GOOG”). The formula above only includes the required parameter — ticker — with no other specified optional parameters. That means the attribute parameter is set to price by default.

How do I use Google Analytics in Google Sheets? ›

Google Analytics in Google Sheets: Combine your reports with other imported data
  1. Connect your GA4 and Search Console Accounts.
  2. Join data based on page URLs in a few clicks in the Transform section.
  3. Choose the needed metrics for your report.
  4. Load the report to Google Sheets.
Aug 16, 2024

Top Articles
How to Fix HTTP and HTTPS Redirect Issue | Sitechecker
Management by objectives: MBO defined and explained [2024]
AllHere, praised for creating LAUSD’s $6M AI chatbot, files for bankruptcy
Splunk Stats Count By Hour
Caesars Rewards Loyalty Program Review [Previously Total Rewards]
Research Tome Neltharus
Napa Autocare Locator
Craigslist Motorcycles Jacksonville Florida
Otis Department Of Corrections
Apply A Mudpack Crossword
Katie Boyle Dancer Biography
Pro Groom Prices – The Pet Centre
Mary Kay Lipstick Conversion Chart PDF Form - FormsPal
Chastity Brainwash
Committees Of Correspondence | Encyclopedia.com
Driving Directions To Bed Bath & Beyond
Dtab Customs
Der Megatrend Urbanisierung
3476405416
Everything you need to know about Costco Travel (and why I love it) - The Points Guy
north jersey garage & moving sales - craigslist
Team C Lakewood
Dr Ayad Alsaadi
Xfinity Cup Race Today
Deshuesadero El Pulpo
Walmart Pharmacy Near Me Open
Gopher Hockey Forum
UPS Drop Off Location Finder
Cheap Motorcycles Craigslist
Kelsey Mcewen Photos
Marie Peppers Chronic Care Management
Blasphemous Painting Puzzle
Devotion Showtimes Near The Grand 16 - Pier Park
Albertville Memorial Funeral Home Obituaries
The Closest Walmart From My Location
A Comprehensive 360 Training Review (2021) — How Good Is It?
Anhedönia Last Name Origin
Flipper Zero Delivery Time
888-822-3743
Sound Of Freedom Showtimes Near Lewisburg Cinema 8
Dragon Ball Super Super Hero 123Movies
How Big Is 776 000 Acres On A Map
Cch Staffnet
Oakley Rae (Social Media Star) – Bio, Net Worth, Career, Age, Height, And More
Rocket League Tracker: A useful tool for every player
Cara Corcione Obituary
Suppress Spell Damage Poe
Sams La Habra Gas Price
Ark Silica Pearls Gfi
Immobiliare di Felice| Appartamento | Appartamento in vendita Porto San
Cataz.net Android Movies Apk
Pauline Frommer's Paris 2007 (Pauline Frommer Guides) - SILO.PUB
Latest Posts
Article information

Author: Neely Ledner

Last Updated:

Views: 6012

Rating: 4.1 / 5 (42 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.