US County Data in Google SheetsUS County Data in Google Sheets

OnlineCredit Usage:5 per cell

Formula

Pull county stats by the row. =VERVE("countydata", "MO", "Jackson") returns income, demographics and more — Sheets or Excel.

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

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.

Sheets
=VERVE("countydata", "MO", "Jackson")

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

With no "field" pair the formula spills the whole response as two columns — field name on the left, value on the right — starting at the cell you typed in. Make sure the cells below and to the right are empty.

Pulling one value

Add a "field" pair to get a single cell back instead of a table. The field name is the dot-path from the table below.

Returns name
=VERVE("countydata", A2, B2, "field", "name")
Returns name
=VERVE.CALL("countydata", A2, B2, "field", "name")

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-4number0.0644100874666257Percentage of population aged 0-4 years
age.5-9number0.06532756955438819Percentage of population aged 5-9 years
age.10-14number0.06595060390235714Percentage of population aged 10-14 years
age.15-19number0.05967616438434107Percentage of population aged 15-19 years
age.20-24number0.059725950234064615Percentage of population aged 20-24 years
age.25-29number0.08192474939936928Percentage of population aged 25-29 years
age.30-34number0.07523353119652466Percentage of population aged 30-34 years
age.35-39number0.06868029092005673Percentage of population aged 35-39 years
age.40-44number0.05831060964906666Percentage of population aged 40-44 years
age.45-49number0.058805623240603636Percentage of population aged 45-49 years
age.50-54number0.05858087569042305Percentage of population aged 50-54 years
age.55-59number0.0674783182624454Percentage of population aged 55-59 years
age.60-64number0.06208437705811146Percentage of population aged 60-64 years
age.65-69number0.05099777955110233Percentage of population aged 65-69 years
age.70-74number0.03891546504962227Percentage of population aged 70-74 years
age.75-79number0.026437708656052324Percentage of population aged 75-79 years
age.80-84number0.01748905778145719Percentage of population aged 80-84 years
age.85+number0.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.poorhealthnumber20.588989742Percentage of population reporting poor health status
health.physicallyunhealthydaysnumber4.247736361Average physically unhealthy days per month
health.mentallyunhealthydaysnumber4.8111015035Average mentally unhealthy days per month
health.lowbirthweightpercentnumber9.1518749808Percentage of low birth weight births
health.smokerspercentnumber20.957241772Percentage of population that smokes
health.obesitypercentnumber31.5Percentage of population classified as obese
health.foodenvindexnumber7.5Food environment index rating for county
health.physicallyinactivepercentnumber23.2Percentage of physically inactive population
health.excessivedrinkingpercentnumber18.940103365Percentage of excessive alcohol drinkers
health.alcoholimpaireddrivingdeathsnumber152Annual alcohol-impaired driving deaths in county
health.teenbirthratenumber31.109351559Birth rate among teenage population
health.uninsurednumber12.486314662Percentage of uninsured population
health.withannualmammogramnumber45Percentage receiving annual mammogram screening
health.vaccinatednumber51Percentage of vaccinated population
health.childreninpovertynumber19.6Percentage of children living in poverty
health.80thpercentileincomenumber10829680th percentile income level in dollars
health.20thpercentileincomenumber2327520th percentile income level in dollars
health.childreninsingleparenthouseholdsnumber33.224850811Percentage of children in single-parent households
health.violentcrimeratenumber941.43198334Violent crime rate per 100,000 people
health.averagedailypm25number9.1Average daily PM2.5 air pollution level
health.severehousingproblemsnumber15.347550638Percentage with severe housing cost burden
health.drivealonetoworknumber83.470246386Percentage driving alone to work
health.longcommutedrivesalonenumber33.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.lessthanhighschoolnumber9.4Percentage with less than high school education
education.highschoolnumber28.3Percentage with high school education
education.somecollegenumber30.7Percentage with some college education
education.bachelorsnumber31.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.livingwagenumber14.55Living wage per hour in dollars

Filling a whole column

Hand the first argument a range instead of a cell and the add-in makes one batched call for the lot, then spills the answers down. That is faster than dragging the formula and costs the same credits — one per row looked up.

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

A2:A100 is the column of state values. The result spills down alongside it, one row per input, blanks 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 in Google Sheets

Set up US County Data in Google Sheets 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 in Google Sheets work in both Google Sheets and Excel?

Yes — the same source, the same arguments. Sheets calls it =VERVE("countydata", …) and Excel calls it =VERVE.CALL("countydata", …); that function name is the only difference.

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, whether you drag the formula or pass a range. The range form is one HTTP call instead of many, but the credit count is the same.

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?