Back to Geocodio in Excel
SheetXAI logo
Geocodio logo
Geocodio · Excel Guide

Batch Geocode a Column of US Addresses in Excel With Geocodio

2026-05-14
5 min read

The Scenario

You're a market research analyst. The project landed three weeks ago — a political advertising targeting study that requires latitude, longitude, congressional district, and census tract for 3,000 US customer addresses sitting in an Excel workbook. The data team promised a geocoded output by Friday. It's Thursday afternoon. Nothing has come back yet.

The bad version:

  • Export the address column as a CSV, upload it to the Geocodio batch dashboard, and wait for the job to finish.
  • Download the enriched output file, then carefully align its result columns against your original workbook — row by row — to make sure the lat/lon in row 847 of the export actually belongs to row 847 of your source data.
  • Copy the four enriched columns into the right places, reformat the headers to match the workbook's naming convention, and fix the three rows that came back as "unmatched" before the client sees them.

The Friday deadline isn't flexible. And the work above isn't analysis — it's column-matching and header renaming. You were hired to interpret the data, not to referee a file format handoff.

The Easy Way: One Prompt in SheetXAI

SheetXAI is an AI agent that lives inside your Excel workbook. It reads the data, understands your column structure, and talks to Geocodio on your behalf — running the batch geocode call and writing every result field back into the correct row, without you touching a CSV or an output file.

Open the sidebar and paste this prompt:

Batch geocode all addresses in column A of this workbook using Geocodio and write the latitude, longitude, congressional district, and county FIPS code into columns B through E

What You Get

  • Column B: latitude (decimal degrees, 6 decimal places)
  • Column C: longitude (decimal degrees, 6 decimal places)
  • Column D: congressional district (e.g., "CA-12")
  • Column E: county FIPS code (5-digit string, zero-padded)
  • Rows with no match or partial match get a note in column F rather than a silent blank

What If the Data Is Not Quite Ready

The addresses are split across City, State, and ZIP columns rather than combined

Concatenate columns A (street), B (city), C (state), and D (ZIP) into a full address string for each row, then batch geocode the result using Geocodio and write latitude, longitude, and congressional district into columns E, F, and G

Some rows have apartment numbers or suite suffixes that Geocodio may not parse cleanly

Geocode all addresses in column A using Geocodio — for any row where the address includes a unit number or suite, strip that component first, then geocode the base street address and flag the row in column F with "unit stripped"

The 3,000 addresses span two worksheets — "Residential" and "Commercial" — and the output needs to land on a separate "Geocoded" worksheet

Combine all addresses from the Residential worksheet column A and the Commercial worksheet column A into a single batch geocode request using Geocodio, then write each result row to the Geocoded worksheet with the source worksheet name in column A, original address in column B, and lat/lon/congressional district/census tract in columns C through F

The client needs lat/lon plus census tract plus a pass/fail quality flag, and three rows have malformed addresses that need to be cleaned first

Review all addresses in column A — fix any obvious formatting issues like missing state abbreviations or transposed ZIP codes, then batch geocode the cleaned list using Geocodio and write latitude, longitude, census tract, and a match quality flag ("exact," "interpolated," or "unmatched") into columns B through E

The pattern is to ask for the cleanup and the geocode in the same prompt — SheetXAI handles both before writing anything back.

Try It

Get the 7-day free trial of SheetXAI and open the Excel workbook with your address column. Tell SheetXAI which columns hold the addresses, which fields you need from Geocodio, and where to write the results — then watch 3,000 rows geocode without touching a CSV. For related workflows, see how to reverse geocode GPS coordinates or append legislative district data.

Stop memorizing formulas.
Tell your spreadsheet what to do.

Join 4,000+ professionals saving hours every week with SheetXAI.

Learn more