Multi-Brokerage Wash-Sale & Tax-Loss Harvesting Tracker in Excel (61-Day Formula)

In this article

Brokerages such as Fidelity, Charles Schwab, and Vanguard only track IRS wash sales inside their own institution—they are completely blind to buys made in your other taxable accounts, your spouse's accounts, or your IRA. Under the IRS 61-day wash-sale rule (30 days before through 30 days after a loss sale), buying a substantially identical security in an IRA can permanently disallow the tax loss. Instead of manually cross-checking PDF statements every December or relying on stale broker exports, build one consolidated Excel tax-loss harvesting & wash-sale ledger powered by MarketXLS (=Last(), =FundExpenseRatio(), =DividendYield()) and an automated 61-day SUMIFS compliance flag.

See it in actionMarketXLS video

Try it in your own spreadsheet

Get the free MarketXLS sample workbook (.xlsx).

No account needed. MarketXLS live data requires a paid plan. Preview workbook

Explore more videos
Multi-brokerage tax-loss harvesting and 61-day wash-sale tracker in Excel powered by MarketXLS live prices

Why Single-Broker Tax-Loss Tools Fail Multi-Account Investors

Most households and RIA clients hold overlapping ETFs or blue-chip stocks across 3 to 6 accounts (taxable brokerage, 401(k), Traditional/Roth IRA, and a secondary broker). That creates three costly blind spots:

  1. Invisible Cross-Brokerage Triggers: Selling VOO at a loss in Schwab while dividend reinvestment (DRIP) automatically buys VOO inside a Vanguard IRA 12 days later triggers a wash sale that neither broker's 1099-B reports properly.
  2. Stale Unrealized Loss Snapshots: Exported broker CSVs freeze prices the minute you download them. By the time you review lots during volatile year-end sessions, harvestable losses have already shifted.
  3. Guesswork on Replacement ETFs: Staying out of the market for 31 days introduces cash drag, while picking a replacement ETF that tracks the exact same index risks triggering "substantially identical" scrutiny.
Tax-Loss Harvesting MethodSees All Brokerages + IRAs?Live Unrealized P&LFlags 61-Day DRIP & Cross-Account BuysReplacement ETF Analysis
Single-broker web dashboardNo (blind to outside accounts)Yes (one broker only)NoLimited
Static CSV export in ExcelManual merge onlyNo (stale on download)Only if you build formulasNone
Consolidated Excel + MarketXLSYes (all accounts in one ledger)Yes (=Last, =QM_Stream_Last)Yes (automated 61-day SUMIFS)Yes (=FundExpenseRatio, /etfs/tax-harvesting)

Stop Reconciling Brokerage Statements by Hand: Use Live Excel Formulas

You do not need to pay for heavyweight wealth-management software or manually refresh quotes across five browser tabs every December. Move your consolidated tax-lot ledger into Excel with MarketXLS so every lot's live market value, unrealized loss, dividend ex-date, and replacement ETF expense ratio updates automatically in one clean workbook.

61-day cross-brokerage wash-sale window and live MarketXLS tax-loss harvesting table in Excel

61-day cross-brokerage wash-sale window and live MarketXLS tax-loss harvesting table in Excel

Step-by-Step: Build the Multi-Brokerage Wash-Sale & Harvest Engine

Step 1: Consolidate All Accounts Into One Master_Ledger Sheet

Combine transaction rows from every taxable account and IRA into one standard table (A2:I1000):

ColumnHeaderExample / Formula
ABrokerFidelity, Schwab, Vanguard
BAccount TypeTaxable, Roth IRA, Traditional IRA
CTrade Date2026-12-03
DTickerVTI
EActionBUY, DRIP, SELL-LOSS, SELL-GAIN
FShares150
GTrade Price / Cost Basis$284.50
HLive Market Price (MarketXLS)=Last(D2) (or =mxls.Last(D2) on Mac/Web)
IUnrealized P&L (Open Lots)=(H2-G2)*F2

Add live dividend awareness right next to your open lots so an upcoming dividend reinvestment (DRIP) never ambushes your 61-day window:

=Ex_DividendDate(D2)       ' Upcoming / latest ex-dividend date
=DividendYield(D2)         ' Current trailing yield
=FundExpenseRatio(D2)      ' ETF / mutual fund expense ratio

Formula documentation: Ex_DividendDate, DividendYield, FundExpenseRatio

Step 2: Copy-Paste the Automated 61-Day Cross-Broker Wash-Sale Flag

In column J (Wash-Sale Flag), paste this formula in row 2 and copy down:

=IF(E2="SELL-LOSS",
  IF(
    SUMIFS($F$2:$F$1000, $D$2:$D$1000, D2, $E$2:$E$1000, "BUY",  $C$2:$C$1000, ">="&(C2-30), $C$2:$C$1000, "<="&(C2+30))
  + SUMIFS($F$2:$F$1000, $D$2:$D$1000, D2, $E$2:$E$1000, "DRIP", $C$2:$C$1000, ">="&(C2-30), $C$2:$C$1000, "<="&(C2+30)) > 0,
    "WASH SALE RISK - CHECK CROSS-ACCOUNT BUY/DRIP",
    "CLEAN HARVEST"
  ),
  "-"
)

This single formula scans every brokerage and IRA row in your workbook for both manual BUY orders and automatic DRIP reinvestments occurring anywhere from Trade Date - 30 through Trade Date + 30.

Step 3: Pair Harvested ETFs With Non-Identical Replacements

To stay invested during the 31-day cooldown without sitting in cash, investors commonly pair ETFs that maintain similar broad asset exposure while tracking different underlying indexes (consult a qualified tax advisor for your specific situation):

Sold ETF (Example Loss Lot)Index TrackedCommon Different-Index ReplacementCompare Fees & Overlap
VTI (Vanguard Total Stock Market)CRSP US Total MarketITOT (S&P Total Market) or SCHB (Dow Jones US Broad)=FundExpenseRatio("ITOT")
VOO (Vanguard S&P 500)S&P 500SCHX (Dow Jones US Large-Cap) or VV (CRSP US Large Cap)=FundExpenseRatio("SCHX")
VXUS (Vanguard Total Intl)FTSE Global All Cap ex USIXUS (MSCI ACWI ex USA IMI)=FundExpenseRatio("IXUS")
BND (Vanguard Total Bond)Bloomberg US Agg Float AdjAGG / SCHZ or IUSB (Bloomberg US Universal)=FundExpenseRatio("IUSB")

Before swapping, run any ETF pair through our free ETF Tax-Loss Harvesting Tool and ETF Overlap Calculator (or check mutual fund pairs in the Mutual Fund Tax-Harvesting Tool).

Clean Live Data Across Every Account and Platform

MarketXLS works across Windows desktop Excel as well as Mac (Apple Silicon) and Excel for the Web (mxls. prefix). Standard plans start at $70/month billed annually ($850/year) with 15-minute delayed US quotes and full ETF/fund fundamentals, and Advanced ($125/month billed annually / $1,500/year) adds real-time streaming (=QM_Stream_Last). See MarketXLS Pricing or pair this sheet with our Stock Portfolio Tracker in Excel guide.

Disclaimer: This article is for educational and spreadsheet workflow purposes only and is not tax or legal advice. Always confirm wash-sale and "substantially identical" determinations with a qualified CPA or tax advisor.

Frequently Asked Questions

Why doesn't my brokerage catch wash sales across Fidelity, Schwab, and my IRA?

IRS reporting rules only require each brokerage to track wash sales for identical CUSIPs held within that single brokerage's taxable accounts. Brokers have no visibility into trades or automatic DRIP reinvestments happening at outside institutions or inside IRAs, leaving multi-account reconciliation up to you and your CPA.

How do I write an Excel formula to detect a 61-day wash sale across multiple accounts?

Consolidate all accounts into one table (Master_Ledger) and use SUMIFS to sum all BUY and DRIP shares for the same ticker where the trade date is ">="&(SaleDate-30) and "<="&(SaleDate+30). Any count greater than zero flags a cross-account wash sale immediately.

Can automatic dividend reinvestment (DRIP) trigger a wash sale?

Yes. An automatic dividend reinvestment purchase within 30 days before or after selling shares of the same security at a loss counts as a replacement acquisition under IRS wash-sale rules. Checking =Ex_DividendDate(Ticker) inside MarketXLS helps you spot upcoming dividend dates before harvesting a lot.

How can I pull live unrealized tax losses into Excel automatically?

Use MarketXLS's =Last(Ticker) (or =QM_Stream_Last(Ticker) for real-time streaming; =mxls.Last(Ticker) on Mac/Web) next to your tax-lot cost basis so unrealized dollar and percentage losses recalculate automatically across all brokerages.

Where can I compare replacement ETFs for tax-loss harvesting?

Use MarketXLS's free ETF Tax-Loss Harvesting Tool and ETF Overlap Calculator on the web, and pull live fees and holdings into your spreadsheet with =FundExpenseRatio() and =ETFHoldings().

About the authors
Robin

About Robin

Co-Founder & COO, MarketXLS

Robin is a co-founder and the COO of MarketXLS. He works with Ankur and Anagh on the MarketXLS blog, creating articles together about market data and spreadsheet workflows.

Written collaboratively by Robin, Ankur and Anagh.

Important Disclaimer

The information provided in this article is for educational and informational purposes only and should not be construed as investment advice, a recommendation, or an offer to buy or sell any securities. MarketXLS is a financial data platform and is not a registered investment advisor, broker-dealer, or financial planner. Always conduct your own research and consult with a qualified financial professional before making any investment decisions. Past performance is not indicative of future results. Trading and investing involve substantial risk of loss.

Explore MarketXLS in Excel
Download a free sample workbook (.xlsx). MarketXLS is a paid subscription.

See MarketXLS in action

Bring this workflow into Excel.

Book a demo with our team to see how MarketXLS supports your market research.

Ankur
AnkurFounder & CEO, MarketXLS