# Combine every tab into one master sheet in Google Sheets

[Español](https://pushbuild.com/es/free/scripts/merge-tabs-master/) · [Português](https://pushbuild.com/pt/free/scripts/merge-tabs-master/) · [Deutsch](https://pushbuild.com/de/free/scripts/merge-tabs-master/) · [Français](https://pushbuild.com/fr/free/scripts/merge-tabs-master/)

**Short answer:** Use a free Google Apps Script that builds a Master tab from all your tabs, with a Source column showing where every row came from. It runs in your own Google account; nothing is sent to us. Setup takes 5 steps: Check your tabs; Paste the script; Run mergeAll; Run it again when things change; Add a refresh button.

[More on our YouTube channel](https://www.youtube.com/@pushbuild)

## How to set it up

1. **Check your tabs.** Start with a tab for each store, month or salesperson, all with the same columns.
2. **Paste the script.** Open **Extensions**, then **Apps Script**, and paste in the code below. To pull in other spreadsheets as well, paste their IDs into the list at the top.
3. **Run mergeAll.** The first time it runs, Google asks for permission because the script works in your own account. Review it and allow it; that only happens once. The Master tab now has every row, plus a Source column with the tab or file it came from.
4. **Run it again when things change.** It rebuilds the Master tab from scratch each time, so there are no duplicates.
5. **Add a refresh button.** Insert a drawing on the Master tab, click its three dots, choose **Assign script** and type `mergeAll`. Anyone can then refresh it with one click.

Setup, step by step: 5 steps, done in your own Google account.

[Want this set up for your business? Free written scope in 20 minutes](https://pushbuild.com/scope.html?topic=Set%20up%3A%20Combine%20every%20tab%20into%20one%20master%20sheet%20in%20Google%20Sheets)

## Get the script

### Download it free

We'll email you the script (`Code.gs`). It runs in your own Google account; nothing is sent to us.

### Ready-made copy

A Google Sheet with the tabs and the script already in place: click Make a copy and it works.

$19 one-time, emailed straight after payment.

[Buy the ready-made copy](https://buy.stripe.com/6oU00661pgOGgMx3An7EQ0w)

### Have us install it for you

We set it up in your own Google account for you and check that it runs.

$49 one-time.

[Have us install it](https://buy.stripe.com/4gMeV0cpN0PIdAlgn97EQ0g)

## Questions

**What does this script do?**

It is a free Google Apps Script that builds a Master tab from all your tabs, with a Source column showing where every row came from.

**How do I set it up?**

In 5 steps: 1. Check your tabs; 2. Paste the script; 3. Run mergeAll; 4. Run it again when things change; 5. Add a refresh button. The full steps are on this page.

**Is it free, and does it send my data anywhere?**

It is free: enter your email on this page and we email you the script (`Code.gs`). It runs in your own Google account; nothing is sent to us.

**Can you install it for me?**

Yes. We set it up in your own Google account for you and check that it runs.

Want this connected to the rest of your tools? [Send us a short brief](https://pushbuild.com/services/google-apps-script.html#contact).

**Pushbuild** · Automate your business with Pushbuild: [pushbuild.com/contact](https://pushbuild.com/contact)

---
As of 2026-11-23. Source: https://pushbuild.com/free/scripts/merge-tabs-master/
