The inflation rate between two dates is the CPI at the end divided by the CPI at the start, minus one. The formula is easy — the hard part is getting the CPI numbers into the sheet. This source pulls the official US Consumer Price Index (CPI-U) for any month, plus the year-over-year rate, so the inflation formula works on live figures instead of numbers copied from a government table.
It's one of 250+ live sources you reach with a single =VERVE() function — served from APIVerve's production data engine, billed at 2 credits per resolved cell, and refreshed on whatever cadence you set. No API keys to wrangle, no scripts, no exports.
A real example — the input you type, and the values you can pull from it. Click any cell to see the formula behind it.
Put a start month and an end month in two cells and divide one CPI by the other — the inflation over any period, from official figures, in one row.
Deflate a column of historical prices, salaries or revenue into today's money so year-on-year comparisons stop flattering the recent numbers.
Keep the current year-over-year rate in a cell your budget, pricing or raise model reads from — it moves to the new figure when the next month is published.
The same function works in both apps — install once, sign in with your key, and type it into any cell.
Install from the Workspace Marketplace, then drop the formula into a cell. Autocomplete suggests the source and its fields.
=VERVE("cpiinflation", "field", "yearMonth")Same source, same arguments, same key — in Excel on desktop, the web, or mobile. Excel namespaces it as VERVE.CALL. Drag to fill a whole column.
=VERVE.CALL("cpiinflation", "field", "yearMonth")Tune the result by adding name=value before the field argument — in any order. Leave one out and its default applies.
Optional date in YYYY-MM format for historical lookup. Omit for current data.
=VERVE("cpiinflation", "date", "2023-06")Optional category filter: all, food, housing, apparel, transportation, medical, recreation, education, gasoline, electricity
=VERVE("cpiinflation", "category", "food")Add a field name as the last argument to land just that value in the cell.
=VERVE("cpiinflation", "field", "yearMonth")=VERVE("cpiinflation", "field", "year")=VERVE("cpiinflation", "field", "month")=VERVE("cpiinflation", "field", "index")=VERVE("cpiinflation", "field", "yearOverYearChange")=VERVE("cpiinflation", "field", "categories.food.index")=VERVE("cpiinflation", "field", "categories.food.yearOverYearChange")=VERVE("cpiinflation", "field", "categories.housing.index")=VERVE("cpiinflation", "field", "categories.housing.yearOverYearChange")=VERVE("cpiinflation", "field", "categories.transportation.index")=VERVE("cpiinflation", "field", "categories.transportation.yearOverYearChange")=VERVE("cpiinflation", "field", "categories.medical.index")Premium marks data included on paid plans. On the Free plan a marked field is withheld and a marked input is ignored — either way the cell reads #PREMIUM(name) instead of a value, so a gated answer can never be mistaken for a real one. Everything unmarked works on every plan. Compare plans
Everything you need to wire it into a sheet.