How to Get Crypto Prices in Google Sheets

·10 min read·Admin

TL;DR

There are 3 ways to get crypto prices in Google Sheets: the CoinTable add-on (recommended — no API key, 30-second setup), IMPORTDATA with public APIs, and Google Apps Script. CoinTable is the fastest: install it, type =CT_PRICE("BTC"), done.

Why Track Crypto Prices in Google Sheets?

Google Sheets is the go-to tool for crypto investors who want full control over their data. Unlike portfolio apps, a spreadsheet gives you:

The challenge? Getting live crypto prices into your cells. Manually copying prices from CoinGecko or CoinMarketCap is tedious and error-prone.

This guide shows you three methods to get live cryptocurrency prices in Google Sheets, from the easiest (30 seconds) to the most technical (30+ minutes).

CoinTable is a Google Sheets add-on that gives you live crypto prices with simple formulas. No API keys, no coding, no configuration.

Step 1: Install CoinTable

  1. Open your Google Sheet
  2. Go to Extensions → Add-ons → Get add-ons
  3. Search for "CoinTable"
  4. Click Install and grant permissions

That's it. No account creation, no API key, no setup wizard.

Step 2: Use Your First Formula

Type this in any cell:

=CT_PRICE("BTC")

Press Enter. You'll see the current Bitcoin price in USD.

Want it in euros? Add a second argument:

=CT_PRICE("BTC", "EUR")

Need Ethereum? Solana? Any of 10,000+ tokens?

=CT_PRICE("ETH")
=CT_PRICE("SOL")
=CT_PRICE("DOGE")

Step 3: Explore More Formulas

CoinTable offers more than just prices. Build a complete crypto dashboard:

=CT_PRICE("BTC")        → Current price
=CT_CHANGE("BTC")       → 24h price change (%)
=CT_MARKETCAP("BTC")    → Market capitalization
=CT_VOLUME("BTC")       → 24h trading volume
=CT_RANK("BTC")         → Market cap rank
=CT_SUPPLY("BTC")       → Circulating supply
=CT_ATH("BTC")          → All-time high price
=CT_HIGH("BTC")         → 24h high
=CT_LOW("BTC")          → 24h low

Every formula supports 50+ fiat currencies as a second argument. Use "USD", "EUR", "GBP", "JPY", and more.

Why CoinTable?

Method 2: IMPORTDATA with Public APIs

If you prefer not to install an add-on, you can use Google Sheets' built-in IMPORTDATA function with a public crypto API.

How It Works

The IMPORTDATA function fetches data from a URL and displays it in your spreadsheet. You can point it at a public crypto API:

=IMPORTDATA("https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd")

This returns raw JSON data. To extract just the price, you'll need to combine it with other functions or use IMPORTJSON (a custom script).

A simpler approach uses CoinGecko's CSV-compatible endpoint, but these change frequently and may break without notice.

Limitations of IMPORTDATA

For a single Bitcoin price check, IMPORTDATA works. For a portfolio tracker with 20+ coins, the rate limits and complexity make it impractical.

Method 3: Google Apps Script

Google Apps Script lets you write custom JavaScript functions that run inside Google Sheets. You can create a custom function that fetches crypto prices from any API.

How It Works

  1. Open your Google Sheet
  2. Go to Extensions → Apps Script
  3. Replace the code with:
function CRYPTO_PRICE(symbol) {
  const url = `https://api.coingecko.com/api/v3/simple/price?ids=${symbol}&vs_currencies=usd`;
  const response = UrlFetchApp.fetch(url);
  const data = JSON.parse(response.getContentText());
  return data[symbol]?.usd || "Not found";
}
  1. Save the script (Ctrl+S)
  2. Go back to your sheet and use:
=CRYPTO_PRICE("bitcoin")

Note that CoinGecko's API uses full names (e.g., "bitcoin" not "BTC"), which adds friction compared to CoinTable's ticker-based approach.

When to Use This Method

Apps Script is best when:

For most users, the development time (30+ minutes to get a basic script working, hours for a robust one) doesn't justify the effort when CoinTable provides the same data with zero code.

Comparison: Which Method Is Best?

FeatureCoinTableIMPORTDATAApps Script
Setup time30 seconds5–10 minutes30+ minutes
API key requiredNoUsuallyYes
Supported coins10,000+Depends on APIDepends on API
ReliabilityHigh (managed)Low (API changes)Medium (self-maintained)
Coding requiredNoneNoneJavaScript
Free tier500 req/monthVariesVaries
Fiat currencies50+LimitedLimited
SupportYesNoneNone

For most users, CoinTable is the clear winner. It combines the easiest setup with the most comprehensive data coverage. The only reason to use IMPORTDATA or Apps Script is if you have very specific technical requirements that CoinTable doesn't cover.

How to Refresh Your Crypto Data

All three methods cache data differently:

CoinTable Plus subscribers get auto-refresh, so your prices stay current without manual intervention.

Troubleshooting

"Loading..." appears in cells

Give it a few seconds. If using CoinTable, try Extensions → CoinTable → Refresh Prices. For IMPORTDATA, check that the API URL is correct and accessible.

"#ERROR!" in cells

Common causes:

Prices seem outdated

"Request limit exceeded"

CoinTable Free includes 500 requests per month. If you need more, the Plus plan offers 10,000 requests per month for $5/month. IMPORTDATA and Apps Script are subject to the external API's rate limits.

Conclusion

Getting crypto prices in Google Sheets doesn't have to be complicated. Here's the bottom line:

For 95% of users, CoinTable is the right choice. It's free to start, takes 30 seconds to set up, and covers 10,000+ cryptocurrencies in 50+ fiat currencies.

A

Admin

CoinTable Team

Ready to get crypto prices in Google Sheets?

Free to use. No API keys.

Install CoinTable Free