Calculate Distance

Geography1 credit/cellSheets · Excel
=VERVE("distancecalculator", A2, B2, C2, D2)

Measure between two coordinate pairs by the row. =VERVE("distancecalculator", A2, B2, C2, D2) returns miles and kilometers — Google Sheets or Excel.

It's one of 300+ live sources you reach with a single =VERVE()function — served from APIVerve's production data engine, billed at 1 credit per resolved cell, and refreshed on whatever cadence you set. No API keys to wrangle, no scripts, no exports.

A real example — these inputs, and the values they land in your sheet.

distancecalculator.xlsxlive
B1fx=VERVE("distancecalculator", 36.7783, -119.4179, 34.0522, -118.2437)
A
B
1
Distance Miles
199.6804337234997
2
Distance Km
321.2535462758628
3
Latitude
36.728450
4
Longitude
-119.53571
5
City
Sanger
6
State
California
Example resultpulled live from APIVerve1 credit / cell

Enrich an address list

Have a column of places? Fill =VERVE("distancecalculator", A2, B2, C2, D2) down it to resolve each into structured location data — coordinates, timezone, or region — right in the grid.

Clean location data in place

Normalize messy, hand-entered locations into consistent values without exporting to another tool and importing the result back.

Location-aware calculations

Feed Calculate Distance's output straight into distance, timezone, or cost math with the spreadsheet functions you already use.

The same function works in both apps — install once, sign in with your key, and type it into any cell.

Google SheetsAdd-on

Install from the Workspace Marketplace, then drop the formula into a cell. Autocomplete suggests the source and its fields.

=VERVE("distancecalculator", A2, B2, C2, D2)
Microsoft ExcelAdd-in

Same function, same arguments, same key — in Excel on desktop, the web, or mobile. Drag to fill a whole column.

=VERVE("distancecalculator", A2, B2, C2, D2)

Add a field name as the last argument to land just that value in the cell.

  • Distance Miles=VERVE("distancecalculator", A2, B2, C2, D2, "distanceMiles")
  • Distance Km=VERVE("distancecalculator", A2, B2, C2, D2, "distanceKm")
  • Location1=VERVE("distancecalculator", A2, B2, C2, D2, "location1")
  • Location2=VERVE("distancecalculator", A2, B2, C2, D2, "location2")
  • Bearing=VERVE("distancecalculator", A2, B2, C2, D2, "bearing")
  • Direction=VERVE("distancecalculator", A2, B2, C2, D2, "direction")
  • Estimated Drive Time=VERVE("distancecalculator", A2, B2, C2, D2, "estimatedDriveTime")

Calculate Distance, answered

Everything you need to wire it into a sheet.

How do I pull Calculate Distance into a spreadsheet?
Install the VerveSheets add-on, sign in with your key, and type =VERVE("distancecalculator", A2, B2, C2, D2) into any cell. The same function works in Google Sheets and Excel — no scripts, no API wiring.
How many credits does each Calculate Distance cell cost?
Each resolved cell costs 1 credit. Filling a column of ten rows costs ten times that; a cell only re-bills when it actually refreshes, so a static sheet doesn't keep charging.
Can I fill a whole column at once?
Yes. Reference a range instead of a single cell — e.g. point Calculate Distance at A2:A50 — and it returns a value for every row in one call, or just drag =VERVE("distancecalculator", A2, B2, C2, D2) down like any spreadsheet function.
Does Calculate Distance work in Excel as well as Google Sheets?
Yes. It's the same =VERVE() function with the same arguments and the same key in both — build a sheet in one and it behaves identically in the other.
How current is the data?
Calculate Distance is served live from APIVerve's production data engine, and cells recalculate on the refresh cadence you choose — every open, hourly, or every 30 minutes.
Where does the data come from, and what shows on my bill?
VerveSheets runs on APIVerve, our production data engine; Calculate Distance is one of 300+ sources on the same key. Invoices and card statements show APIVERVE.

Put Calculate Distance in your next spreadsheet. Add the extension, paste the formula, and the cell keeps itself current.

Scaling up?

Volume pricing, custom SLAs, and dedicated support for high-traffic teams.

Contact sales