Stock Portfolio Tracker Excel

Free template with auto-updating formulas to monitor your stock positions, track returns, and manage allocation

Tracking a stock portfolio doesn't require expensive software. A well-designed Excel template with the right formulas can automate most of the work and give you real-time visibility into your positions. This guide walks through building a full-featured stock tracker with auto-calculating formulas.

Why a Stock Portfolio Excel Template?

A template saves you from building from scratch. You get:

The Core Template Structure

Essential Columns:

Ticker | Company | Shares | Entry Price | Entry Date | Current Price | Total Value | Cost Basis | Gain/Loss | % Return | % of Portfolio

Every column feeds into the next. Once you enter the ticker, shares, and entry price, all calculations populate automatically.

Auto-Calculating Formulas Explained

1. Total Value (Auto-Calculate)

=C2 * F2

Multiplies shares (column C) by current price (column F). As prices update, total value refreshes automatically.

2. Cost Basis (Auto-Calculate)

=C2 * D2

Your original investment: shares × entry price. Doesn't change unless you edit entry data.

3. Gain or Loss (Auto-Calculate)

=H2 - I2

Where H2 = Total Value, I2 = Cost Basis. Shows your profit/loss in dollars.

4. Percentage Return (Auto-Calculate)

=(F2 - D2) / D2 * 100

Shows return as a percentage. If you bought at $100 and it's now $120, this shows +20%.

5. Portfolio Allocation % (Auto-Calculate)

=G2 / SUM($G$2:$G$100) * 100

Divides each position by total portfolio value. Use absolute references ($) so the formula locks the range when copied.

Portfolio Summary Calculations

Add these totals at the bottom of your tracker:

Total Portfolio Value: =SUM(G2:G100) Total Cost Basis: =SUM(I2:I100) Total Gain/Loss: =SUM(J2:J100) Overall Return %: =(Total Gain/Loss / Total Cost Basis) * 100

Automating Price Updates

The biggest challenge with Excel tracking is keeping prices current. Here are three approaches:

Option 1: Manual Daily Update (10 minutes)

Option 2: Google Sheets GOOGLEFINANCE (Automatic)

If you use Google Sheets instead of Excel:

=GOOGLEFINANCE("AAPL", "price")

This pulls live Apple stock price. Formula updates throughout the day. Excel doesn't have a native equivalent, but you can use Power Query or third-party add-ins.

Option 3: Broker Data Import (Semi-Automated)

Advanced Features to Add

Sector Allocation Breakdown

Add a "Sector" column (Technology, Healthcare, Finance, etc.). Then use SUMIF to calculate sector exposure:

Tech Allocation: =SUMIF(Sector:Sector, "Technology", Allocation:Allocation) Healthcare Allocation: =SUMIF(Sector:Sector, "Healthcare", Allocation:Allocation)

Concentration Risk Alert

Flag any position that exceeds 10% of your portfolio:

Largest Position: =MAX(K2:K100) Status: =IF(MAX(K2:K100) > 10%, "REBALANCE", "OK")

Performance vs Benchmark

Compare your returns to the S&P 500:

Your Return %: (From template calculation) S&P 500 Return %: (Manually enter or use GOOGLEFINANCE("^GSPC")) Outperformance: =Your Return % - S&P 500 Return %

Best Practices for Your Template

When to Upgrade Beyond Excel

Your Excel tracker works great until:

At that point, a dedicated tracker like Guardfolio saves time and gives you advanced insights Excel can't provide. For multi-broker consolidation specifically, see our guide on tracking multiple brokers in Excel.

Next Steps