How to Make Mailing Labels from Google Sheets: One Label per Household, Clean Addresses and Return-Address Labels (2026)
Holiday cards, newsletters, donation appeals, invitations, a school or club mailing: the list usually lives in a Google Sheet with one row per person, and that is exactly what goes wrong when you print labels from it. Two people at the same house get two labels (spelled “12 North Main Street, Apt. 4” on one row and “12 n main st #4” on the other), Sheets has quietly turned ZIP code 02134 into 2134, apartment numbers sit on a line of their own, and nobody notices the row with no street until the envelope is in hand. This guide is about the list and the address block: it combines people who share an address into one label (“Alex & Sam Doe”, “The Doe Family”, “Alex Doe and Jamie Roe”), formats every address the way the Postal Service's addressing standard describes, flags the rows that need a human, and makes a sheet of return-address labels. For the printing itself (a label-sheet grid in Google Docs, starting halfway down a part-used sheet) it reuses the script from the name badges and place cards guide.
Step 1: a Contacts tab, one row per person
Keep one row per person, not per household. That way birthdays, emails and “moved away” notes stay with the right person, and the households are worked out fresh every time you print. Name the tab Contacts. The script finds columns by their header, in any order:
| Header | What goes in it |
|---|---|
| First name, Last name | One person. A single Name column also works. |
| Addressee | Optional: exact wording for the household's name line, such as “Dr. Alex Doe & Family”. One filled-in row per household is enough. |
| Household | Optional: any shared code (“H7”) that forces rows onto one label even when the addresses differ, or keeps an adult child at the same address on a label of their own (give them a different code). |
| Organization | Optional: company, school or church for business mail |
| Address 1 | Street address or PO Box. Required. |
| Address 2 | Optional: Apt, Suite, Unit, building or “c/o” line |
| City, State, ZIP | State as the 2-letter abbreviation for US addresses. Region, Province and Postal code are accepted as header names too. |
| Country | Blank for domestic mail. For mail abroad, the country name in full. |
| Blank or Yes to mail. No, Do not mail, Moved, Returned, Deceased or Unsubscribed leave the person off the labels (the rest of their household is still mailed). |
Importing from a contacts export or a form? Columns named like Address 1 - Street, Address 1 - City, Address 1 - Region and Address 1 - Postal Code are recognized as well, so you can often paste an export in as it is.
Step 2: stop Sheets from eating ZIP codes, and spot shared addresses
Sheets reads 02134 as the number 2134 and drops the zero. Before you paste or import, select the ZIP column and choose Format › Number › Plain text. To repair a column that already lost its zeros, put this in a spare column, fill down, then copy and Paste special › Values only back over the ZIPs (it also turns nine-digit numbers into ZIP+4 with the hyphen):
=IF(ISNUMBER(J2), IF(J2 > 99999, TEXT(J2, "00000-0000"), TEXT(J2, "00000")), J2)
A quick household check without any script: an Address key helper column that ignores case, spaces and punctuation, then a highlight on every row that shares one. In M2, fill down (F = Address 1, G = Address 2, J = ZIP):
=IF(F2="", "", REGEXREPLACE(UPPER(F2 & G2), "[^A-Z0-9]", "") & "|" & LEFT(J2, 5))
Select A2:L, open Format › Conditional formatting, choose Custom formula is and enter =AND($M2<>"", COUNTIF($M:$M, $M2)>1). Sort by column M and the households sit together. =COUNTUNIQUE(M2:M) tells you roughly how many labels to buy. The formula key won't match “Street” with “St” or “Apt” with “#”; the script in Step 3 does.
And if you only need to see an address block in one cell (for a mail merge or a quick copy), TEXTJOIN skips the empty parts, so a blank Address 2 doesn't leave a gap. Turn on Format › Wrapping › Wrap to see the lines:
=TEXTJOIN(CHAR(10), TRUE, TRIM(A2 & " " & B2), E2, TRIM(F2 & " " & G2), H2 & ", " & I2 & " " & J2)
Step 3: the script that builds one label per household
Open Extensions › Apps Script, paste the script below and save. Reload the sheet and a Labels menu appears; choose Build household labels and approve the permissions the first time. The script only reads the Contacts tab. It writes the result to a Labels tab (one row per label: Line 1 to Line 6, People, Rows, Check) and the rows it could not use to a Label problems tab, and rewrites both on every run, so fix the Contacts tab and run it again as often as you like.
/**
* Mailing labels from a "Contacts" tab: one row per person. The script
* combines people who live at the same address into ONE label per household,
* formats each address block for mailing and writes the result to a "Labels"
* tab (Line 1 ... Line 6), ready to print on a label sheet or merge.
* Headers used (any order, case doesn't matter): First name, Last name,
* Addressee, Household, Organization, Address 1, Address 2, City, State,
* ZIP, Country, Mail. Required: Address 1 and City.
* Also understood: Street, Company, Region, Province, Postal code,
* Address 1 - Street / - City / - Region / - Postal code / - Country.
* The Contacts tab is only read; the Labels and Label problems tabs are
* rewritten on every run.
* Can share a project with the name badges guide's printing script (delete
* its onOpen; the Labels menu below runs it).
*/
const SOURCE_TAB = 'Contacts';
const LABELS_TAB = 'Labels';
const PROBLEMS_TAB = 'Label problems';
const LABEL_SORT = 'zip'; // 'zip' (ZIP/postal code, then city), 'name' (last name) or 'sheet' (row order)
const UPPERCASE = false; // true: ALL CAPS, the Postal Service's preferred style
const NO_PUNCTUATION = false; // true: drop periods and commas (hyphens and # stay)
const MAX_LINE = 35; // longer lines are flagged; check what fits your label in a test print
const MAX_LINES = 5; // more lines than this are flagged
const FAMILY_AT = 3; // this many people with one last name become "The Doe Family"; 0 = never
const FAMILY_WORD = 'Family';
const HOME_COUNTRY = 'United States'; // rows with a blank (or this) Country get no country line
const SKIP_MAIL = /^(no|n|do not mail|dnm|moved|deceased|returned|unsubscribed|remove)$/i;
// Return-address labels: makeReturnLabels() fills a tab with this block repeated.
const RETURN_TAB = 'Return labels';
const RETURN_ADDRESS = ['Your name or organization', '123 Main St', 'Anytown, ST 00000'];
const RETURN_COUNT = 30; // one Avery 5160-size sheet holds 30
const US_NAMES = /^(us|usa|u s|u s a|united states|united states of america|america)$/;
const UNIT_WORDS = /^(#|(apt|apartment|ste|suite|unit|no|rm|room|fl|floor|bldg|building|dept|department|lot|spc|space|trlr|ofc|office|ph|penthouse|lowr|uppr|frnt|rear|side|bsmt|basement)\b)/i;
const KEY_WORDS = { STREET: 'ST', AVENUE: 'AVE', AV: 'AVE', ROAD: 'RD', DRIVE: 'DR', LANE: 'LN', COURT: 'CT',
BOULEVARD: 'BLVD', PLACE: 'PL', CIRCLE: 'CIR', TERRACE: 'TER', PARKWAY: 'PKWY', HIGHWAY: 'HWY', SQUARE: 'SQ',
TRAIL: 'TRL', NORTH: 'N', SOUTH: 'S', EAST: 'E', WEST: 'W', NORTHEAST: 'NE', NORTHWEST: 'NW',
SOUTHEAST: 'SE', SOUTHWEST: 'SW', APARTMENT: '#', APT: '#', UNIT: '#', SUITE: '#', STE: '#' };
function onOpen() {
SpreadsheetApp.getUi().createMenu('Labels')
.addItem('Build household labels', 'buildLabels')
.addItem('Make return-address labels', 'makeReturnLabels')
.addItem('Print label sheets', 'printLabelSheets')
.addToUi();
}
// Runs makeCards() from the name badges guide's script, pasted into another file of this project
// (delete that script's own onOpen so the two menus don't clash).
function printLabelSheets() {
if (typeof makeCards !== 'function') throw new Error('Paste the label-printing script from the name badges guide into this project first.');
return makeCards();
}
function buildLabels() {
const lock = LockService.getDocumentLock();
if (!lock.tryLock(30000)) throw new Error('Another run is still going. Try again in a minute.');
try {
const ss = SpreadsheetApp.getActive();
const src = ss.getSheetByName(SOURCE_TAB);
if (!src) throw new Error('No tab called "' + SOURCE_TAB + '".');
const res = households_(src.getDataRange().getDisplayValues());
writeTab_(ss, LABELS_TAB, ['Line 1', 'Line 2', 'Line 3', 'Line 4', 'Line 5', 'Line 6', 'People', 'Rows', 'Check'],
res.labels.map(function (l) { return pad_(l.lines, 6).concat([l.people, l.rows.join(', '), l.check.join('; ')]); }));
writeTab_(ss, PROBLEMS_TAB, ['Row', 'Name', 'Problem'],
res.problems.map(function (p) { return [p.row, p.name, p.problem]; }));
const summary = res.labels.length + ' labels for ' + res.people + ' people (' + res.merged + ' shared an address). ' +
res.skipped + ' rows skipped by the Mail column, ' + res.problems.length + ' rows need fixing (see "' + PROBLEMS_TAB + '"), ' +
res.labels.filter(function (l) { return l.check.length; }).length + ' labels have a note in Check.';
console.log(summary);
try { SpreadsheetApp.getUi().alert(summary); } catch (e) { /* run from the editor or a trigger */ }
return { labels: res.labels.length, people: res.people, merged: res.merged, skipped: res.skipped,
problems: res.problems.length, flagged: res.labels.filter(function (l) { return l.check.length; }).length };
} finally {
lock.releaseLock();
}
}
function makeReturnLabels() {
const ss = SpreadsheetApp.getActive();
const lines = pad_(RETURN_ADDRESS.map(style_).filter(function (s) { return s !== ''; }), 6);
const rows = [];
for (let i = 0; i < RETURN_COUNT; i++) rows.push(lines.slice());
writeTab_(ss, RETURN_TAB, ['Line 1', 'Line 2', 'Line 3', 'Line 4', 'Line 5', 'Line 6'], rows);
return rows.length;
}
// values: display values of the Contacts tab, header row first.
function households_(values) {
const h = values[0].map(function (x) { return String(x).trim().toLowerCase().replace(/\s+/g, ' '); });
const col = function () {
for (let i = 0; i < arguments.length; i++) { const k = h.indexOf(arguments[i]); if (k >= 0) return k; }
return -1;
};
const C = {
first: col('first name', 'first', 'given name'), last: col('last name', 'last', 'surname', 'family name'),
name: col('name', 'full name'), addressee: col('addressee', 'label name'), household: col('household', 'household id'),
org: col('organization', 'organisation', 'company'),
a1: col('address 1', 'address', 'street', 'address line 1', 'address 1 - street'),
a2: col('address 2', 'address line 2', 'apt', 'unit', 'address 1 - extended address'),
city: col('city', 'town', 'address 1 - city'), state: col('state', 'region', 'province', 'county', 'address 1 - region'),
zip: col('zip', 'zip code', 'postal code', 'postcode', 'address 1 - postal code'),
country: col('country', 'address 1 - country'), mail: col('mail', 'status', 'mailing')
};
if (C.a1 < 0 || C.city < 0) throw new Error('The ' + SOURCE_TAB + ' tab needs Address 1 and City columns.');
const get = function (v, k) { return C[k] >= 0 ? clean_(v[C[k]]) : ''; };
const homeUS = US_NAMES.test(norm_(HOME_COUNTRY).toLowerCase());
const groups = {}, order = [], problems = [];
let skipped = 0;
for (let i = 1; i < values.length; i++) {
const v = values[i], row = i + 1;
const p = { row: row, first: get(v, 'first'), last: get(v, 'last'), addressee: get(v, 'addressee'),
org: get(v, 'org'), a1: get(v, 'a1'), a2: get(v, 'a2'), city: get(v, 'city'), state: get(v, 'state'),
zip: get(v, 'zip'), country: get(v, 'country') };
if (!p.first && !p.last && get(v, 'name')) p.first = get(v, 'name'); // a single "Name" column
const any = p.first || p.last || p.addressee || p.org || p.a1 || p.city;
if (!any) continue;
if (C.mail >= 0 && SKIP_MAIL.test(get(v, 'mail'))) { skipped++; continue; }
const who = [p.first, p.last].filter(String).join(' ') || p.addressee || p.org;
if (!p.a1) { problems.push({ row: row, name: who, problem: 'No Address 1' }); continue; }
const c = norm_(p.country).toLowerCase();
p.domestic = c === '' || c === norm_(HOME_COUNTRY).toLowerCase() || (homeUS && US_NAMES.test(c));
p.us = p.domestic && homeUS;
p.zipNote = '';
if (p.us) {
const z = usZip_(p.zip);
p.zip = z.zip; p.zipNote = z.note;
}
if (!p.city && !(p.us && p.zip)) { problems.push({ row: row, name: who, problem: 'No City' }); continue; }
const hh = get(v, 'household');
const key = hh ? 'H|' + norm_(hh) : [keyOf_(p.a1 + ' ' + p.a2), p.us ? p.zip.slice(0, 5) || norm_(p.city) + norm_(p.state) : norm_(p.city) + '|' + norm_(p.zip), p.domestic ? '' : norm_(p.country)].join('|');
if (!groups[key]) { groups[key] = []; order.push(key); }
groups[key].push(p);
}
let people = 0, merged = 0;
const labels = order.map(function (key) {
const g = groups[key];
const l = label_(g);
people += l.people;
if (l.people > 1) merged += l.people;
return l;
});
if (LABEL_SORT === 'zip') {
labels.sort(function (a, b) { return a.tier - b.tier || cmp_(a.sortZip, b.sortZip) || cmp_(a.sortCity, b.sortCity) || cmp_(a.sortName, b.sortName) || a.rows[0] - b.rows[0]; });
} else if (LABEL_SORT === 'name') {
labels.sort(function (a, b) { return cmp_(a.sortName, b.sortName) || a.rows[0] - b.rows[0]; });
}
return { labels: labels, problems: problems, people: people, merged: merged, skipped: skipped };
}
// One household -> one label.
function label_(g) {
const p = g[0], check = [];
const seen = {}, persons = [];
g.forEach(function (x) {
const k = norm_(x.first + ' ' + x.last);
if (!k) return;
if (seen[k]) { check.push('Row ' + x.row + ' repeats row ' + seen[k]); return; }
seen[k] = x.row;
persons.push(x);
});
const typed = g.map(function (x) { return x.addressee; }).filter(String);
if (typed.filter(function (t, i) { return typed.indexOf(t) === i; }).length > 1) check.push('Different Addressee values; used the first');
const org = (g.filter(function (x) { return x.org; })[0] || {}).org || '';
let names = typed.length ? [typed[0]] : nameLines_(persons, check);
if (!names.length && !org) names = ['Current Resident'];
const lines = names.slice();
if (org && lines.indexOf(org) < 0) lines.push(org);
if (g.some(function (x) { return keyOf_(x.a1 + ' ' + x.a2) !== keyOf_(p.a1 + ' ' + p.a2); })) check.push('Same Household, different addresses; used row ' + p.row);
// Address 2: a unit (Apt, Suite, #) goes at the end of the street line when it fits, otherwise on the line above.
let a1 = p.a1, a2 = p.a2.replace(/#\s*/g, '# ');
a1 = a1.replace(/#\s*/g, '# ');
if (a2 && UNIT_WORDS.test(a2) && (a1 + ' ' + a2).length <= MAX_LINE) a1 = a1 + ' ' + a2;
else if (a2) lines.push(a2);
lines.push(a1);
if (p.domestic) {
const cs = [p.city, p.state].filter(String).join(', ');
lines.push([cs, p.zip].filter(String).join(p.us ? ' ' : ' '));
} else {
lines.push([p.city, p.state, p.zip].filter(String).join(' '));
lines.push(p.country.toUpperCase());
if (norm_(p.country).replace(/ /g, '').length <= 3) check.push('Write the country name in full');
}
if (p.us) {
if (p.zipNote) check.push(p.zipNote);
if (p.state && !/^[A-Za-z]{2}$/.test(p.state)) check.push('State should be the 2-letter abbreviation');
if (!p.state) check.push('No State');
if (!p.city) check.push('No City');
}
const out = lines.map(style_).filter(function (s) { return s !== ''; });
out.forEach(function (s) { if (s.length > MAX_LINE) check.push('Long line (' + s.length + ' characters): ' + s); });
if (out.length > MAX_LINES) check.push(out.length + ' lines; may not fit');
const firstPerson = persons[0] || p;
return { lines: out.slice(0, 6), people: persons.length || g.length, rows: g.map(function (x) { return x.row; }),
check: check.concat(out.length > 6 ? ['Lines after 6 left out'] : []),
tier: p.domestic ? 0 : 1, sortZip: p.domestic ? p.zip : norm_(p.country) + ' ' + p.zip, sortCity: norm_(p.city),
sortName: norm_(firstPerson.last + ' ' + firstPerson.first) || norm_(out[0]) };
}
// "Alex Doe", "Alex & Sam Doe", "The Doe Family", "Alex Doe and Jamie Roe".
function nameLines_(persons, check) {
const groups = [], byLast = {};
persons.forEach(function (x) {
const k = x.last ? norm_(x.last) : '#' + x.row;
if (!(k in byLast)) { byLast[k] = groups.length; groups.push({ last: x.last, firsts: [] }); }
if (x.first) groups[byLast[k]].firsts.push(x.first);
groups[byLast[k]].n = (groups[byLast[k]].n || 0) + 1;
});
const parts = groups.map(function (gr) {
if (gr.last && FAMILY_AT > 0 && gr.n >= FAMILY_AT) return 'The ' + gr.last + ' ' + FAMILY_WORD;
return [andJoin_(gr.firsts, ' & '), gr.last].filter(String).join(' ');
});
if (!parts.length) return [];
const one = parts.length === 1 ? parts[0] : parts.slice(0, -1).join(', ') + ' and ' + parts[parts.length - 1];
if (style_(one).length <= MAX_LINE || parts.length === 1) return [one];
if (parts.length === 2) return parts;
check.push('Names shortened; type an Addressee to choose the wording');
return [parts[0] + ' and Household'];
}
function andJoin_(a, last) {
return a.length <= 1 ? (a[0] || '') : a.slice(0, -1).join(', ') + last + a[a.length - 1];
}
// US ZIP: restores leading zeros that Sheets dropped and adds the ZIP+4 hyphen.
function usZip_(z) {
if (!z) return { zip: '', note: 'No ZIP' };
const d = z.replace(/[^0-9]/g, '');
if (/[^0-9\s-]/.test(z)) return { zip: z, note: 'ZIP looks wrong: ' + z };
if (d.length === 5) return { zip: d, note: '' };
if (d.length === 9) return { zip: d.slice(0, 5) + '-' + d.slice(5), note: '' };
if (d.length === 3 || d.length === 4) return { zip: ('00000' + d).slice(-5), note: 'Leading zero restored in ZIP (' + z + ')' };
if ((d.length === 7 || d.length === 8) && !/-/.test(z)) {
const f = ('000000000' + d).slice(-9);
return { zip: f.slice(0, 5) + '-' + f.slice(5), note: 'Leading zero restored in ZIP (' + z + ')' };
}
return { zip: z, note: 'ZIP looks wrong: ' + z };
}
// Keeps the two spaces before a ZIP code; NO_PUNCTUATION turns "St." into "St" and "Anytown, MA" into "Anytown MA".
function style_(s) {
let t = String(s === undefined || s === null ? '' : s).trim();
if (NO_PUNCTUATION) t = t.replace(/[.,]+(?=\S)/g, ' ').replace(/[.,]+/g, '').trim();
return UPPERCASE ? t.toUpperCase() : t;
}
function clean_(s) { return String(s === undefined || s === null ? '' : s).replace(/\s+/g, ' ').trim(); }
// For comparing names and addresses: no accents, case, punctuation or extra spaces.
function norm_(s) {
return clean_(String(s).normalize('NFD').replace(/[\u0300-\u036f]/g, '').toUpperCase().replace(/[.,']/g, '').replace(/[^A-Z0-9#\- ]/g, ' '));
}
// Street + unit for matching: "12 North Main Street, Apt. 4" and "12 n main st #4" give the same key.
function keyOf_(s) {
return norm_(s.replace(/#/g, ' # ')).replace(/\bP ?O BOX\b|\bPOST OFFICE BOX\b/g, 'POBOX').split(' ').filter(String)
.map(function (w) { return KEY_WORDS[w] || w; }).join(' ').replace(/# #/g, '#').replace(/# /g, '#');
}
function cmp_(a, b) { return String(a).localeCompare(String(b), undefined, { sensitivity: 'base', numeric: true }); }
function pad_(a, n) { const r = a.slice(0, n); while (r.length < n) r.push(''); return r; }
function writeTab_(ss, name, header, rows) {
const sh = ss.getSheetByName(name) || ss.insertSheet(name);
sh.clearContents();
const all = [header].concat(rows);
const range = sh.getRange(1, 1, all.length, header.length);
range.setNumberFormat('@'); // plain text, so ZIP codes keep their zeros
range.setValues(all);
sh.setFrozenRows(1);
}
How it builds each label:
- Households by address. Rows whose street, unit and ZIP match after ignoring case, accents, punctuation and the usual spellings (Street/St, Avenue/Ave, North/N, Apt/Suite/Unit/#, P.O. Box/PO Box) share a label. A Household code overrides the address, in both directions. The same name twice at one address is printed once and noted in Check (“Row 11 repeats row 3”).
- The name line. People with the same last name are joined: “Alex & Sam Doe”; three or more become “The Doe Family” (
FAMILY_AT,FAMILY_WORD; setFAMILY_AT = 0to list first names instead). Different last names: “Alex Doe and Jamie Roe”, each on its own line if that is too long for the label. An Addressee value always wins, and a household with no names but an organization is addressed to the organization. - The person goes above the organization. For business mail the person's name is printed above the company name, as the Postal Service's attention line rule describes.
- Apartment and suite numbers go on the street line. The Postal Service prefers the secondary unit designator (APT, STE, UNIT) at the end of the delivery address line, and on the line immediately above it when it doesn't fit, so the script appends “Apt 4” to the street when the line stays under
MAX_LINEcharacters and otherwise puts it above. A pound sign gets the space it needs:#4becomes# 4. Address 2 lines that aren't units, such as “c/o” or a building name, also go above the street. - The last line. City, 2-letter state and ZIP, with two spaces before the ZIP (the last-line format asks for at least one and prefers two). Lost leading zeros are put back, nine digits get the ZIP+4 hyphen, and anything else odd (letters in a US ZIP, a state spelled out, no state) is noted in Check rather than guessed.
- Mail abroad. When Country is filled in and isn't your
HOME_COUNTRY, the city and postal code stay on their own line and the bottom line is the country name alone, in capitals, as the international address requirements ask. “CA” or “UK” gets a note: write the country in full. US, USA and United States all count as domestic. - Capitals and punctuation are your choice. Uppercase is preferred but not required, and punctuation may be omitted except the ZIP+4 hyphen. For greeting cards most people keep normal capitals; for a business mailing set
UPPERCASE = trueandNO_PUNCTUATION = true. - Sorted by ZIP (then city, then name), domestic first and mail abroad last, which is the order you'll want if you bundle a big mailing by area.
LABEL_SORT = 'name'sorts by last name;'sheet'keeps the Contacts order. - Nothing silently dropped. Rows with no street or no city go to Label problems with their row number. Lines longer than
MAX_LINE(35 characters) and labels with more thanMAX_LINES(5) lines are printed but noted in Check, so you can shorten them by hand or with an Addressee. When it finishes, it shows a summary: labels, people, how many shared an address, skipped and problem rows.
Read down the Check column before printing. Filter it (Data › Create a filter, then “Filter by condition › Is not empty”) and you'll see every label that deserves a second look.
Step 4: print the labels
The most common address label is the Avery 5160 (8160 for inkjet printers): 1 x 2-5/8 inch labels, 30 per US Letter sheet, according to Avery's own help page. A label that small holds about five short lines, which is why the script flags longer labels.
- Make the Docs template from the name badges guide: one table sized to your label sheet (3 columns by 10 rows for a 5160), and in every cell six short lines:
{{Line 1}},{{Line 2}}…{{Line 6}}. Lines a label doesn't use are left empty at the bottom, so every address starts at the top of its label. A 9 or 10 pt font with no space after paragraphs fits five lines on a 1-inch label. - In the same Apps Script project, add a second file (+ › Script) and paste that guide's script into it. Delete its
onOpenfunction, because this project already has one; set itsTEMPLATE_IDandFOLDER_ID, plusSHEET_NAME = 'Labels'andSORT_BY = ''(the Labels tab is already sorted). Then choose Labels › Print label sheets. Its start-at prompt lets you begin on label 13 of a part-used sheet, and because the Labels tab has no “Printed on” column, each run prints every label. - Print one page on plain paper at 100% (no “fit to page”), hold it against a label sheet up to the light, and adjust the table's margins until the lines sit inside the labels. Then print the real thing.
Return-address labels
Type your return address into RETURN_ADDRESS at the top of the script (one entry per line) and choose Labels › Make return-address labels. It writes a Return labels tab with the same block repeated RETURN_COUNT times (30, one 5160 sheet), using the same Line 1 to Line 6 columns, so you print it exactly like Step 4 with SHEET_NAME = 'Return labels'. For a smaller return label, set the template's table to your sheet's layout and RETURN_COUNT to the number of labels on it.
Tips
- Mark, don't delete. When mail comes back, set Mail to Returned or Moved instead of deleting the row, so the address isn't imported again from an old list next year.
- Different addresses, one household? A family that just moved, or a student away at college, can show up with two addresses. Give the rows the same Household code to get one label (the first row's address is used and Check says so), or leave them apart on purpose.
- The script tidies; it doesn't verify. It can't tell whether 12 Main St exists. For addresses you doubt, look them up with the Postal Service's ZIP Code lookup or ask the person. For discounted bulk mail rates the Postal Service has its own address-quality requirements, and Publication 28 is the reference.
- Use APT or STE rather than # when you know which it is; the standard asks for the real designator where it's known.
- Keep the list private. A sheet of home addresses is personal data: share it only with the people doing the mailing, and remove access when the mailing is done. Labels and PDFs made from it are copies of the same data.
- Same list, other jobs. The households you build here also suit a printed event sign-in sheet, and the people rows can drive birthday and anniversary reminders.
{{Line 1}} to {{Line 6}} in the letter's address block, positioned for a window envelope, and every household gets its own letter, appeal or invitation with the address already formatted, with no labels needed. For sheets of labels, use the scripts above. SheetWeave is on the Google Workspace Marketplace, with a 14-day free trial.See SheetWeave
Related Google Sheets guides
- How to generate a PDF or Google Doc for each row in Google Sheets
- Find and remove duplicates in Google Sheets
- Compare two columns or two sheets for duplicates
- Find case-insensitive and fuzzy duplicates in Google Sheets
- Remove and highlight duplicates in Google Sheets with SheetDupes
- Best Autocrat alternatives for mail merge to PDF and Docs
- Make invoices or certificates from Google Sheets rows
- Create sales quotes or estimates from Google Sheets
- Generate receipts from Google Sheets rows
- Create purchase orders from Google Sheets
- Make packing slips from Google Sheets orders
- Generate a PDF certificate from a Google Form response
- Issue numbered training completion certificates with expiry dates
- Make a PDF progress report for each student
- Generate offer letters from a Google Sheets hiring tracker
- Generate contracts and agreements from a Google Docs template
- Make work orders for service jobs from Google Sheets
- Email each row’s PDF as an attachment
- Automatic email reminders from a date column
- Contract renewal and expiration alerts from Google Sheets
- Track certificate of insurance (COI) expirations in Google Sheets
- Track employee license and certification expirations
- Track equipment and vehicle maintenance with reminders
- Equipment sign-out sheet with due-back and overdue reminders
- Track warranty expiration dates with reminders
- Birthday and work anniversary reminders from Google Sheets
- Rent due and lease renewal reminders from Google Sheets
- Send invoice payment reminders from Google Sheets
- Highlight overdue tasks and send email reminders
- Follow-up reminders for leads, clients and candidates
- Membership renewal reminders for clubs and associations
- Appointment reminder emails for clients
- Probation and performance review reminders for managers
- Inventory expiration dates with email alerts
- Domain and SSL certificate renewal reminders
- Name badges and place cards from a guest list
- Vehicle registration, inspection and insurance reminders
- Event sign-in sheets and table seating lists
- Pet vaccination expiry reminders for owners
- Customer account statements with aging
- Subscription tracker with renewal and free-trial reminders
- Volunteer shifts: open slots, reminders and rosters
- Year-end donor giving statements, one PDF per donor
- Volunteer hours verification letters, one PDF per request
- Instrument calibration due dates with email reminders
- Pay stubs from a payroll sheet, one PDF per employee
- Gift certificates with codes, balances and a redemption log
- Bill due dates: mark paid, 30-day totals and reminders
- Grant deadlines: LOIs, reports, owners and reminders
- Passport expiry: trips, the 6-month rule and renewal reminders
- Class rosters: one PDF per class, A–Z, with seat counts
- Insurance renewals: premium changes and reminders
- Onboarding checklists: tasks from start dates, owner reminders
- Raffle tickets: numbered stubs, seller books, sales tracker
- SheetWeave vs Autocrat
- SheetWeave vs Document Studio
- SheetWeave vs RowDocs
Instructions refer to Google Sheets, Google Docs and Apps Script as they worked on November 16, 2026. Addressing rules are summarized from USPS Publication 28 sections and the label size from Avery's help page, both as checked on November 16, 2026; check your own label pack. Not affiliated with Google, the United States Postal Service, Avery or any other company named here. Google Sheets and Google Docs are trademarks of Google LLC; Avery is a trademark of its owner. Questions or corrections: hello@loomwise.app.