To get ex-dividend dates for many stocks in Excel, enter =Ex_DividendDate("AAPL") from MarketXLS in a cell for each ticker and format the result as a date. Buy a stock before its ex-dividend date and you receive the next dividend; buy on or after it and you do not. Pair the ex-date formula with =DividendPayDate, =DividendPerShare, =DividendFrequency, and =DividendYield to build a tracker for your whole portfolio.
This guide explains the dividend timeline, then walks through building an ex-dividend tracker and dividend calendar in Excel.
What Is an Ex-Dividend Date?
The ex-dividend date (also called the "ex-date") is the first day a stock trades without the right to the next dividend payment. If you own the stock before the ex-dividend date, you are entitled to the upcoming dividend. If you purchase the stock on or after the ex-dividend date, the seller retains the right to the dividend.
This matters because stock settlement takes one business day (T+1 in the United States since May 2024). To be the "owner of record" on the record date, your purchase must settle by that date. Under T+1, the ex-dividend date and the record date are usually the same business day, so you must buy before the ex-dividend date.
On the ex-dividend date itself, the stock price typically drops by approximately the dividend amount at the market open. This is because new buyers are paying for shares that no longer carry the right to the upcoming dividend.
The Dividend Date Timeline
Understanding the full timeline of dividend-related dates helps you plan:
| Date | What Happens | Who Decides |
|---|---|---|
| Declaration Date | Company announces the dividend amount, record date, and pay date | Company's board of directors |
| Ex-Dividend Date | First day the stock trades without the dividend; price typically drops by the dividend amount | Set by the exchange; under T+1 settlement it is usually the same day as the record date |
| Record Date | Company checks its records to determine which shareholders receive the dividend | Company (usually the same day as the ex-date under T+1) |
| Pay Date | Dividend is deposited into shareholders' accounts | Company |
Example Timeline
- January 15: Company declares a $0.50 quarterly dividend, record date February 14, pay date March 1
- February 13: Last day to buy the stock and receive the dividend (ex-date minus one business day)
- February 14: Ex-dividend date: buying today means you do NOT get the dividend
- February 14: Record date: ownership is checked
- March 1: Dividend is paid to shareholders of record
Why Ex-Dividend Dates Matter for Investors
Income Planning
If you rely on dividends for monthly or quarterly income, knowing when ex-dates occur helps you ensure you hold the right stocks at the right times. Missing an ex-date by one day means waiting another quarter (or longer) for the next payment.
Purchase Timing
Some investors prefer to buy stocks just after the ex-dividend date, when the price has dropped by the dividend amount. Others prefer to buy before the ex-date to capture the upcoming payment. Neither approach is inherently better; it depends on your tax situation and investment goals.
Tax Considerations
To qualify for the lower qualified dividend tax rate, you must hold the stock for more than 60 days during the 121-day period that begins 60 days before the ex-dividend date. Tracking ex-dates helps you ensure your holding period meets this requirement.
Avoiding Surprises
If you sell a stock on or after the ex-date, you still receive the dividend. If you sell before the ex-date, you do not. Likewise, if you buy on the ex-date, you will not receive the dividend even though it might seem like you bought "on time."
Getting Ex-Dividend Dates in Excel with MarketXLS
MarketXLS provides six functions that cover most ex-dividend tracking needs:
Ex-Dividend Date
=Ex_DividendDate("AAPL")
Formula documentation: Ex_DividendDate
=Ex_DividendDate returns the most recently declared ex-dividend date for Apple. A future date is the upcoming ex-date; a past date means the next dividend has not been declared yet (companies usually announce 2 to 4 weeks ahead), and the cell updates once it is. If it returns NA, try =ExDividendDate, which uses a different data source. The result is an Excel date serial number, so format the cell as a date to see it in readable format (e.g., MM/DD/YYYY).
Dividend Pay Date
=DividendPayDate("AAPL")
Formula documentation: DividendPayDate
Returns the most recent dividend pay date. This tells you when the last dividend was actually deposited into shareholders' accounts.
Dividend Per Share
=DividendPerShare("AAPL")
Formula documentation: DividendPerShare
Returns the annual dividend per share amount. To get the per-payment amount, divide by the number of payments per year (4 for a quarterly payer):
=DividendPerShare("AAPL") / 4
Formula documentation: DividendPerShare
Dividend Frequency
=DividendFrequency("AAPL")
Formula documentation: DividendFrequency
Returns how often the company pays dividends as text: "Quarterly" for most US stocks, "Monthly" for monthly payers such as O, and "Semi-Annual" or "Annual" for others.
Dividend Yield
=DividendYield("AAPL")
Formula documentation: DividendYield
Returns the current annual dividend yield as a percentage. This is the annual dividend per share divided by the current stock price.
Current Stock Price
=Last("AAPL")
Formula documentation: Last
Returns the last traded price. Useful for calculating your own yield or determining the expected ex-date price drop.
Building an Ex-Dividend Date Tracker in Excel
The tracker below lists ex-dates, pay dates, and income for each holding in one table.
Step 1: Set Up Your Holdings Table
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Ticker | Shares | Price | Ex-Date | Pay Date | Div/Share | Frequency | Yield % |
| 2 | AAPL | 100 | =Last("AAPL") | =Ex_DividendDate("AAPL") | =DividendPayDate("AAPL") | =DividendPerShare("AAPL") | =DividendFrequency("AAPL") | =DividendYield("AAPL") |
| 3 | MSFT | 50 | =Last("MSFT") | =Ex_DividendDate("MSFT") | =DividendPayDate("MSFT") | =DividendPerShare("MSFT") | =DividendFrequency("MSFT") | =DividendYield("MSFT") |
| 4 | JNJ | 150 | =Last("JNJ") | =Ex_DividendDate("JNJ") | =DividendPayDate("JNJ") | =DividendPerShare("JNJ") | =DividendFrequency("JNJ") | =DividendYield("JNJ") |
| 5 | KO | 200 | =Last("KO") | =Ex_DividendDate("KO") | =DividendPayDate("KO") | =DividendPerShare("KO") | =DividendFrequency("KO") | =DividendYield("KO") |
| 6 | PG | 100 | =Last("PG") | =Ex_DividendDate("PG") | =DividendPayDate("PG") | =DividendPerShare("PG") | =DividendFrequency("PG") | =DividendYield("PG") |
| 7 | O | 300 | =Last("O") | =Ex_DividendDate("O") | =DividendPayDate("O") | =DividendPerShare("O") | =DividendFrequency("O") | =DividendYield("O") |
Step 2: Add Calculated Columns
Add columns for per-payment amounts and income. Because =DividendFrequency returns text, convert it to payments per year first:
I1: Per Payment I2: =F2/SWITCH(G2,"Monthly",12,"Quarterly",4,"Semi-Annual",2,"Annual",1)
J1: Annual Income J2: =B2*F2
K1: Monthly Income K2: =J2/12
Step 3: Add Ex-Date Alerts
Create a column that flags upcoming ex-dates:
L1: Alert
L2: =IF(D2-TODAY()<=7, IF(D2-TODAY()>=0, "EX-DATE THIS WEEK", "PASSED"), "OK")
Use conditional formatting to highlight cells with "EX-DATE THIS WEEK" in red/orange so you immediately see which stocks have imminent ex-dates.
Step 4: Sort and Filter
Sort the table by ex-date (column D) to see which stocks go ex-dividend next. This helps you plan purchases or sales around ex-dates.
Step 5: Add Historical Price Context
For any stock where you want to analyze the ex-date price impact:
=GetHistory("AAPL", "2024-01-01", "2024-12-31", "Daily")
Formula documentation: GetHistory
Pull historical data around past ex-dates to see how much the stock typically drops on the ex-date and how quickly it recovers.
Strategies Around Ex-Dividend Dates
Dividend Capture Strategy
The dividend capture strategy involves buying a stock just before the ex-dividend date to capture the dividend, then selling shortly after. While this sounds appealing, there are important considerations:
- The stock price typically drops by the dividend amount on the ex-date
- Transaction costs (commissions, bid-ask spread) can erode the benefit
- Dividends may be taxed as ordinary income if the holding period requirement is not met
- Short-term capital gains from the price drop offset the dividend income
This strategy is not inherently profitable for most individual investors, but some use it in specific tax situations or with carefully selected stocks.
Long-Term Dividend Growth
A more sustainable approach is to hold dividend-growing stocks for the long term and use ex-date tracking to:
- Confirm you own stocks before their ex-dates
- Identify opportunities to add shares when prices dip on ex-dates
- Monitor dividend frequency and yield changes over time
Portfolio Rebalancing Timing
When rebalancing your portfolio, check ex-dividend dates before selling. Selling just before an ex-date means you miss the dividend. If the ex-date is within a few days, it may be worth waiting to capture the payment before rebalancing.
Understanding Dividend Adjustments
Stock Splits and Dividends
When a company does a stock split, the dividend per share is typically adjusted proportionally. A 2-for-1 split halves the dividend per share but doubles the number of shares, so total income remains the same.
Special Dividends
Some companies pay special (one-time) dividends in addition to their regular schedule. Special dividends have their own ex-dates and are not included in the trailing annual dividend yield calculation.
Dividend Cuts and Suspensions
Companies can reduce or eliminate dividends at any time. Monitoring fundamental metrics alongside ex-dates helps you assess dividend safety:
=DividendYield("AAPL") // Is the yield unusually high? (possible price decline)
=DividendPerShare("AAPL") // Has the per-share amount changed?
=DividendFrequency("AAPL") // Has the frequency changed?
=Last("AAPL") // What is the current price trend?
Formula documentation: DividendYield, DividendPerShare, DividendFrequency, Last
Building a Dividend Calendar
A dividend calendar shows all dividend payments across your portfolio on a monthly or weekly basis.
Monthly Calendar Structure
Create a 12-column layout (one per month). For each stock in your portfolio, place the expected dividend income in the month it pays:
- Quarterly payers (most US stocks): Income appears in 4 of 12 months
- Monthly payers (REITs, some ETFs): Income appears in every month
- Semi-annual payers: Income appears in 2 of 12 months
Sum each month column to see total expected income. This reveals whether any months have gaps that need filling with additional holdings.
Diversifying Payment Months
Most US stocks pay quarterly on one of three cycles:
| Cycle | Ex-Date Months | Payment Months (approx.) |
|---|---|---|
| Cycle A | Jan, Apr, Jul, Oct | Feb, May, Aug, Nov |
| Cycle B | Feb, May, Aug, Nov | Mar, Jun, Sep, Dec |
| Cycle C | Mar, Jun, Sep, Dec | Jan, Apr, Jul, Oct |
By holding stocks from all three cycles, you receive dividend payments in every month. Track ex-dates for each cycle to ensure complete coverage.
Analyzing Historical Dividend Data
MarketXLS allows you to pull historical price data to analyze dividend trends:
=GetHistory("JNJ", "2019-01-01", "2024-12-31", "Monthly")
Formula documentation: GetHistory
By examining monthly price data alongside known dividend history, you can:
- Calculate historical yield at different price points
- Identify trends in dividend growth
- Assess how the stock performs around ex-dates over time
- Determine whether yield expansions are driven by price declines or dividend increases
Ex-Dividend Dates for ETFs
ETFs also have ex-dividend dates, and they work similarly to individual stocks. However, ETF dividends can be less predictable because they depend on the dividends collected from all underlying holdings.
Key differences:
- ETF ex-dates may not follow the same schedule as their largest holdings
- ETF dividend amounts can vary from quarter to quarter
- Some ETFs pay monthly (many bond ETFs and dividend-focused ETFs)
- Capital gains distributions in December have their own ex-dates
Use the same MarketXLS functions for ETFs:
=Ex_DividendDate("SPY")
=DividendYield("SPY")
=DividendPerShare("SPY")
=DividendFrequency("SPY")
Formula documentation: Ex_DividendDate, DividendYield, DividendPerShare, DividendFrequency
Comparing Dividend Data Sources
Investors have several options for tracking ex-dividend dates. Here is how they compare:
| Source | Real-Time Data | Multiple Stocks at Once | Customizable | Integrates with Analysis | Cost |
|---|---|---|---|---|---|
| Financial news websites | Yes | Limited (one at a time) | No | No | Free |
| Brokerage platforms | Yes | Yes (portfolio view) | Limited | Limited | Included with account |
| Dividend calendar websites | Yes | Yes | Limited | No | Free/Premium |
| Manual tracking spreadsheet | No (manual entry) | Yes | Fully | Yes (manual) | Free |
| MarketXLS in Excel | Yes (formula-based) | Yes (unlimited tickers) | Fully | Yes (native Excel) | See pricing |
The advantage of using MarketXLS is that ex-dividend dates live alongside your portfolio calculations, income projections, and analysis tools. There is no need to switch between platforms or manually enter dates from one system into another.
Dividend Safety Assessment
Before relying on any dividend for income, assess whether the company can sustain its payments. Key metrics to monitor alongside ex-dates include:
Payout Ratio
The payout ratio measures what percentage of earnings a company distributes as dividends. A payout ratio above 80-90 percent for most sectors suggests the dividend may be at risk if earnings decline. Use fundamental functions in MarketXLS to track these metrics.
Earnings Stability
Companies with volatile earnings are more likely to cut dividends during downturns. Utilities and consumer staples tend to have stable earnings and reliable dividends. Technology and cyclical companies may have higher growth but less predictable payments.
Debt Levels
Companies carrying heavy debt may prioritize debt repayment over dividend payments during financial stress. Monitor debt-to-equity ratios alongside dividend data for a complete picture.
Free Cash Flow Coverage
Dividends are paid from cash, not accounting earnings. A company whose free cash flow consistently exceeds its total dividend payments has a comfortable margin of safety. When free cash flow declines below dividend obligations, the dividend may be unsustainable.
Dividend Growth History
Companies with long histories of consecutive dividend increases — Dividend Aristocrats (25+ years) and Dividend Kings (50+ years) — have demonstrated commitment to maintaining and growing their payouts. While past performance does not guarantee future results, a multi-decade track record suggests strong institutional commitment to the dividend.
Common Mistakes with Ex-Dividend Dates
-
Buying on the ex-date thinking you get the dividend: You must buy BEFORE the ex-date. Buying on the ex-date means you do not receive the upcoming dividend.
-
Forgetting T+1 settlement: With T+1 settlement, you need to buy at least one business day before the record date. The ex-date is set accordingly, but understanding the mechanism helps avoid confusion.
-
Ignoring the price drop: Stocks typically drop by approximately the dividend amount on the ex-date. The dividend is a transfer from stock value to cash, not free money.
-
Not tracking across your full portfolio: With dozens of holdings, it is easy to miss ex-dates. A systematic tracker in Excel solves this.
-
Assuming consistent timing: Companies can change their ex-date schedule. Always verify with current data rather than assuming the same dates year after year.
-
Overlooking tax implications: Qualified vs. non-qualified dividends have different tax treatments, and the holding period around the ex-date determines which rate applies.
Frequently Asked Questions
What is an ex-dividend date?
An ex-dividend date is the first day a stock trades without the right to receive the next declared dividend. If you buy the stock before the ex-dividend date, you receive the dividend. If you buy on or after the ex-dividend date, you do not. In Excel, use =Ex_DividendDate("AAPL") with MarketXLS to retrieve this date for any stock.
How do I find ex-dividend dates in Excel?
With MarketXLS, type =Ex_DividendDate("AAPL") in any cell, replacing AAPL with your desired ticker. The function returns the date as an Excel serial number; format the cell as a date to see it in MM/DD/YYYY format. In the Microsoft 365 add-in (Excel for Mac or the web), use the mxls. prefix, for example =mxls.Ex_DividendDate("AAPL"). You can create a table with this formula for every stock in your portfolio to track all ex-dates at once.
Do I get the dividend if I buy on the ex-dividend date?
No. You must purchase the stock before the ex-dividend date to be eligible for the upcoming dividend payment. Buying on the ex-date or after means the previous owner receives the dividend. Under T+1 settlement, the ex-date is usually the record date, and a purchase made that day settles too late for you to be the owner of record.
How much does a stock drop on the ex-dividend date?
A stock typically drops by approximately the dividend amount at the market open on the ex-dividend date. For example, if a stock closes at $100 the day before the ex-date and the dividend is $0.50, it may open around $99.50. However, regular market forces can amplify or offset this adjustment throughout the trading day.
How do I build a dividend calendar in Excel?
Set up a table with tickers in rows and months (January through December) in columns. Use =DividendFrequency() to see each stock's payment schedule (for example "Quarterly") and divide =DividendPerShare() by the number of payments per year to get the per-payment amount. Place each payment in the appropriate month columns. Sum each month to see total expected income. MarketXLS also offers a pre-built Dividend Calendar Template.
Can I track ETF ex-dividend dates the same way?
Yes. All MarketXLS dividend functions work for ETFs as well as individual stocks. Use =Ex_DividendDate("SPY"), =DividendYield("SPY"), and =DividendPerShare("SPY") to track ETF dividend data. Note that ETF dividend amounts may vary more from quarter to quarter than individual stock dividends.
Getting Started with Ex-Dividend Date Tracking
Building a reliable ex-dividend date tracker in Excel takes just minutes with MarketXLS:
- List your holdings: Enter tickers and share counts
- Add date formulas: Use
=Ex_DividendDate()and=DividendPayDate()for each stock - Add income formulas: Use
=DividendPerShare(),=DividendFrequency(), and=DividendYield() - Create alerts: Use conditional formatting to highlight upcoming ex-dates
- Build a calendar: Map payments to months for full-year income visibility
Visit MarketXLS Pricing to get started with the tools you need for complete dividend date tracking. Learn more at MarketXLS.
Conclusion
The ex-dividend date decides whether you receive the next dividend. MarketXLS functions like =Ex_DividendDate(), =DividendPayDate(), =DividendPerShare(), =DividendFrequency(), =DividendYield(), =Last(), and =GetHistory() let you build that tracker in Excel, with ex-dates, pay dates, payment amounts, and yields for every holding updating when the workbook refreshes.
