How to standardize addresses in Google Sheets
The same customer can appear as 123 main street apt 4 and 123 Main St., Apt. 4. Until addresses are written the same way, duplicates hide and shipping labels look sloppy.
Step 1: trim and fix capitalization
=PROPER(TRIM(A2)) gives a consistent base: 123 Main Street Apt 4.
Step 2: unify abbreviations
Pick one style and apply it with REGEXREPLACE, using \b so only whole words change:=REGEXREPLACE(REGEXREPLACE(B2,"(?i)\bstreet\b","St"),"(?i)\bavenue\b","Ave"). Add one layer per word you need (Road → Rd, Apartment → Apt, Suite → Ste).
Step 3: remove stray punctuation
=REGEXREPLACE(C2,"\.(\s|,|$)","$1") turns St., Apt. into St, Apt.
Step 4: pull out the ZIP or postal code
US ZIP: =REGEXEXTRACT(A2,"\b\d{5}(?:-\d{4})?\b"). Mexican código postal (5 digits) uses the same pattern without the -\d{4} part. Wrap it in IFERROR for rows without a code.
When to stop
Formulas make addresses consistent, not correct. Verifying that an address exists needs a postal or geocoding service.
DataTools AI