How to Query From Multiple Sheets (Google Sheets Query)

Last Updated on October 31, 2023 by Jake Sheridan

In this tutorial, you will learn how to query from multiple sheets using Google Sheets Query.

How to Query From Multiple Sheets (Google Sheets Query)

The Query function in Google Sheets is the program’s most powerful and flexible feature. With this versatile tool, you can use data commands to change the data in Google Sheets. The majority of pivot table functionality may be duplicated by this single function, which takes the place of numerous others.

It is useful to learn how to use Google Sheet Query to import data from another tab or an entirely different Google Sheet as this allows you to show only a specific range of data. By being able to query from multiple sheets, it will ease you to compile multiple ranges of data from different sheets.

Once ready, we’ll get started by utilizing real-world examples to show you how to query from multiple sheets using Google Sheets Query.

Before using an example, you will need to understand how a Google Sheets Query work.

Google Sheets query requires 3 arguments:

1. the data range you want to look at
2. the query you want to run, in quotation marks
3. an optional number indicating the number of header rows in your data

Query from Multiple Sheets using Google Sheets Query

Before we begin we will need a group of data to be used for the Google Sheets query formula.

Step 1

We want to have a summary of the points earned for all teams for all seasons.

Step 2

To begin the query formula, we select an empty cell to input the formula. In this example, it will be A3. Then, we will insert an equal symbol followed by ‘QUERY’ and an open bracket. There will be a blue question mark at the side, you can click on it to reveal the arguments needed for this function to work.

Step 3

Next, we insert our argument. We will insert “{‘Team 1′!A1:B4;’Team 2′!A1:B4;’Team 3′!A1:B4;’Team 4’!A1:B4}”, which is our only argument. Always remember to close any formulas with a closing bracket to signify that the formula is now complete.

Step 4

Once you press Enter, the data points for all four teams will appear. It will look something like this.

Take Note!

1. The data returned from the Query function will not be formulated. You can edit the data to your own preferences.

Summary

That’s all there is to it. You are welcome to copy the example spreadsheet below to see how it is done. The most crucial lesson is to enjoy yourself while doing it.