Coins: 22,875
Exchanges: 1,523
Market Cap: $2.579T 0.6%
24h Vol: $73.714B
Fear & Greed: Fear (37)
Go Ad-free
TABLE OF CONTENTS

Crypto Portfolio Spreadsheet Tracker (Free Excel Template)

Spreadsheets
REST
Demo
No-Code
Portfolio Tracking
Jackson Henning
|
Edited by
Ru Jun Ang
-
Make us preferred on Google

It can be tedious to keep track of your investment history, especially in crypto – given the pace of market changes, transaction frequency, and diverse portfolio assets necessitate an efficient and reliable tracking system.

In this article, we will cover how to create your own portfolio tracker in Excel using the CoinGecko API, allowing for simpler and quicker insights into your trade history. The template helps you manage your trade history, automate profit and loss calculations, and get a clear overview of your portfolio performance. You can connect the template using the official CoinGecko Excel add-in or set it up manually. When using the add-in, live =CG.PRICE() formulas fetch real-time prices for your holdings directly in Excel. To follow along and get started, you can download the free Excel template at the end of this article.

This guide is applicable for both macOS and Windows users.


Crypto portfolio tracker free Excel template

Prerequisites

Before diving in, ensure you have the following ready:

  • Microsoft Excel 2019 or later / Microsoft 365
    The template uses modern Excel functions and is fully compatible with both Windows and Mac.

  • CoinGecko API Key
    A CoinGecko API key is required to fetch live crypto prices. The free Demo API key is sufficient to get started, while a Pro plan offers higher rate limits for more frequent data refreshes. You can follow our guide to get your free Demo API key.

  • CoinGecko Excel Add-in (optional)
    For a quicker and more convenient setup, you can use the official CoinGecko Excel add-in to fetch live crypto prices directly into your spreadsheet using =CG.PRICE() formulas.

Note: This guide is applicable for both macOS and Windows users. To provide the best experience, this portfolio tracker is built with modern spreadsheet functions and is fully compatible with Excel 2019 or newer versions, including Microsoft 365, on both Windows and Mac.

Setting Up Your Excel Spreadsheet

The Excel document provided in this article is a base template that you can customize in any way you’d like. Here are some ideas to get you started, including how to customize the Dynamic tab.

  • API ID (Symbol): The CoinGecko API ID of your traded cryptocurrency.
  • Long/Short: Whether you bought or sold the asset. This determines how Position Profit/Loss is calculated.
  • Entry Price, Quantity, and Open Date: The price, quantity, and date of your initial trade to enter the position
  • Strategy: Whatever trading strategy you have utilized with this position
  • Risk:Reward: Measure of your prospective reward given the risk you’ve undertaken
  • Stop Loss: If you happen to have a stop loss currently placed
  • Exit Date: Left blank if you are currently in the position
  • Current Price: =INDEX(Data!B:B, MATCH(Symbol, Data!A:A, 0)) looks up the current price for the position’s symbol from the Data sheet. The Data sheet is populated using =CG.PRICE() with the CoinGecko Excel add-in, or through the Web Data template.
  • Fees: Any gas fees or transaction costs involved
  • Entry Position Size: Calculated as Quantity × Entry Price. Enter the Quantity and Entry Price manually, and the field is calculated using a formula that references those cells.
  • Exit Position Size: Calculated automatically as Current Price × Quantity using the current price.
  • Position Profit/Loss: =IF(ISBLANK(Exit Date), "", IF(Long/Short="Short", (Exit Position Size − Entry Position Size)×−1, IF(Long/Short="Long", Exit Position Size − Entry Position Size, ""))) calculates the profit or loss based on whether the position is Long or Short.
  • Profit/Loss %: Position profit or loss expressed as a percentage.
  • Status: =IF(ISBLANK(Exit Date), "Open", "Closed") automatically shows whether the position is Open or Closed based on the Exit Date.

There is space at the top of the Excel spreadsheet where you can add a range of metrics tailored to your portfolio.

All values shown in the template are for illustration purposes only and do not represent actual transaction data.

How to Use the Crypto Portfolio Tracker Excel Template

Option A: Using the CoinGecko Excel add-in

For a quicker setup, install the official CoinGecko Excel add-in and configure your CoinGecko API key by following the setup guide. Once connected, add each coin’s API ID to the Data sheet. The add-in’s =CG.PRICE() formulas automatically fetch live crypto prices, giving the Current Price formula above the data it needs to look up. Once the add-in status is Live, you can start customizing the template by adding the tokens you want to track in the section below.

CoinGecko Excel Add-in

Adding Coins to the Template

You can find a coin’s API ID on its CoinGecko page. Once you have the API ID, enter it in Column A of the Data sheet. The CoinGecko Excel add-in will then use the =CG.PRICE() formulas to automatically fetch the latest price data for your selected assets. For example, entering tether in Column A drives a formula like =CG.PRICE("tether") on the Data sheet, which returns USDT’s current price.

Once you have the API ID, simply paste it into Column A cells on the Data Sheet. The template will then automatically fetch the correct current price data for your calculations.

Logging Your Trades in the Dynamic Sheet

Once your coins are added, you can start recording your trades in the Dynamic Sheet. This is where you log every buy or sell, including your coin, position direction, entry details, strategy, and risk parameters. The template then automatically calculates the Exit Position Size and Position Profit/Loss, allowing you to track your performance and portfolio value accurately.

Logging Your Trades in the Dynamic Sheet

Analyzing Trades in the Dashboard Sheet

Once your trades are logged, head to the Dashboard sheet to review your performance. All charts and summary tables update automatically whenever new trades are added or live market data is refreshed, giving you an up-to-date view of your P&L, portfolio distribution, and asset allocation.

Option B: Getting 'Data from Web' Manually

How to Import Crypto Prices into Excel (for Windows Users)

The process to receive data from the web on Windows is quite simple:

  1. Click the cell you would like the data to be imported into.
  2. Select the Data Ribbon and go to 'From Web'.
  3. Enter the URL as copied from the CoinGecko API documentation as shown below, and click 'Connect' to select and import web data.

For the endpoint request, you can specify which cryptocurrencies to return, separated by commas (e.g., ethereum, bitcoin, solana).

Once the parameters are added, you can find the corresponding URL in the curl request after you’ve selected ‘Try It’. This is shown in the orange box above. Simply copy this URL and place it into the 'From Web' request on Excel.

CoinGecko API documentation

💡 You may reference this in-depth guide on how to import crypto prices into Excel.

How to Import Crypto Prices into Excel (for Mac Users)

On a Mac operating system, there is no 'Data From Web' option on the data ribbon tab of your Microsoft Excel.

To circumvent this issue, we will take the URL from the CoinGecko API, as done before, and open TextEdit. 

  1. The quickest way to do this would be to open your search bar by hitting “F4” and then typing in TextEdit.

  2. After you have selected the application, paste the same URL found above in the CoinGecko API documentation. This will appear like below: 

  1. Following this screenshot, select 'Format' and 'Make Plain Text'. This turns the document into the required format.

  1. The final step before we can input our data into Excel is to save the document as a ‘.iqy’ file. This will allow us to run a mac Web query on Excel. To do this simply add ‘.iqy’ after the name of your file and unselect the box labeled “If no extension is provided use ‘txt’”. 

  1. Return to your Excel spreadsheet and select ‘Data’ from the bar at the top of your screen, not the Data ribbon on excel (note that these are two different things).

    After selecting from the bar at the top of your screen, highlight ‘Get External Data’ and finally select ‘Run Web Query’. Navigate to the location where you saved your .iqy file and select it, then click Get Data. You will be prompted where to insert this data.

  1. Place the queried data on a separate tab in the Excel template (titled 'Data'). Here you can input the Web Query and sift through to find the required price data. From the main portfolio page, we've written an Index/Match function to find the required price for a given cryptocurrency symbol. 


Creating a Dashboard for Portfolio Analysis in Excel

After logging your positions, the Dashboard sheet summarizes your portfolio using key metrics, charts, and asset allocation data.

The template uses these core Excel functions:

  • SUMIFS: Calculates total position values and profit/loss
  • INDEX + MATCH: Looks up current prices from the Data sheet
  • IF: Determines position direction and open or closed status

These formulas calculate the key portfolio metrics:

  • Exit Position Size: Current price × quantity
  • Position Profit/Loss: Difference between Exit Position Size and Entry Position Size, adjusted for Long or Short positions
  • Profit/Loss %: Position profit or loss as a percentage of the Entry Position Size
  • Portfolio Distribution: Shows how your portfolio is distributed across asset categories

Together, these metrics power the Dashboard charts and summary tables, giving you a quick view of your portfolio performance and allocation.


Cross-Asset Allocation

The template can also track assets beyond crypto. Add the asset to the relevant Symbol column and enter its position details. For example, if you’re tracking an equity such as AAPL, add it to a new row and it will be included in your portfolio analysis.

You can also pull live stock prices into Excel and use the Dashboard to view your overall portfolio allocation across different asset types.


Conclusion

Managing a crypto portfolio across multiple assets and strategies can be complex. This free Crypto Portfolio Tracker Excel template, powered by the CoinGecko API, gives you a streamlined way to monitor your positions, track performance, and visualize your asset allocation in one place.

Whether you're managing a handful of positions or a diversified multi-asset portfolio, the template automatically calculates your P&L and keeps your dashboard updated with the latest market data. If you need more frequent data updates or higher rate limits, you can explore our paid API plans.

Keen to learn more? Check out our full list of crypto spreadsheet templates and API resources. We’ve also published guides on trading strategies, backtesting, and more.

Unlock higher API rate limits from $29/month. Subscribe to the CoinGecko API today.

Download Your Free Crypto Portfolio Tracker Spreadsheet

If you'd like to just grab the free template instead of creating your own, then you've come to the right place! Our template is already set up, so grab it below ⬇️

 

CoinGecko's Content Editorial Guidelines
CoinGecko’s content aims to demystify the crypto industry. While certain posts you see may be sponsored, we strive to uphold the highest standards of editorial quality and integrity, and do not publish any content that has not been vetted by our editors.
Learn more
Want to be the first to know about upcoming airdrops?
Subscribe to the CoinGecko Daily Newsletter!
Join 600,000+ crypto enthusiasts, traders, and degens in getting the latest crypto news, articles, videos, and reports by subscribing to our FREE newsletter.
Tell us how much you like this article!
Vote count: 12
Jackson Henning
Jackson Henning
Jackson Henning has a background in economics and has spent 3 years in crypto, primarily ensconced in NFTs and DeFi. He is especially intrigued by the perpetual ingenuity common to crypto trading, along with the employment of technical analysis and the ability of DeFi to push the bounds of traditional finance. Follow the author on Twitter @Henninng

Related Articles

Select Currency
Suggested Currencies
USD
US Dollar
IDR
Indonesian Rupiah
TWD
New Taiwan Dollar
EUR
Euro
KRW
South Korean Won
JPY
Japanese Yen
RUB
Russian Ruble
CNY
Chinese Yuan
Fiat Currencies
AED
United Arab Emirates Dirham
ARS
Argentine Peso
AUD
Australian Dollar
BDT
Bangladeshi Taka
BHD
Bahraini Dinar
BMD
Bermudian Dollar
BRL
Brazil Real
CAD
Canadian Dollar
CHF
Swiss Franc
CLP
Chilean Peso
CZK
Czech Koruna
DKK
Danish Krone
GBP
British Pound Sterling
GEL
Georgian Lari
HKD
Hong Kong Dollar
HUF
Hungarian Forint
ILS
Israeli New Shekel
INR
Indian Rupee
KWD
Kuwaiti Dinar
LKR
Sri Lankan Rupee
MMK
Burmese Kyat
MXN
Mexican Peso
MYR
Malaysian Ringgit
NGN
Nigerian Naira
NOK
Norwegian Krone
NZD
New Zealand Dollar
PHP
Philippine Peso
PKR
Pakistani Rupee
PLN
Polish Zloty
SAR
Saudi Riyal
SEK
Swedish Krona
SGD
Singapore Dollar
THB
Thai Baht
TRY
Turkish Lira
UAH
Ukrainian hryvnia
VND
Vietnamese đồng
ZAR
South African Rand
XDR
IMF Special Drawing Rights
Cryptocurrencies
BTC
Bitcoin
ETH
Ether
LTC
Litecoin
BCH
Bitcoin Cash
BNB
Binance Coin
EOS
EOS
XRP
XRP
XLM
Lumens
LINK
Chainlink
DOT
Polkadot
YFI
Yearn.finance
SOL
Solana
Bitcoin Units
BITS
Bits
SATS
Satoshi
Commodities
XAG
Silver - Troy Ounce
XAU
Gold - Troy Ounce
Select Language
Popular Languages
EN
English
RU
Русский
DE
Deutsch
PL
język polski
ES
Español
VI
Tiếng việt
FR
Français
PT-BR
Português
All Languages
AR
العربية
BG
български
CS
čeština
DA
dansk
EL
Ελληνικά
FI
suomen kieli
HE
עִבְרִית
HI
हिंदी
HR
hrvatski
HU
Magyar nyelv
ID
Bahasa Indonesia
IT
Italiano
JA
日本語
KO
한국어
LT
lietuvių kalba
NL
Nederlands
NO
norsk
RO
Limba română
SK
slovenský jazyk
SL
slovenski jezik
SV
Svenska
TH
ภาษาไทย
TR
Türkçe
UK
украї́нська мо́ва
ZH
简体中文
ZH-TW
繁體中文
Welcome to CoinGecko
Welcome back!
Login or Sign up in seconds
or
Sign in with . Not you?
Forgot your password?
Didn't receive confirmation instructions?
Resend confirmation instructions
Password must contain at least 8 characters including 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character
By continuing, you acknowledge that you've read and agree fully to our Terms of Service and Privacy Policy.
Get Price Alerts with CoinGecko App
Forgot your password?
You will receive an email with instructions on how to reset your password in a few minutes.
Resend confirmation instructions
You will receive an email with instructions for how to confirm your email address in a few minutes.
Get the CoinGecko app.
Scan this QR code to download the app now App QR Code Or check it out in the app stores
Add NFT
CoinGecko
Better on the app
Real-time price alerts and a faster, smoother experience.