Cell Count By Tab
cellCountByTab(ss) reports how each tab uses the spreadsheet's 10 million cell cap. For every sheet it compares the used rectangle (lastRow…
Cell Count By Tab
cellCountByTab(ss) reports how each tab uses the spreadsheet's 10 million cell cap. For every sheet it compares the used rectangle (lastRow…
Trash Files Older Than
trashFilesOlderThan(folderId, days, opts) looks at the files in one folder (never subfolders) and trashes those whose last updated time is…
Find Closest Match
findClosestMatch(value, candidates, threshold) compares a value to a list of candidates with normalized Levenshtein distance (trimmed, case…
Trim Sheet To Data
Empty rows and columns at the edge of a tab still count toward the spreadsheet's 10 million cell limit (maxRows × maxColumns on every tab…
Replace In All Tabs
Sheets' built-in Find and Replace can also rewrite formula text — but only when Also search within formulas is checked. Leave that box alone…
Clean Cell Text
A lookup that should match "Ada Lovelace" fails because the cell is Ada\u00A0Lovelace with a non-breaking space, or has a zero-width…
Slugify
slugify(text, maxLength) turns a title like Q3 Invoice — Acme Co. into q3-invoice-acme-co: lowercase letters, numbers, and single hyphens…
Unmerge And Fill Down
Merged cells look tidy, but a script reading them only sees the value in the top-left cell. Every other cell in the block comes back empty…
Parse Loose Date
Imported sheets are full of dates that are really text: 03/04/2026, 4 Mar 2026, March 4th, 2026, 2026-03-04. parseLooseDate(value, {dayFirst…
Delete Triggers by Handler Name
Re-running an install function without cleanup creates duplicate triggers — and suddenly your sync fires five times. This deletes every…