Option Expire Minimum
Returns the nearest available expiration date for options on a given underlying stock using QuoteMedia's data service.
Supported Symbol Formats
| Type | Format | Example |
|---|---|---|
| US Stocks | SYMBOL | AAPL, MSFT |
| ETFs | SYMBOL | SPY, QQQ |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Symbol | String | Yes | Underlying stock ticker |
| OnDate | Date | Yes | Reference date |
Notes
- Returns the nearest available expiration
- Useful for front-month strategies
- May be same-day for highly liquid options
Syntax
=mxls.QM_GetOptionExpireMinimum(Symbol, OnDate)Parameters
symbolstringRequired
Underlying stock ticker symbol
onDatedateRequired
Reference date for finding minimum expiration
Returns
string
Minimum (nearest) expiration date available
Examples
=mxls.QM_GetOptionExpireMinimum("AAPL", DATE(2024,3,15))=mxls.QM_GetOptionExpireMinimum("SPY", TODAY())=mxls.QM_GetOptionExpireMinimum(A1, B1)When to Use
- Finding front-month options
- Short-term strategies
- Weekly options trading
- Quick expiration identification
When NOT to Use
| Scenario | Use Instead |
|---|---|
| Need furthest expiration | QM_GetOptionExpireMaximum() |
| Need all expirations | QM_GetOptionChain() |
| Need next N expirations | ExpirationNext() |
Common Issues & FAQ
What if the date I provide has expired options?
The function returns the next available expiration on or after the reference date.
Can this return same-day expirations?
Yes, for liquid stocks like SPY that have daily expirations.
What date format should I use?
Use Excel's DATE() function: DATE(2024,3,15) for March 15, 2024.
Related Formulas
More MarketXLS Options formulas you can use in the same worksheet:
- Option Filter
- Option Strikes
- Option Symbol
- Options Change in OI Leaders
- Options Change in Volume Leaders
- Options Delta
- Options Gamma
- Options Implied Volatility
See QM_GetOptionExpireMinimum used in a complete workbook: Options Spreadsheet in Excel: Track, Value, and Stress-Test Trades with MarketXLS
