gridcode for Excel

DIGIPIN, Plus Codes & GeoHash — custom functions for Excel. Free during beta.

Download manifest.xml functions.json runtime page functions.js bundle

Recommended — Excel for the Web (works everywhere, ~2 minutes)

Works on any device with a Microsoft 365 subscription. No IT setup, no permissions, no folders. The most reliable install path.

1. Sign in to office.com with your Microsoft 365 account.
2. Open or create any Excel workbook (in browser).
3. Top ribbon: HomeAdd-ins button → More Add-ins.
4. In the dialog, click the MY ADD-INS tab → Upload My Add-in (top right).
5. Click Browse, select the manifest.xml file you downloaded above. Click Upload.
6. Refresh the workbook. Functions are now available.

Excel desktop — Windows (~3 minutes)

For Excel 2019 and later on Windows, the simple "Upload My Add-in" path works. Older versions need the Trusted Catalog method.

Method A — Excel 2019+ on Windows (easiest)

1. Open or create any Excel workbook.
2. Top ribbon: Insert tab → Get Add-ins button.
3. In the dialog, click the MY ADD-INS tab → Upload My Add-in link (top right).
4. Browse to manifest.xmlUpload.
5. Add-in appears immediately. Functions are available.

Method B — Older Windows / corporate (Trusted Catalog)

1. Create a folder, e.g. C:\addins\, and place manifest.xml in it.
2. In Excel: FileOptionsTrust CenterTrust Center SettingsTrusted Add-in Catalogs.
3. Add the folder path → tick Show in Menu → OK out of all dialogs.
4. Restart Excel.
5. Insert → My Add-ins → SHARED FOLDER tab → gridcode → Add.

Excel desktop — Mac (variable, see notes)

Excel for Mac M365 (build 16.90+) has known issues with sideload UI discovery. If the steps below don't surface gridcode, use the Excel for the Web path above — it's just as fast and always works.

1. Quit Excel completely (Cmd+Q).
2. Open Terminal and run:
mkdir -p ~/Library/Containers/com.microsoft.Excel/Data/Documents/wef
curl -o ~/Library/Containers/com.microsoft.Excel/Data/Documents/wef/manifest.xml https://gridcode-mvp.pages.dev/manifest.xml
3. Re-open Excel. Insert → Add-ins → More Add-ins → look for DEVELOPER ADD-INS tab → gridcode.
4. If gridcode does not appear, use Excel for the Web instead (top of this page).

Try these formulas

=G.DIGIPIN(28.622788, 77.213033) "39J-49L-L8T4" (Dak Bhawan)
=G.DIGIPIN(12.9716, 77.5946, 6) "4P3-JK8" (1 km cell, Bangalore)
=G.PLUSCODE(12.9716, 77.5946) "7J4VXHCV+JR"
=G.GEOHASH(12.9716, 77.5946, 8) "tdr1v9qt"
=G.RECODE("39J-49L-L8T4", "digipin", "pluscode") cross-conversion
=G.CHECKSUM("39J-49L-L8T4") "39J-49L-L8T4-T" (Luhn-mod-16)
=G.VERIFY("39J-49L-L8T4-T") TRUE
=G.DISTANCE(A1, A2, "digipin", "digipin") metres

Test in a real workflow

Put 1000 lat/lng pairs in columns A and B, then drop =G.DIGIPIN(A1, B1) in C1 and fill down. Bulk-tag in seconds.

Trust the dev cert (one-time)

If your browser shows a security warning visiting this page, run:

cd excel-addin && npx office-addin-dev-certs install --machine

Then restart Excel and your browser.