What is document id in Google Sheets?

When to use it

Use IDs and URL parameters when scripting, embedding, or linking directly to a tab or form field.

When to skip it

Skip raw IDs for casual sharing when a normal share link or named range is enough.

Better Sheets resources

Related Tutorials

Watch how document ID works

Watch more tutorials
Activate A Certain Sheet When Opening a Spreadsheet

Activate A Certain Sheet When Opening a Spreadsheet

Create a short function that runs every time a spreadsheet file is open....
Advanced Coding in Google Sheets for Programmers

Advanced Coding in Google Sheets for Programmers

Add a Custom Menu Create Native-like Functions Get URL and Sheet ID's vi...
Every Tab Has a Unique ID called GID

Every Tab Has a Unique ID called GID

Less than 2 minute tip to help you link directly to a tab in a sheet. Ea...
Automatic Weekly Backup of Google Sheets

Automatic Weekly Backup of Google Sheets

Discover how to Save Your Sheets Every Week Automatically
Create an Internal Google Sheets Add-on

Create an Internal Google Sheets Add-on

The entire process to create and publish a Google Sheets Add-on internal...
Enter Google Drive File Name Get URL

Enter Google Drive File Name Get URL

Create a simple automation with an installable trigger that allows you t...

Related blog posts

Guides that explain document ID in more depth.

Browse the blog

Related terms