Excel Documentation
Complete reference for all MapGO custom functions available in Microsoft Excel. Enrich your spreadsheets with geospatial data using simple formulas.
Getting Started
Install the add-in
Open Excel and go to Insert → Get Add-ins. Search for "MapGO" and click Add. The add-in works with Excel on Windows, Mac, and Excel for the web.
Connect your API key
Open the task pane via Home → MapGO, then paste your API key. Get your key from your dashboard.
Use formulas
Type any =MAPGO. formula in a cell. Excel uses dot notation (e.g., MAPGO.COUNTRY) instead of underscores. Put your coordinates in separate columns (e.g., A for lat, B for lng).
Requirements
- Paid plan: Spreadsheet add-ins require a Starter, Professional, or Business plan.
- Excel version: Excel 2016 or later, Excel for Microsoft 365, or Excel for the web.
- Coordinates: Latitude (-90 to 90) and longitude (-180 to 180) in decimal format.
- Internet connection: Required for API calls. Results are cached locally to minimize requests.
Excel vs Google Sheets naming
Excel custom functions use dot notation (e.g., MAPGO.COUNTRY) while Google Sheets uses underscores (e.g., MAPGO_COUNTRY). The functionality is identical across both platforms.
🌍Location Hierarchy
7 functions
Returns the full location hierarchy for coordinates. Includes all available levels: Continent, Country, Region, Subregion, District, Municipality.
Returns the continent name for the given coordinates.
Returns the country name for the given coordinates.
Returns the region or state name for the given coordinates.
Returns the subregion (department, province, etc.) for the given coordinates.
Returns the district name for the given coordinates. Not all countries have districts.
Returns the municipality name for the given coordinates. Not all countries have municipalities.
🌊Coastline Distance
3 functions
Returns the distance to the nearest coastline as a formatted string.
Returns the distance to the nearest coastline in kilometers as a number.
Returns the distance to the nearest coastline in miles as a number.
🗺️Border Distance
3 functions
Returns the distance to the nearest country border as a formatted string.
Returns the distance to the nearest country border in kilometers as a number.
Returns the distance to the nearest country border in miles as a number.
📏Point-to-Point Distance
4 functions
Returns the distance between two coordinate points as a formatted string.
Returns the distance between two points in kilometers as a number.
Returns the distance between two points in miles as a number.
Returns the bearing (compass direction) from the first point to the second in degrees.
🔄Coordinate Conversion
2 functions
Converts decimal coordinates to DMS (Degrees, Minutes, Seconds) format.
Converts decimal coordinates to UTM (Universal Transverse Mercator) format.
Tips & Notes
- Results are cached locally to minimize API usage. The same coordinates will return instantly after the first call.
- Each formula call counts as one row toward your monthly usage limit.
- Numeric functions (_KM, _MI) return numbers you can use in calculations. Text functions return formatted strings.
- Location hierarchy depth varies by country. Some countries have only Country and Region, while others include Subregion, District, and Municipality.
- Distance calculations use the Haversine formula and are approximate great-circle distances.
- All geographic calculations are based on polygon shapefiles and should be considered approximations.
- If you see #BUSY! in a cell, the function is still loading. Wait a moment for the result to appear.
Need help?
If you have questions or run into issues, we're here to help.
Contact Us