Want to monitor your data but limited by in-app options? Maybe your data “lives” in an application that doesn’t offer a dashboard view of the metrics, it’s a difficult format to monitor, or perhaps you want other team members to be able to easily view the raw data without having to login. Regardless, monitoring your data is a hassle and you need a solution pronto.
Say hello to the spreadsheet integration. All you have to do is get your data from wherever it lives into an Excel spreadsheet or a Google Sheet. Easy peasy, right? Actually, it is! Here are four different ways to get almost any data into a spreadsheet.
GETTING YOUR DATA INTO SPREADSHEETS
1. Manual Input
Entering data by hand (typing it in) is likely the most common and least efficient way to get data into a spreadsheet. This method implies you regularly interact with spreadsheets and this is where your data is kept. Manual input is better suited to data that doesn’t update as frequently so we won’t dive into this process here. Instead, we’ll focus on other automated or real-time methods of getting data into spreadsheets.
2. Third-party tools (Excel Spreadsheets or Google Sheets)
A variety of services, add-ons and tools specialize in getting data from your app into spreadsheets.
For example, if you use one of the tools listed below, Supermetrics would allow you to schedule an automatic daily refresh of your data on Google Sheets. With just four quick steps, your data will be in Google Sheets.
- Install the add-on
- Choose your data source (see available sources below)
- Log in to data source and approve permission
- Start running queries in Google Sheets
It’s great, because loads of tools work with Supermetrics, including: Bing Ads, Facebook Ads, Facebook Insights, Google Adwords, Google Analytics, Google BigQuery, Google Search Console, Google+, Instagram, LinkedIn, MailChimp, Moz, Pinterest, Reddit, SEMrush, Stripe, Tumblr, Twitter, Vimeo, VKontakte, Yahoo Gemini, YouTube or your own database (MySQL, Oracle, Google Cloud SQL, SQL Server)
In a similar way, if you use Xero for accounting, Blink Reports can automatically import your data to Google Sheets. Another third party tool you might find useful is the Google Sheets’ add-on for Google Analytics.
Of course, third-party tools are also available for Microsoft Excel. For example, if you use Adobe Analytics, Report Builder is a plugin that enables you extract your Analytics data from Adobe into Excel.
An advantage of Google Sheets over Excel is that some of these tools can run in the background even when your spreadsheet isn’t opened.
This is only a short list of some of our favorite third-party tools, so if you’re looking for something specific you may want to do a quick online search.
3. Import Functions (Google Sheets)
An entire library of functions in Google Sheets allow you to achieve powerful results without having to write your own script. More specifically, Google Sheets offers five different import functions (listed below) that allow it to pull data into your spreadsheet from a variety of sources including XML, HTML, RSS and CSV - perfect for importing lists of blog posts, tweaks, product inventories or data from another service. Here are the specific functions along with the type of data they collect:
IMPORTDATA(url)- Imports data at a given url in .csv (comma-separated value) or .tsv (tab-separated value) format
IMPORTFEED(url, query, headers, num_items)- Imports a RSS or ATOM feed.
IMPORTHTML(url, query, index)- Imports data from a table or list within an HTML page.
IMPORTRANGE(spreadsheet_key, range_string)- Imports a range of cells from a specified spreadsheet.
IMPORTXML(url, xpath_query)- Imports data from any of various structured data types including XML, HTML, CSV, TSV, and RSS and ATOM XML feeds.
Using these functions, you can easily scrape data from web pages, feeds and files. Also, a built in finance function enables you to pull back market data.
Here are a few separate articles from our Customer Success team explaining how to use these functions to import different data sets into Google Sheets, which I think are super useful:
- Using Google Sheets’ IMPORTXML function
- Using Google Sheets’ IMPORTHTML function
- Using Google Sheets’ IMPORTDATA function to display CSV data
- Creating a weather widget using Google Sheets
- Creating a Countdown Timer using Google Sheets
- Using Google Sheets' GOOGLEFINANCE function to display market data
If you have other favorite import functions in Google Sheets we’d love to hear about them in the comments.
4. Scripting (Google Sheets)
Scripting (or in non-technical terms - writing a short bit of custom code) is a very powerful way to get data into Google Sheets. It’s basically an easier way to write large spreadsheet formulas and functions. Google Apps Script is a cloud based scripting language that provides easy ways to automate tasks across Google products and other services.
These scripts can run in the background, can be automated via triggers and have a community-based support model. The following example demonstrates use of this method to get Discourse data into Google Sheets.
At Geckoboard, we use Discourse for our Developer Community and have a dashboard widget to show the number of new topics created “Today”. We built that particular dashboard widget using a combination of Google Apps Scripts and our Spreadsheets integration.
Here are the 5 steps we took:
- Created a new Google Sheets' Spreadsheet
- Created a new script for our Spreadsheet (Tools > Script editor) and copy and pasted chrislkeller’s ImportJSON functions (to be able to import the output of Discourse’s API which is JSON).
- Looked in Discourse’s API documentation for a call that returned the latest topics created in the Community (which turns out to be https://community.geckoboard.com/latest.json)
- Added a new function in our script to call the endpoint identified on step 3 and update cell A1 with the response.
- Finally, added a trigger to run the function myFunction every hour.
With the data already in Google Sheets, it was simply a matter of using Google Sheets standard functions to identify the rows containing topics created Today and count them.
Google offers a variety of resources to help you make the most of Google Sheets using Google Apps Scripts. You might find some of their examples useful to get your data into Google Sheets.
Making your data actionable
Now that you’ve seen first hand how useful and powerful Google Sheets and Excel can be for importing data from various sources, it’s time to make your data actionable! Importing your data into spreadsheets is the first step. However, communicating progress to your team against those key metrics via a TV dashboard is the final step in making that data actionable.
Need some dashboard inspiration? Check out this example Spreadsheets Dashboard.