Last Price
Returns the most recent traded price for stocks, ETFs, indices, options, mutual funds, crypto, and forex.
Supported Symbol Formats
| Type | Format | Example |
|---|---|---|
| US Stocks | SYMBOL | AAPL, MSFT |
| ETFs | SYMBOL | SPY, QQQ |
| Indices | ^SYMBOL | ^SPX, ^VIX |
| Crypto | SYMBOL-USD | BTC-USD, ETH-USD |
| Forex | SYMBOL=X | EURUSD=X |
| Canadian | SYMBOL:CA | SHOP:CA |
| Options | OCC Symbol | AAPL240315C00170000 |
Notes
- Prices are typically delayed 15 minutes
- For real-time streaming prices, use
QM_Stream_Last() - Returns "NA" if the symbol is invalid or data is unavailable
Syntax
=Last(Symbol)Returns
number
Last traded price
Examples
When to Use
- Quick price lookup for any symbol
- Portfolio valuation spreadsheets
- Building watchlists and dashboards
- Price input for calculations
When NOT to Use
| Scenario | Use Instead |
|---|---|
| Real-time streaming | QM_Stream_Last() |
| Historical price on date | Close_Historical() |
| Previous day's close | PreviousClose() |
| Pre-market price | QM_Stream_PreMarketLast() |
Common Issues & FAQ
Why am I getting "NA"?
Check symbol format:
- Canadian stocks need
:CAsuffix - Crypto needs
-USDsuffix - Indices need
^prefix - Forex needs
=Xsuffix
How do I get real-time prices?
Use QM_Stream_Last() for streaming updates.
Excel Templates Using Last Price
These ready-made MarketXLS templates call Last() in their worksheet formulas. Open one to see the function working inside a complete model.
- Comparison of prices of cryptocurrencies across exchanges
- Murphy Technology Screen
- Intra Sector View on the basis of Market Cap
- Correlation Matrix R
- Diagonal Spread with Puts Option Strategy
- NSE Equity Performance Dashboard
- Calculating Expected Stock Movement with MarketXLS: A Comprehensive Guide
- Buffettology: EPS Growth
Related Formulas
More MarketXLS Price Quotes formulas you can use in the same worksheet:
