Blog /

How to Connect BigQuery to Google Sheets

The following guide will show you how to connect BigQuery to Google Sheets in a few simple steps.

Google BigQuery is a “serverless” cloud data warehouse that can scale compute and storage resources independently and automatically across petabytes of data. BigQuery is one of Google’s core data analytics solutions, along with Google Sheets and Looker, the BI platform that the search giant acquired in 2020.

In the guide below, we’ll outline the top ways to connect BigQuery to Google Sheets, including step-by-step walkthroughs for each option.

TL;DR: Coefficient offers the best method for connecting BigQuery to Google Sheets

Coefficient is the best method for connecting BigQuery to Google Sheets.

Integrate BigQuery with Google Sheets in a single click using Coefficient’s pre-built data connector. Coefficient imports live BigQuery data into Google Sheets. Imported data is continuously synced with BigQuery, keeping it automatically updated, so you can leverage the latest datasets in real time.

Coefficient speeds up projects for technical users, and allows non-technical users to access BigQuery data with an intuitive data inline previewer, rather than with SQL queries. Set limits and apply filters to your Google BigQuery data through a point-and-click interface that requires zero code.

data inline previewer coefficient

With Coefficient’s BigQuery integration, you can enhance data analysis, empower teams and users typically excluded by BigQuery’s SQL architecture, and streamline reporting and dashboard workflows.

BigQuery to Google Sheets Integration: Top Tools & Methods

Coefficient

Open a Google spreadsheet and click Extensions on the top menu.

Get add on Google Sheets

Type ‘Coefficient’ into the Google Workspace Marketplace search bar, and choose the Coefficient app from the list.

Google Workplace Marketplace data tools

Select the Google account you want to link to Coefficient. Then click “Allow” to accept the permissions.

Coefficient account permissions

Once the app is installed, go back into Google Sheets. Click Extensions on the top menu. Choose Coefficient from the drop down menu to launch the app.

Launch Coefficient in Google Sheets

Once you launch the app, the Coefficient sidebar will launch on the right-hand side of the screen.

Now click Import from… on the Coefficient sidebar.

Import data sources into Google Sheets with Coefficient

Pick BigQuery from the list of data sources, and then click Connect.

BigQuery to Google Sheets data connector

Authorize Coefficient to connect to BigQuery by inputting your GCP Project ID. Click Authorize.

GCP Project Google Sheets

Select whether to import your BigQuery datasets from tables or a custom SQL query. For this example, let’s import from tables.

With this option, you can use Coefficient’s no-code data inline previewer to quickly select the columns and tables you want to import from BigQuery into Google Sheets, minus all the complicated SQL queries. With Coefficient, you can also set row limits, use key filters, create pivot tables, and group your BigQuery data in the cloud.

no-code data import google sheets

Click Import and your BigQuery data will automatically import into  your Google spreadsheet:

BigQuery sales target table

Now schedule automatic data updates on an hourly, daily, or weekly basis to refresh the BigQuery data in your spreadsheet on a regular cadence. You can also instantly update the data in your spreadsheet by clicking the Refresh button at the top of your data import.

automatic data update google sheets

Your team can track updates to reports and KPIs by configuring email and Slack notifications.

slack alerts google sheets

These automated alerts keep your team members up-to-date with the latest mission-critical metrics, allowing them to operationalize the data.

Over 100K pros building reports use Coefficient to automate business systems data into their Google Sheets
"What an amazing app! Coefficient makes integrating some of the most complex systems unbelievably simple! Set up your integrations in less than a minute."
Yonatan Schvimer

Connected Sheets

In an effort to unify its various data analytics solutions, Google now packages Sheets with a built-in data connector for BigQuery called “Connected Sheets.”

You can access Connected Sheets directly from the Google Sheets interface. Before setting up the connector, make sure you have the required Google Cloud account configuration:

  • You need an enterprise Google Workspace account to use Connected Sheets with BigQuery.
  • You must create a new Google Cloud Project by navigating to Google Cloud Console and the Project Selector Page.
  • Make sure your Cloud Project’s billing is toggled to ‘on’.

After configuration, open a Google Sheet. Click Data on the top menu, Data Connectors from the drop down, and then Connect to BigQuery.

Untitled

Next, select the new Google Cloud Project.

For this example, let’s pull a public dataset from BigQuery into Google Sheets. Select Public datasets.

bigquery public dataset

Input Chicago in the search box and choose the chicago_taxi_trips dataset. Then select the taxi_trips table and press Connect.

bigquery table google sheets

The BigQuery data will populate in your Sheet. The sample import dataset below contains 202 million rows.

bigquery big data google sheets

You can import more data from Google BigQuery into Sheets with the Extract feature. This allows you to work off of a subset of your data on a separate Sheet.

Click the Extract button at the top of the table. Select the New Sheet option and click Create.

bigquery connected sheets extract

Choose your preferred filters, sorting order, columns, and the number of rows you want to import on the Extract Editor.

In the example below, we’ll import 25,000 rows with the fares, tips, tolls, and trip_start_timestamp columns sorted in descending order.

sort table descending google sheets

Click Apply to import the BigQuery data into Google Sheets.

import bigquery data google sheets

Although Google’s built-in BigQuery connector works great for big data projects, Ops users will find Coefficient’s ease of use, flexibility, and operationalizing features such as Slack alerts superior for their business use cases.

API Connector by Mixed Analytics

Technical users can leverage API Connector by Mixed Analytics to connect BigQuery to Google Sheets. The add-on lets you manually integrate any API with Google Sheets.

Start by installing the API Connector in the Google Workspace Marketplace.

API connector mixed analytics

Then create a new Project on the Google Cloud platform. Try to use the same Google account you use for BigQuery.

Google Cloud Platform API Connector

Next, configure the Consent screen by navigating to APIs & Services, then OAuth consent screen.  Select Internal as the User Type and click Create.

google cloud platform oauth

Provide your app name, user support email, and developer email address in the OAuth consent screen and leave the rest of the fields blank.

Then click ADD OR REMOVE SCOPES on the next screen and select the /auth/bigquery scope.

Scroll down and click Update. You should see your scope listed under Your sensitive scopes.

big query API google sheets

Click SAVE AND CONTINUE.

The final screen will show a summary of your settings. Click Back to Dashboard to go to the next step.

Within this same Project, click APIs & Services and Credentials. Then click +Create Credentials and OAuth client ID.

Fill in the required fields, as shown in the screenshot below.

big query API connector

Click Create when you’re done. Note your Client ID and Client Secret. You’ll need them for the following step.

Navigate to Extensions on the Google Sheets top menu. Then click API Connector and Manage Connections.

Scroll down the API Connector sidebar and select Add Custom OAuth. Provide the required information as shown below.

big query connector google sheets

Click Save, then Manage Connections. Click Connect, then Allow, on the popup window to login and authorize the connection.

Now it’s time to create your API request URL. For example, you can start by listing a table’s content in rows. The complete API URL would look something like this:

https://bigquery.googleapis.com/bigquery/v2/projects/project-id-12345/datasets/XYZ_Company/tables/script_googleapis_com_console_logs_20200701/data

Follow the format and use your own dataset, project, and table IDs. Now you can pull BigQuery API data into Google Sheets.

Go back to API Connector and launch the extension. Input the API URL you created in the previous step. Choose your custom BigQuery connection from the drop down menu under OAuth.

Input Key = Content-Type, Value = application/json under Headers.

Then create a new tab. Click Set current to use the specific tab as your data destination.  Name your request, then click Run. You should see your BigQuery data populate in Google Sheets.

Unlock a New Dimension of Analysis: Connect Google BigQuery to Google Sheets

You can connect BigQuery to Sheets through several different methods, from one-click apps to code-based tools. While Google’s Connected Sheets is a solid option for big data use cases, Coefficient is a better fit for the daily dashboarding, reporting, and analytics tasks of business users.

Get started for free with Coefficient and import your BigQuery data into Sheets in less than 60 seconds.

Wait, there's more!

Connect any system to Google Sheets in just seconds.
Get Started Free
100,000+ users on
Google Marketplace
Trusted by thousands
of companies