US County Data in Google Sheets
Formula
Pull county stats by the row. =VERVE("countydata", "MO", "Jackson") returns income, demographics and more — Sheets or Excel.
=VERVE("countydata", A2, B2)=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.
=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.
| Input | Type | Where it goes | Description |
|---|---|---|---|
stateRequired | string | argument 2 | The two letter name of the US state the county is in (e.g., MO) (e.g. MO) |
countyRequired | string | argument 3 | The 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.
=VERVE("countydata", A2, B2, "field", "name")=VERVE.CALL("countydata", A2, B2, "field", "name")Available fields
#PREMIUM(field) rather than a value, so a locked field never looks like a real answer.| Use as "field" | Type | Example cell value | Description |
|---|---|---|---|
name | string | jackson county | County name in lowercase format |
state | string | MO | Two-letter state code where county is located |
agePremium | object | {…} | Age distribution percentages by age groups |
age.0-4 | number | 0.0644100874666257 | Percentage of population aged 0-4 years |
age.5-9 | number | 0.06532756955438819 | Percentage of population aged 5-9 years |
age.10-14 | number | 0.06595060390235714 | Percentage of population aged 10-14 years |
age.15-19 | number | 0.05967616438434107 | Percentage of population aged 15-19 years |
age.20-24 | number | 0.059725950234064615 | Percentage of population aged 20-24 years |
age.25-29 | number | 0.08192474939936928 | Percentage of population aged 25-29 years |
age.30-34 | number | 0.07523353119652466 | Percentage of population aged 30-34 years |
age.35-39 | number | 0.06868029092005673 | Percentage of population aged 35-39 years |
age.40-44 | number | 0.05831060964906666 | Percentage of population aged 40-44 years |
age.45-49 | number | 0.058805623240603636 | Percentage of population aged 45-49 years |
age.50-54 | number | 0.05858087569042305 | Percentage of population aged 50-54 years |
age.55-59 | number | 0.0674783182624454 | Percentage of population aged 55-59 years |
age.60-64 | number | 0.06208437705811146 | Percentage of population aged 60-64 years |
age.65-69 | number | 0.05099777955110233 | Percentage of population aged 65-69 years |
age.70-74 | number | 0.03891546504962227 | Percentage of population aged 70-74 years |
age.75-79 | number | 0.026437708656052324 | Percentage of population aged 75-79 years |
age.80-84 | number | 0.01748905778145719 | Percentage of population aged 80-84 years |
age.85+ | number | 0.01997123800338828 | Percentage of population aged 85 years and older |
malePremium | number | 339932 | Total male population count in county |
femalePremium | number | 363079 | Total female population count in county |
healthPremium | object | {…} | Health metrics and indicators for the county |
health.poorhealth | number | 20.588989742 | Percentage of population reporting poor health status |
health.physicallyunhealthydays | number | 4.247736361 | Average physically unhealthy days per month |
health.mentallyunhealthydays | number | 4.8111015035 | Average mentally unhealthy days per month |
health.lowbirthweightpercent | number | 9.1518749808 | Percentage of low birth weight births |
health.smokerspercent | number | 20.957241772 | Percentage of population that smokes |
health.obesitypercent | number | 31.5 | Percentage of population classified as obese |
health.foodenvindex | number | 7.5 | Food environment index rating for county |
health.physicallyinactivepercent | number | 23.2 | Percentage of physically inactive population |
health.excessivedrinkingpercent | number | 18.940103365 | Percentage of excessive alcohol drinkers |
health.alcoholimpaireddrivingdeaths | number | 152 | Annual alcohol-impaired driving deaths in county |
health.teenbirthrate | number | 31.109351559 | Birth rate among teenage population |
health.uninsured | number | 12.486314662 | Percentage of uninsured population |
health.withannualmammogram | number | 45 | Percentage receiving annual mammogram screening |
health.vaccinated | number | 51 | Percentage of vaccinated population |
health.childreninpoverty | number | 19.6 | Percentage of children living in poverty |
health.80thpercentileincome | number | 108296 | 80th percentile income level in dollars |
health.20thpercentileincome | number | 23275 | 20th percentile income level in dollars |
health.childreninsingleparenthouseholds | number | 33.224850811 | Percentage of children in single-parent households |
health.violentcrimerate | number | 941.43198334 | Violent crime rate per 100,000 people |
health.averagedailypm25 | number | 9.1 | Average daily PM2.5 air pollution level |
health.severehousingproblems | number | 15.347550638 | Percentage with severe housing cost burden |
health.drivealonetowork | number | 83.470246386 | Percentage driving alone to work |
health.longcommutedrivesalone | number | 33.7 | Percentage with long commute driving alone |
longitudePremium | number | -94.34749665503394 | Geographic longitude coordinate of county |
latitudePremium | number | 39.016701918102484 | Geographic latitude coordinate of county |
educationPremium | object | {…} | Educational attainment distribution for county |
education.lessthanhighschool | number | 9.4 | Percentage with less than high school education |
education.highschool | number | 28.3 | Percentage with high school education |
education.somecollege | number | 30.7 | Percentage with some college education |
education.bachelors | number | 31.6 | Percentage with bachelor's degree or higher |
zipcodesPremium | array | ["64137","64111","64053"] | Array of all ZIP codes within the county |
lifeexpectancy | number | 77.19 | Average life expectancy in years |
avgincome | number | 47054 | Average annual household income in dollars |
povertyrate | number | 13.7 | Percentage of population below poverty line |
costoflivingPremium | object | {…} | Cost of living metrics for the county |
costofliving.livingwage | number | 14.55 | Living 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.
=VERVE("countydata", A2:A100, B2, "field", "name")=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 reads | What happened |
|---|---|
#ERR Not connected | No API key saved. Open the side panel and connect your account. |
#ERR Replace <name> with a cell or value | The preview formula was copied as-is. Swap the placeholder for a cell reference. |
#ERR No "x" in countydata | An 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 credits | The 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.
- Install the add-in for Google Sheets or Excel.
- Open the side panel and sign in, or paste a key from your dashboard.
- 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.
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.