US County DataUS County Data in Google Sheets & Excel

OnlineCredit Usage:5 per cell

Formula

Pull county stats by the row. Returns income, demographics and more — Sheets or Excel.

In a cell
=VERVE("countydata", A2, B2, "field", "name")
In a cell
=VERVE.CALL("countydata", A2, B2, "field", "name")

A2 holds state, B2 holds county. Arguments go in that order — the same order as the table below.

With literal values

Nothing has to come from a cell — typed values work the same way.

In a cell
=VERVE("countydata", "MO", "Jackson", "field", "name")
In a cell
=VERVE.CALL("countydata", "MO", "Jackson", "field", "name")

Inputs

Required inputs are positional, in the order below. Everything else is passed as a "name", value pair after them — the same shape as SUMIFS.

InputTypeWhere it goesDescription
stateRequiredstringargument 2The two letter name of the US state the county is in (e.g., MO) (e.g. MO)
countyRequiredstringargument 3The name of the US county to get data about (e.g. Jackson) (e.g. Jackson)

What lands in your sheet

The "field" pair is what makes the formula resolve to one cell. The name is a dot-path from the table below, so swapping it is how you pull a different value — one formula per column.

Seeing everything at once

Drop the "field" pair and the formula returns the whole response instead: two columns, field name on the left and value on the right, spilling from the cell you typed in.

Spills a two-column table
=VERVE("countydata", A2, B2)
Spills a two-column table
=VERVE.CALL("countydata", A2, B2)

Good for finding out what a source returns, but it is not a formula you can fill down: the second row's table would land on top of the first's, and every cell after the first reads #REF! (#SPILL! in Excel). Keep one per sheet, or name a field. Leave the cells below and to the right empty.

Available fields

Fields marked Premium need a paid plan. On the free plan those cells read #PREMIUM(field) rather than a value, so a locked field never looks like a real answer.
Use as "field"TypeExample cell valueDescription
namestringjackson countyCounty name in lowercase format
statestringMOTwo-letter state code where county is located
agePremiumobject{…}Age distribution percentages by age groups
age.0-4Premiumnumber0.0644100874666257Percentage of population aged 0-4 years
age.5-9Premiumnumber0.06532756955438819Percentage of population aged 5-9 years
age.10-14Premiumnumber0.06595060390235714Percentage of population aged 10-14 years
age.15-19Premiumnumber0.05967616438434107Percentage of population aged 15-19 years
age.20-24Premiumnumber0.059725950234064615Percentage of population aged 20-24 years
age.25-29Premiumnumber0.08192474939936928Percentage of population aged 25-29 years
age.30-34Premiumnumber0.07523353119652466Percentage of population aged 30-34 years
age.35-39Premiumnumber0.06868029092005673Percentage of population aged 35-39 years
age.40-44Premiumnumber0.05831060964906666Percentage of population aged 40-44 years
age.45-49Premiumnumber0.058805623240603636Percentage of population aged 45-49 years
age.50-54Premiumnumber0.05858087569042305Percentage of population aged 50-54 years
age.55-59Premiumnumber0.0674783182624454Percentage of population aged 55-59 years
age.60-64Premiumnumber0.06208437705811146Percentage of population aged 60-64 years
age.65-69Premiumnumber0.05099777955110233Percentage of population aged 65-69 years
age.70-74Premiumnumber0.03891546504962227Percentage of population aged 70-74 years
age.75-79Premiumnumber0.026437708656052324Percentage of population aged 75-79 years
age.80-84Premiumnumber0.01748905778145719Percentage of population aged 80-84 years
age.85+Premiumnumber0.01997123800338828Percentage of population aged 85 years and older
malePremiumnumber339932Total male population count in county
femalePremiumnumber363079Total female population count in county
healthPremiumobject{…}Health metrics and indicators for the county
health.poorhealthPremiumnumber20.588989742Percentage of population reporting poor health status
health.physicallyunhealthydaysPremiumnumber4.247736361Average physically unhealthy days per month
health.mentallyunhealthydaysPremiumnumber4.8111015035Average mentally unhealthy days per month
health.lowbirthweightpercentPremiumnumber9.1518749808Percentage of low birth weight births
health.smokerspercentPremiumnumber20.957241772Percentage of population that smokes
health.obesitypercentPremiumnumber31.5Percentage of population classified as obese
health.foodenvindexPremiumnumber7.5Food environment index rating for county
health.physicallyinactivepercentPremiumnumber23.2Percentage of physically inactive population
health.excessivedrinkingpercentPremiumnumber18.940103365Percentage of excessive alcohol drinkers
health.alcoholimpaireddrivingdeathsPremiumnumber152Annual alcohol-impaired driving deaths in county
health.teenbirthratePremiumnumber31.109351559Birth rate among teenage population
health.uninsuredPremiumnumber12.486314662Percentage of uninsured population
health.withannualmammogramPremiumnumber45Percentage receiving annual mammogram screening
health.vaccinatedPremiumnumber51Percentage of vaccinated population
health.childreninpovertyPremiumnumber19.6Percentage of children living in poverty
health.80thpercentileincomePremiumnumber10829680th percentile income level in dollars
health.20thpercentileincomePremiumnumber2327520th percentile income level in dollars
health.childreninsingleparenthouseholdsPremiumnumber33.224850811Percentage of children in single-parent households
health.violentcrimeratePremiumnumber941.43198334Violent crime rate per 100,000 people
health.averagedailypm25Premiumnumber9.1Average daily PM2.5 air pollution level
health.severehousingproblemsPremiumnumber15.347550638Percentage with severe housing cost burden
health.drivealonetoworkPremiumnumber83.470246386Percentage driving alone to work
health.longcommutedrivesalonePremiumnumber33.7Percentage with long commute driving alone
longitudePremiumnumber-94.34749665503394Geographic longitude coordinate of county
latitudePremiumnumber39.016701918102484Geographic latitude coordinate of county
educationPremiumobject{…}Educational attainment distribution for county
education.lessthanhighschoolPremiumnumber9.4Percentage with less than high school education
education.highschoolPremiumnumber28.3Percentage with high school education
education.somecollegePremiumnumber30.7Percentage with some college education
education.bachelorsPremiumnumber31.6Percentage with bachelor's degree or higher
zipcodesPremiumarray["64137","64111","64053"]Array of all ZIP codes within the county
lifeexpectancynumber77.19Average life expectancy in years
avgincomenumber47054Average annual household income in dollars
povertyratenumber13.7Percentage of population below poverty line
costoflivingPremiumobject{…}Cost of living metrics for the county
costofliving.livingwagePremiumnumber14.55Living wage per hour in dollars

Filling a whole column

Both platforms make one batched call for a column rather than one request per cell, and both cost the same — 5 credits per row looked up. How you write it differs, because the two runtimes batch at different points.

Rows 2–100 in one call
=VERVE("countydata", A2:A100, B2:B100, "field", "name")

Give the arguments ranges and the answers spill down from the cell you typed in. Sheets custom functions run synchronously and in isolation, so dragged cells can't be coalesced — the range form is how a column becomes one call.

The "field" pair is required here: a per-row two-column table has nowhere to spill. Use a full column per input (A2:A100, not A2) — a single-cell reference is read as row 1 only, and the rest of the column comes back blank.

Type once, then fill down
=VERVE.CALL("countydata", A2, B2, "field", "name")

Drag or double-click the fill handle — no range form and none needed. Excel's runtime is asynchronous, so the add-in coalesces the calls a fill produces into a single batched request on its own.

Don't hand VERVE.CALL a range: Excel flattens it into positional arguments, so A2:A100 arrives as a hundred separate arguments and the cell reads #ERR rather than filling.

Either way, column A holds your state values and the answers land beside them, one row each, blank rows skipped.

When a cell doesn't fill

A failed lookup returns readable text starting with #ERR rather than a spreadsheet error, because Excel cannot show a custom message on a real error — you would get a bare #VALUE! with no reason. The trade-off is that IFERROR() won't catch it; test with LEFT(cell, 4) = "#ERR" instead.

Cell readsWhat happened
#ERR Not connectedNo API key saved. Open the side panel and connect your account.
#ERR Replace <name> with a cell or valueThe preview formula was copied as-is. Swap the placeholder for a cell reference.
#ERR No "x" in countydataAn option name that this source doesn't take. The message lists the ones it does.
#ERR No data point "…"The "field" path isn't in the response. Check the dot-path against the table above.
#PREMIUM(field)The field exists but your plan doesn't include it.
#ERR Out of creditsThe month's credits are spent. Usage resets on your billing date.

Before the formula works

The add-in reads the API key you saved once in the side panel — the key never goes in the formula, so a shared sheet doesn't leak it and a collaborator without access simply sees the last calculated values.

  1. Install the add-in for Google Sheets or Excel.
  2. Open the side panel and sign in, or paste a key from your dashboard.
  3. Type the formula above into any cell.

Other ways to use US County Data

Set up US County Data on VerveSheets, or reach the same source a different way. Your VerveSheets account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an X-API-Key header, with SDKs for Node, Python and .NET.APIVerveReference →
Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKitReference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContextReference →

Frequently asked questions

Does US County Data work in both Google Sheets and Excel?

Yes — the same source, the same arguments, the same result. Google Sheets calls it =VERVE("countydata", A2, B2, "field", "name") and Excel namespaces it as =VERVE.CALL("countydata", A2, B2, "field", "name"). Filling a whole column is the one place the two differ: Sheets takes ranges directly, Excel fills down.

Do the cells recalculate on their own?

They recalculate when the sheet does — on edit, on open, or on a manual recalc. Each recalculation is a fresh call and spends credits, so for a large static column it's worth copying the results and pasting them as values.

How many credits does a filled column cost?

5 credits per row looked up, on both platforms and however you fill it. Repeated identical lookups in the same column are charged once. Batching changes how many HTTP calls are made, never the credit count.

Can I share the sheet without sharing my key?

Yes. The key is stored against your account, not in the file. Collaborators see the values already in the cells; formulas only recalculate for someone who has connected their own account.

Why is a cell showing #ERR instead of an error?

So you can read the reason. Excel can't display a custom message on a real spreadsheet error, so the add-in returns the explanation as text on both platforms instead.

What's Next?

Continue your journey with these recommended resources

Was this page helpful?