Google Apps Script snippet library

Short, original snippets you can paste into the Apps Script editor (Extensions → Apps Script in a Google Sheet). Official reference: developers.google.com/apps-script. Quotas are listed at the official quotas page; we do not repeat unofficial numbers. Last written November 30, 2026.

These snippets are examples, not a Google product, and not advice about your data. Review them before you run them on a spreadsheet that matters.