Option Symbol

Builds the QuoteMedia option symbol format (@TICKER YYMMDD[C/P]00STRIKE) from the underlying ticker, expiration date, call/put flag, and strike price. This is the symbol the QM_ option contract functions require.

Format

  • @ + ticker padded to 6 chars
  • YYMMDD expiry
  • C (call) or P (put)
  • strike x 1000, zero-padded to 8 digits

Syntax

=OptionSymbol(Symbol, ExpiryDate, CallPut, Strike)
Excel Desktop (Windows)

Examples

=OptionSymbol("MSFT","2021-07-23","P",252.50)
-> @MSFT 210723P00252500
=OptionSymbol("AAPL","2026-07-17","Call",450)
-> @AAPL 260717C00450000
=QM_Last(OptionSymbol("AAPL","2026-07-17","C",450))
last price of that contract

When to Use

Constructing the option symbol needed by QM_ contract functions (QM_Last, QM_Strike, QM_OpenInterest, etc.).

When NOT to Use

When you already have the option symbol, or when you want the full chain (use QM_GetOptionChain).

Common Issues & FAQ

Expiry date must be a valid date. Call/Put must start with C or P. Strike is the dollar strike (e.g. 252.50), not x1000.

Get Access to 1 Billion Usable Market data points IN YOUR EXCEL SHEETS WITH EASY TO USE EXCEL FUNCTIONS

Get started today
MarketXLS Excel Add-in Tutorial - How to Use Option Symbol and Other Financial Formulas
How does MarketXLS work?