Bitcoin dropped 13.49% in 24 hours to $51,656, according to real-time market data as of December 3, 2026. If your portfolio is a screenshot from last week, you do not know what you own or what you paid. A spreadsheet fixes that, but only if the prices refresh and the cost basis is right.
Some pages offering a "free download" give you a static file with manual price entry, or an .xlsm file with macros you cannot audit. This guide shows the sheet layout, the exact formulas, and the trade-offs, so you can build a tracker you control.

According to CoinGecko, its public API includes a simple price endpoint that returns current prices by coin ID. That endpoint is what makes a free, live-updating Excel tracker possible without paid software.
This page does not host a downloadable file, and I will not point you to a link I cannot verify. The layouts and formulas below are copy-paste ready, so you end up with a clean .xlsx you can inspect cell by cell. That matters because an .xlsm from an unknown site can carry malicious macros.
| Requirement | Why it matters | Where it lives in this guide |
|---|---|---|
| Transaction log | Single source of truth for every buy, sell and fee | Sheet 1 |
| Live price feed | Without it, value and P/L are stale | Sheet 3 |
| Holdings summary | Quantity, average cost, weight, unrealized P/L | Sheet 2 |
| Tax lots | Per-lot cost basis and holding period | Sheet 4 |
| Snapshot history | Needed for returns, Sharpe and drawdown | Optional Sheet 5 |
Create a table (Ctrl+T) named Transactions with these columns. Use CoinGecko coin IDs such as bitcoin, ethereum and solana in column C so the price lookup matches exactly.
| Column | Header | Content |
|---|---|---|
| A | Date | Trade date |
| B | Type | Buy or Sell |
| C | Coin ID | CoinGecko ID, lowercase |
| D | Quantity | Units traded |
| E | Price USD | Price per unit at trade time |
| F | Fees USD | Exchange or network fee |
| G | Total USD | =D2*E2+F2 for buys |
| H | Venue | Exchange or wallet name |
Column A holds each coin ID. Then fill down these three formulas for each row:
B2: ="https://api.coingecko.com/api/v3/simple/price?ids="&A2&"&vs_currencies=usd"
C2: =WEBSERVICE(B2)
D2: =IFERROR(NUMBERVALUE(MID(C2,FIND("""usd"":",C2)+6,LEN(C2)-FIND("""usd"":",C2)-7),"."),NA())
The API returns text like {"bitcoin":{"usd":51656}}. The MID/FIND pair cuts out the number, and NUMBERVALUE with "." as the decimal separator avoids errors on computers set to comma decimals. Press F9 to force a refresh.
Put each coin ID in column A, then use:
B2 Quantity: =SUMIFS(Transactions[Quantity],Transactions[Coin ID],A2,Transactions[Type],"Buy")-SUMIFS(Transactions[Quantity],Transactions[Coin ID],A2,Transactions[Type],"Sell")
C2 Avg cost: =IFERROR(SUMIFS(Transactions[Total USD],Transactions[Coin ID],A2,Transactions[Type],"Buy")/SUMIFS(Transactions[Quantity],Transactions[Coin ID],A2,Transactions[Type],"Buy"),0)
D2 Price: =INDEX(Prices!D:D,MATCH(A2,Prices!A:A,0))
E2 Value: =B2*D2
F2 Unrealized P/L: =E2-B2*C2
G2 Weight: =E2/SUM(E$2:E$20)
Column C is a simple average cost over all buys. It ignores sells, so it is fine for a quick view but not for tax. Use Sheet 4 for that.
The quantities below are hypothetical. Prices are from real-time market data as of December 3, 2026.
| Coin | Quantity (example) | Price | 24h change | Value | Weight |
|---|---|---|---|---|---|
| Bitcoin (BTC) | 0.5 | $51,656 | -13.49% | $25,828 | 64.0% |
| Ethereum (ETH) | 5 | $1,573 | -6.13% | $7,865 | 19.5% |
| Solana (SOL) | 100 | $66.37 | -8.58% | $6,637 | 16.5% |
| Total | — | — | — | $40,330 | 100% |
Weights matter on a day like this. A 64% Bitcoin position fell the most in this basket, which is the kind of concentration the Weight column is designed to expose. For next steps, see this crypto portfolio rebalancing strategy guide.
A tax lot is one purchase with its own date and cost. When you sell, you decide, or your jurisdiction's rules decide, which lots are consumed. Methods such as FIFO (first in, first out) and specific identification give different gains from the same trades. Check your local tax authority's rules, since methods allowed differ by country. This is not tax advice.
| Sheet | Columns |
|---|---|
| Lots | A LotID, B Coin ID, C Date acquired, D Quantity, E Cost per unit, F Quantity sold, G Remaining |
| Disposals | A Date sold, B Coin ID, C LotID, D Quantity sold, E Sale price per unit, F Fees, G Proceeds, H Cost basis, I Gain/loss, J Term |
Lots!E2 Cost per unit: =(Transactions price*Qty+Fee)/Qty
Lots!F2 Qty sold: =SUMIFS(Disposals!D:D,Disposals!C:C,A2)
Lots!G2 Remaining: =D2-F2
Disposals!G2 Proceeds: =D2*E2-F2
Disposals!H2 Cost basis: =D2*INDEX(Lots!E:E,MATCH(C2,Lots!A:A,0))
Disposals!I2 Gain/loss: =G2-H2
Disposals!J2 Term: =IF(A2-INDEX(Lots!C:C,MATCH(C2,Lots!A:A,0))>365,"Long-term","Short-term")
For FIFO in Microsoft 365, keep Lots sorted by date and find the oldest lot with units left:
=XLOOKUP(1,(Lots!B2:B500="bitcoin")*(Lots!G2:G500>0),Lots!A2:A500)
If a sale spans two lots, split it into two Disposals rows, one per lot.
For the reporting side, read this crypto tax reporting guide.
These need history. Add a Snapshots sheet and paste the total portfolio value (as a value, not a formula) once per day. Column A is the date, B is total value.
C3 Daily return: =B3/B2-1
D2 Running peak (first row): =B2
D3 Running peak: =MAX(D2,B3)
E3 Drawdown: =B3/D3-1
Max drawdown: =MIN(E3:E400)
Annualized Sharpe (rf = 0): =AVERAGE(C3:C400)/STDEV.S(C3:C400)*SQRT(365)
Crypto trades every day, so the annualization factor is 365 rather than the 252 used for stocks. The Sharpe ratio measures excess return per unit of volatility. Setting the risk-free rate to zero is a simplification. Fewer than a few months of daily data gives a noisy result, so treat early readings with caution.

| Factor | Excel workbook | Dedicated tracker app |
|---|---|---|
| Cost | Free if you own Excel | Free tiers exist, limits vary |
| Live prices | Needs setup, depends on platform | Built in |
| Exchange sync | Manual CSV import | Usually API-based |
| Custom metrics | Unlimited | Fixed set |
| Cost-basis method control | Full, per lot | Depends on the app |
| Data location | Your device or cloud drive | Vendor servers |
| Maintenance | You fix broken formulas | Vendor maintains |
| Mobile | Limited for API formulas | Native apps |
Excel wins on control and privacy. Apps win on convenience and automatic exchange sync. If you hold on one or two exchanges and make a handful of trades per month, Excel is practical. If you trade across many venues and DeFi protocols, hand entry becomes the bottleneck. In that case, read the notes on best crypto wallets for where your assets sit.
| Symptom | Likely cause | Fix |
|---|---|---|
| #NAME? on WEBSERVICE | Mac, Excel for the web, or an older version | Use Power Query or the Currencies data type |
| #VALUE! in column C | Blocked request, bad URL or no connection | Paste the URL in a browser to confirm it returns JSON |
| Empty or error response after many rows | API rate limit (HTTP 429) | Reduce the number of calls, or switch to a single Power Query request for all IDs |
| #N/A in price column | Wrong coin ID | Use the ID from the coin's CoinGecko page, not the ticker |
| Price off by a factor of 10 or more | Decimal separator mismatch | Keep NUMBERVALUE with "." as shown |
| Weights do not sum to 100% | Range does not cover all rows | Extend the SUM range, or use a table reference |
| Cost basis looks wrong after sells | Average cost ignores disposals | Use the Lots and Disposals sheets for realized gains |
Three common errors can break a tracker. First, using ticker symbols instead of CoinGecko IDs, since several tokens share tickers. Second, recording a trade at the market price on the wrong date, which corrupts cost basis. Third, forgetting fees: a $10 fee on a $500 buy lifts your cost per unit by 2%, and over dozens of trades that gap becomes visible. Also remember that WEBSERVICE results are recalculated, not streamed. Excel updates them when the workbook recalculates, so a stale tab can silently show last hour's price. Add a timestamp cell with =NOW() next to the price table and refresh before you make any decision.

It is a spreadsheet file that records crypto trades and calculates holdings, value and profit or loss. Quality varies widely. Some include live prices and tax lots, while others are static tables. Building from the layout above gives you a file you can inspect.
Use the Currencies data type in Microsoft 365, WEBSERVICE with the CoinGecko price endpoint on Windows, or Power Query to parse JSON. Power Query is better for larger lists of coins.
It is safe if the file is .xlsx with no macros and you can read every formula. Avoid .xlsm files from unknown sources, and never enter seed phrases or trading-enabled API keys.
Average cost does not account for which lots were sold. Use per-lot tracking in the Lots and Disposals sheets, with FIFO or the method your tax authority permits.
You can export the Disposals sheet as CSV for tax software or your accountant. Confirm the allowed cost-basis method and reporting format in your jurisdiction first.
Disclosure: XPERTRAX (xpertrax.com) is an affiliated platform. Links and pop-ups pointing to xpertrax.com promote it. This article is for information only and is not financial advice.