Stock Return Year To Date
Returns the stock's year to date return. By default, this function returns total return using adjusted prices where available. You can optionally pass a second argument to request price return instead.
What is Calculated
The YTD calculation starts from the last trading day of the previous year and runs through the most recent available close.
Parameters
| Parameter | Required | Description |
|---|---|---|
| Symbol | Yes | Stock ticker symbol |
| TypeOfReturn | No | Optional. Use total (default) for dividend-adjusted total return, or price for price return. Also accepts return, change, and changepercent. |
Notes
- Returns are expressed as decimals (0.20 = 20% gain)
- Default behavior is total return
- Use
pricewhen you want return based only on unadjusted closing prices - Trading-day availability may shift the exact start/end observation dates slightly
Syntax
=StockReturnYTD(Symbol, [TypeOfReturn])Parameters
Stock ticker symbol
Return type. total/return uses adjusted prices and includes dividends where available; price uses unadjusted close prices.
Returns
YTD stock return as a decimal. Default behavior is total return; use typeOfReturn="price" for price return.
Examples
=StockReturnYTD("AAPL")=StockReturnYTD("AAPL","total")=StockReturnYTD("AAPL","price")=StockReturnYTD("AAPL") * 100When to Use
- Annual performance tracking
- YTD return comparison
- Reviewing how stocks are performing this year
When NOT to Use
| Scenario | Use Instead |
|---|---|
| Need a different preset horizon | Use the corresponding StockReturn...() function for that horizon |
| Need custom dates | StockReturnCustomDates() |
| Need dollar change instead of return | Use the corresponding Change...() function where available |
Common Issues & FAQ
What is the difference between total and price?
total uses adjusted prices and includes dividends where available. price uses unadjusted close prices and excludes dividend adjustments.
Why might the exact dates differ from the dates I expect?
If the requested anchor date is a weekend or market holiday, the calculation uses the nearest available trading date.
Why am I getting NA?
Check that the symbol is valid and that sufficient historical pricing data is available for the requested period.
Excel Templates Using Stock Return Year To Date
These ready-made MarketXLS templates call StockReturnYTD() in their worksheet formulas. Open one to see the function working inside a complete model.
Related Formulas
More MarketXLS MarketXLS Analytics formulas you can use in the same worksheet:
- Stock Volatility Between Two Dates In Past
- Stock Volatility Fifteen Days
- Stock Volatility Five Years
- Stock Volatility Nine Months
- Stock Volatility One Year
- Stock Volatility Seven Days
- Stock Volatility Six Months
- Stock Volatility Thirty Days
See StockReturnYTD used in a complete workbook: ETF Data in Excel: Live Prices, AUM, and Expense Ratios for May 2026
