
The add-in only communicates with the CoinGecko API using your saved API key. No personal data is sent to any third party.
Quick Start
Install
Search for CoinGecko in the Excel Add-ins store, or visit the Microsoft Marketplace.

Set API key
Enter your CoinGecko API key and click Save Settings. A green status dot confirms a valid connection.

Formulas
All formulas use theCG namespace. Enter them in any cell like a standard Excel formula.
=CG.PRICE(id)
Returns the current USD price of a coin.
| Parameter | Type | Description |
|---|---|---|
id | string | Coin ID (e.g. "bitcoin", "ethereum") |
=CG.HISTORY(id, date)
Returns the historical USD price of a coin on a specific date.
| Parameter | Type | Description |
|---|---|---|
id | string | Coin ID |
date | string | Date in YYYY-MM-DD format |
=CG.NFT(id)
Returns the current floor price (USD) of an NFT collection.
| Parameter | Type | Description |
|---|---|---|
id | string | NFT ID (e.g. "bored-ape-yacht-club") |
=CG.ONCHAIN(network, address)
Returns the current USD price of an onchain token by network and contract address.
| Parameter | Type | Description |
|---|---|---|
network | string | Network ID (e.g. "eth", "bsc", "solana") |
address | string | Token contract address |
eth, bsc, solana, arbitrum, base
=CG.TOP(limit, [category])
Returns a ranked table of top coins by market cap.*results spill into adjacent rows and columns.

| Parameter | Type | Description |
|---|---|---|
limit | number | Number of coins (1β10000) |
category | string (optional) | Category ID to filter results |
Enter
=CG.TOP(...) in a single cell and leave adjacent cells empty so the array can spill.Taskpane

- Refresh All Data β clears the cache and forces all
=CG.*formulas to recalculate with fresh API data. - Save β saves your API key and plan selection, validates the key, and clears the cache.
FAQ
Why is my formula showing #NAME?
Why is my formula showing #NAME?
Ensure the add-in is installed and loaded. The
CG namespace is only available when the add-in is active.How do I find a Coin ID or NFT ID?
How do I find a Coin ID or NFT ID?
Use the full ID list, or find the βAPI IDβ on the coinβs CoinGecko page.
Why am I seeing Error: Invalid API Key?
Why am I seeing Error: Invalid API Key?
Open the taskpane, re-enter your API key, and click Save.
Why am I seeing Error: Rate Limit?
Why am I seeing Error: Rate Limit?
Youβve exceeded the API rate limit. Wait a moment, then click Refresh All Data.
Why does =CG.HISTORY return no data?
Why does =CG.HISTORY return no data?
Confirm the date is in
YYYY-MM-DD format and that the coin existed on that date.Why does =CG.TOP only show one cell?
Why does =CG.TOP only show one cell?
Make sure the cells below and to the right are empty so the array can spill.
What is the privacy policy?
What is the privacy policy?
View the full privacy policy.
What are the terms of use?
What are the terms of use?
View the full terms of use.
Share Feedback
Have questions or feedback? Let us know.

