This page will guide you through 3 simple steps of the Consolidate Sheets add-on. By the end, you'll have all your tables not only merged but also calculated into one Google Sheets summary report. And you will have that report either as values or as a formula that will automatically reflect all future changes made in original sheets.
Video: How to consolidate data from multiple Google sheets
Before you start
When selecting sheets to join, remember that a spreadsheet with the result should not exceed the Google Sheets limit for 10 million cells. If it does, the add-on will let you know and won't consolidate your data.
How to use the Consolidate Sheets add-on
Start Consolidate Sheets
Run the tool from the Google Sheets menu: Extensions > Consolidate Sheets > Start:
The add-on can also be found in the Merge & Combine
group of Power Tools
Step 1: Select sheets to consolidate
This step asks you to define the sheets you'd like to merge and calculate:
- Tick off the Sheets checkbox to select all sheets from the tree-view at once and add up them all.
- To merge even more Google sheets, click Add files from Drive.
There's a quick search available to find the files swiftly. Just enter the part of the file name into the Search
field of the Import files from Drive
window and hit Find
. Consolidate Sheets will check your entire Drive and show you the list of all partial and full name matches.
If you're not sure where the found spreadsheets are located, simply hover your mouse cursor over them and you'll see a tip with a full path:
The add-on is clever enough to let you open multiple files from Drive at once. Keep your Ctrl
key pressed and click each file that you need. Once they are selected (you'll see them turn to light-blue), press Add
To cancel the selection when choosing the files, click the spreadsheet one more time.
- In case you change your mind about any of the spreadsheets, select it and click the Exclude button. This will remove the file from the consolidation list.
- For each sheet that you choose, you can specify the range to add up. Click All data to the right of the sheet name (in the Range column) and do one of these:
- Enter the range from your keyboard.
- Click the Select range icon and highlight the necessary cells on the sheet manually.
- Click the Select range icon, pick any cell within the table you need, and press Auto select. The tool will identify the used range — cells with data till the first blank column & row — automatically:
When the required sheets are selected and the ranges are defined, hit Next.
Step 2: Select consolidation options
Here you are to decide what consolidation options will suit you best:
- Choose one of 11 commonly known functions from the drop-down menu to merge and calculate your tables: SUM, COUNT, AVERAGE, MAX, MIN, PRODUCT, COUNT NUMBERS, STDEV, STDEVP, VAR, VARP.
- Pick the way to summarize your data:
Click Next to choose the location for the consolidated data.
Tip. Or press Back to return to the first step and select other sheets or ranges.
The add-on lets you personalize the way it's going to consolidate data:
Choose how to transfer the data from the sheets
Use a formula to consolidate sheets. This one will pull data using a specially created formula. The formula will auto-update your summary table whenever records change in source sheets and if data appears or gets removed from the original tables.
At the moment, the formula can be created only if on step 2
you chose to sum or count data. Other aggregate functions are not supported.
Note. There are some peculiarities in the way the formula consolidates data. We strongly suggest you go through them to understand what exactly you can expect from the formula.
Tip. This is a beta feature at the moment: your feedback is eagerly anticipated and much appreciated!
Decide where to put the result
- The New spreadsheet option will merge and calculate the data in a completely new file.
- Choose New sheet and have the summary table placed to a new tab in the currently opened file.
- Or pick Custom location and specify a top left cell for the result. You can type it from your keyboard or click the Select range icon and locate the cell using the add-on.
Press Consolidate to merge and add up cells in Google Sheets.
Get the result
Once the add-on summarizes your data, it will prompt you how many sheets have been consolidated. You will find the result in a new place calculated just as you instructed in the options.
If you chose to put the result to a new spreadsheet on step 3
, the add-on will provide you with a link to open the new file right away:
Consolidate several files with a formula
When you consolidate data from different files and choose to have the result as a formula, the add-on uses standard Google Sheets IMPORTRANGE to pull records together.
By default, for the function to work properly, you must grant it permissions to connect to other spreadsheets. Otherwise, you will see formula errors rather than the consolidated summary.
Our add-on suggests the way of doing that correctly:
- Whenever IMPORTRANGE is used in the outcome formula, you will see a resulting message telling you how to connect the function to other files:
- For your convenience, the add-on creates two sheets:
- Consolidated data with your outcome formula.
- Connect files to IMPORTRANGE where you are to grant all permissions.
If you place the result to a new spreadsheet, click the Open new spreadsheet
link to jump right to the Connect files
tab. Run Consolidate Sheets first to enable our custom functions, then proceed with the steps below.
If you place the result to the current file, the Connect files sheet will become active automatically.
- The Connect files tab will always contain the following:
- the description of how to connect the sheets
- the reminder to run Consolidate Sheets (which is unnecessary unless you put the result to a new spreadsheet where our own custom functions must be enabled as well)
- the list of all spreadsheets that must be accessed by the formula
- the access status
Just hover your mouse over the errors in the Access status column and press each Allow access button that will appear:
- As soon as you do that, the Access status will say Connected and the cells will turn green:
Once all spreadsheets are connected, go to the Consolidated data tab and wait a bit till the result is loaded.
Limitations of the functions used in the formula
Along with our own custom functions, the resulting formula uses a couple of standard ones: QUERY and IMPORTRANGE. Here are some things you should know about the result returned by the formula:
- At the moment, the formula can be created only if on step 2 you chose to sum (SUM) or count (COUNT) data. Other aggregate functions are not supported.
- The formula always checks if the columns you consolidate from all sheets contain numeric values in the first two rows (excluding the header row). If there are no numeric records in the first two rows of any table at all, the formula will be built but it won't return anything to the result.
- If you place the formula to a new spreadsheet, our custom functions (CONSIDER_HEADERS_CONS, AGGREGATE_CONS, COLUMN_LIST_CONS) won't start working until you run Consolidate Sheets once. Since that file is newly created, this way you enable our custom functions there.
Do that before granting the IMPORTRANGE access and you won't have to reload the spreadsheet as well.
- Formulas won't work without our add-on. Whether you use the tool to create formulas or make copies of the shared files with formulas, you should have the add-on installed. Otherwise, there's just nothing to maintain our custom functions.