How to Get Live Stock Prices in Excel: 3 Methods & Streaming Formulas

In this article

To get live stock prices in Excel, you have three working methods: (1) Microsoft 365's built-in Stocks data type (=A2.Price) and =STOCKHISTORY() function (free with Microsoft 365, delayed 15–20 minutes, manual refresh, ~15 basic fields); (2) Power Query web imports or a broker RTD link (=RTD()) from Thinkorswim or Interactive Brokers; or (3) a dedicated financial add-in such as MarketXLS, where =Last("AAPL") returns an on-demand quote and =QM_Stream_Last("AAPL") streams live tick-by-tick prices automatically inside any cell.

See it in actionMarketXLS video

Try it in your own spreadsheet

Get the free MarketXLS sample workbook (.xlsx).

No account needed. MarketXLS live data requires a paid plan. Preview workbook

Explore more videos
How to get live stock prices in Excel with auto-updating quotes and streaming formulas in MarketXLS

On MarketXLS, US stock quotes come from QuoteMedia and are 15-minute delayed on the Standard plan and real-time streaming on the Advanced and Business plans (see plans and pricing). On Mac and Excel for the web, the Microsoft 365 add-in uses the mxls. prefix (for example =mxls.Last("AAPL")).

This guide walks through all three methods step by step, compares latency and limits honestly, includes a downloadable 6-sheet stock workflow workbook, and covers automatic refresh, alerts, fundamentals, options, and troubleshooting.

For a broader product-level overview of formulas, plan fit, and workbook examples, see stock quotes in Excel, our stock portfolio tracker in Excel guide, our Excel stock price formula for any specific date, and our full Excel stock functions reference.

Quick Comparison: 3 Ways to Get Live Stock Prices in Excel

CriteriaMethod 1: Excel 365 (Stocks / STOCKHISTORY)Method 2: Power Query / Broker RTDMethod 3: MarketXLS Excel Add-In
Data latency15 to 20 min delayedDelayed (web) or real-time (funded broker RTD)15-min delayed (Standard); real-time streaming (Advanced & Business)
Auto-update / streamingManual Refresh All or background timerScheduled poll (min 1 min) or broker desktop app openOn-demand (=Last) + true streaming (=QM_Stream_Last)
Bid / Ask & extended hoursNot availableDepends on broker or paid API + codeBuilt-in (=QM_Stream_Bid, =QM_Stream_Ask, pre/post-market)
Excel 2016 / 2019 & MacMicrosoft 365 onlyPower Query (Excel 2016+); RTD is Windows desktop onlyWindows Excel 2016+/M365 + Mac/Web (mxls. prefix) + Google Sheets
Fundamentals & dividends~15 basic fields, no ex-dates/payoutsRequires parsing JSON / custom scripts1,000+ functions (P/E, Fwd P/E, margins, hf_* statements, dividends)
Options chains & GreeksNot supportedLimited broker chains or paid API + codeBuilt-in (=QM_GetOptionChain, =QM_GetOptionQuotesAndGreeks)
Best forSimple delayed personal watchlistsDevelopers or active broker-desktop usersActive investors, traders, equity analysts & RIAs
Excel Stock Tracking

Excel Stock Tracking

Method 1: Excel 365 Built-In Stocks Data Type & STOCKHISTORY

If you have Microsoft 365 and only need delayed snapshots or daily closing history for a small watchlist, Excel's native features work out of the box with no add-in.

Step-by-Step: Current Delayed Stock Prices (Stocks Data Type)

  1. Open a new workbook and type ticker symbols into column A (for example AAPL, MSFT, GOOGL).
  2. Highlight those cells, go to the Data tab, and click Stocks in the Data Types group. Excel converts each ticker into a linked data card with a building icon.
  3. Click the Insert Data grid icon next to the cell (or type dot-notation formulas) to pull attributes:
    • =A2.Price — delayed last price
    • =A2.[Previous Close] — prior session close
    • =A2.Change and =A2.[Change (%)] — intraday change
    • =A2.[P/E] and =A2.[Market cap] — basic valuation fields
  4. Click Data > Refresh All whenever you want updated quotes.

Step-by-Step: Historical Closing Prices (STOCKHISTORY)

For past daily, weekly, or monthly closes in Excel 365, use =STOCKHISTORY():

=STOCKHISTORY("AAPL", "2026-01-01", "2026-06-30", 0, 1, 0, 1)

0 selects daily intervals, the first 1 displays headers, and 0, 1 returns Date and Close columns (you can also request Open, High, Low, and Volume).

Limitations of Built-In Excel Stock Data

  • Delayed only: Quotes lag 15 to 20+ minutes and do not stream tick-by-tick.
  • Microsoft 365 required: Neither the Stocks data type nor STOCKHISTORY exists in perpetual Excel 2016 or Excel 2019.
  • No bid/ask, extended hours, dividends calendar, or options: Zero support for option chains, Greeks, ex-dividend dates, payout ratios, or technical indicators like RSI and moving averages.
  • Ticker resolution errors: Excel occasionally maps ambiguous tickers to the wrong exchange or returns #FIELD! / #BUSY! on large lists.

When you need data in Excel 2016/2019 or want a live broker feed without a third-party market-data subscription, you can pull external feeds into Excel two ways.

If you hold a funded brokerage account with Thinkorswim or Interactive Brokers, Excel's =RTD() function streams real-time quotes while the broker's desktop platform stays open on Windows:

=RTD("tos.rtd",,"AAPL","LAST")

The trade-offs are operational: you need a funded account, the broker desktop app must remain open, brokers cap concurrent RTD streams, RTD does not work on Excel for Mac or Excel for the web, and workbooks break when shared with colleagues who do not run the same broker software. See our MarketXLS vs. Thinkorswim streaming comparison for details.

Power Query Web Imports (Data > Get Data > From Web)

To import stock tables from financial websites (such as Yahoo Finance) or JSON APIs (such as Alpha Vantage):

  1. Open the Data tab, click Get Data > From Other Sources > From Web.
  2. Paste the webpage or API endpoint URL and authenticate if an API key is required.
  3. Select the target table in the Navigator window and click Load.
  4. Right-click the query under Queries & Connections > Properties to enable scheduled background refresh (minimum 1 minute).

Limitations: Power Query cannot stream tick-by-tick, web scrapers break whenever a finance site changes its HTML layout or blocks automated requests (HTTP 401/429), and each endpoint requires ongoing maintenance.

Method 3: Live Streaming Stock Prices in Excel With MarketXLS

MarketXLS installs directly into Excel and adds 1,000+ financial functions that work like native worksheet formulas—no VBA macros, no API keys, and no fragile web queries.

MarketXLS Stock Landing Page

MarketXLS Stock Landing Page

1. Install and Choose Your Platform

  • Windows Desktop Excel (Excel 2016, 2019, 2021, Microsoft 365): Install the MarketXLS desktop add-in, activate your license key in the MarketXLS ribbon tab, and type standard formulas (=Last("AAPL"), =QM_Stream_Last("AAPL")).
  • Mac & Excel for the Web: Install the MarketXLS Microsoft 365 add-in from Microsoft AppSource, sign in with your MarketXLS account under MarketXLS (Web), and prefix formulas with mxls. (for example =mxls.Last("MSFT")). See choose your version.
  • Coverage: US equities, ETFs, mutual funds, options, crypto, plus Canadian, UK, German, and Australian markets (ASX live data requires an additional Barchart subscription). For NSE/BSE/MCX tickers, see MarketXLS India.

2. Core Live & Streaming Quote Formulas

MarketXLS streaming functions use the QM_Stream_ prefix and update automatically while streaming is enabled (real-time on Advanced and Business plans; each unique symbol or option contract uses one live subscription):

Stock Streaming

Stock Streaming

Snapshot (=Last) vs. Streaming (=QM_Stream_Last): Which Should You Use?

Use snapshot functions for broad watchlists and streaming functions only for the positions you watch live. Streaming hundreds of unneeded tickers is the #1 cause of slow workbooks.

AspectSnapshot (=Last() / =QM_Last())Streaming (=QM_Stream_Last())
Update triggerWhen Excel recalculates or you click RefreshAutomatic while streaming is enabled
Live symbol quotaUses 0 live streaming slots1 live subscription per unique symbol
CPU loadLowHigher as active symbol count grows
Plan availabilityAll plans (Standard is 15-min delayed)Real-time on Advanced and Business
Best forScreening, valuation, client compliance snapshotsIntraday watchlists, active trading, options desks

The MarketXLS ribbon includes a Streaming toggle—uncheck it to freeze all streaming cells at their current values before exporting a report or archiving a point-in-time snapshot.

How to Track Multiple Stocks, Refresh Automatically & Set Price Alerts

Tracking Multiple Tickers & Sector ETFs

List your tickers in column A (A2:A50)—or create a named range like Ticker (=Last(Ticker))—and copy formulas across every row. You can monitor sector rotation the exact same way using sector ETFs (XLF, XLK, XLV, XLE, XLI) alongside =DividendYield(A2) and =RSI(A2), or live relative strength ratios like =QM_Stream_Last("XLK") / QM_Stream_Last("SPY").

Automatic Price Refresh

  • Built-in Excel Stocks / Power Query: Go to Data > Queries & Connections > Properties and check Refresh every X minutes (requires an active internet connection; prices remain delayed).
  • MarketXLS Streaming: QM_Stream_* cells push updates continuously while streaming is active—no timer or manual F9 needed. For large snapshot sheets set to Manual calculation (Formulas > Calculation Options > Manual), press Ctrl + Alt + F9 to refresh on demand.

Live Stock Price Alerts in Excel

  1. Put your live price in B2 (for example =QM_Stream_Last(A2)) and your target alert price in C2.
  2. Add an alert flag in D2: =IF(B2>=C2, "TARGET HIT", "Watching").
  3. Select B2:D50, open Home > Conditional Formatting > New Rule, and highlight rows where =$D2="TARGET HIT" in green or red so breakouts flash immediately during market hours.

How to Get Live Stock Prices in Excel 2016 and Excel 2019

Microsoft's Stocks data type and STOCKHISTORY function require an active Microsoft 365 subscription and are absent from perpetual Excel 2016 and Excel 2019 licenses. On Excel 2016 or 2019 (Windows):

  1. MarketXLS Windows desktop add-in: Installs directly into Excel 2016, 2019, 2021, and Microsoft 365—giving you =Last("AAPL"), =QM_Stream_Last("AAPL"), =QM_GetHistory("AAPL"), and =Close_Historical("AAPL", DATE(2025,1,2)) without upgrading Office.
  2. Power Query (Data > Get Data > From Web): Included in Excel 2016/2019 for scheduled web-table pulls, though without live streaming.

Complete Live Stock Data Workflow & Formula Reference

Once your live price column is working, pairing quotes with fundamentals, historical returns, and risk analytics turns a basic ticker list into a full equity research workbook. Every formula below is verified against the current MarketXLS function library:

FormulaReturns
=QM_Last("AAPL") / =Last("AAPL")On-demand last traded price
=QM_Stream_Last("AAPL")Continuously streaming real-time price (Advanced / Business)
=PreviousClose("AAPL")Prior trading session close
=MarketCapitalization("AAPL")Market capitalization in USD (divide by 1e9 for $B)
=Sector("AAPL")GICS sector classification
=PERatio("AAPL") / =forwardPE("AAPL")Trailing 12-month P/E and forward consensus P/E
=Revenue("AAPL") / =hf_revenue("AAPL", 2025, 4)Annual revenue and specific fiscal-quarter revenue
=DividendYield("AAPL") / =DividendPerShare("AAPL")TTM dividend yield (decimal) and annual dividend per share
=DividendFrequency("AAPL")Dividend payment cadence
=SalesOneYearGrowth("AAPL")1-year revenue growth (decimal)
=OperatingMargin("AAPL") / =ReturnOnEquity("AAPL")Operating margin and ROE (decimal)
=Beta("AAPL")Beta versus the market
=SimpleMovingAverage("AAPL","50") / "200"50-day and 200-day simple moving averages
=RSI("AAPL")14-day Relative Strength Index
=FiftyTwoWeekHigh("AAPL")52-week high price
=QM_GetHistory("AAPL")Historical OHLCV series (Mac/Web: =GetHistory("AAPL","2025-01-01","2025-12-31","daily"))
=Close_Historical("AAPL", DATE(2025,1,2))Single historical closing price on a specific date
=StockReturnOneYear("AAPL")1-year split- and dividend-adjusted total return (decimal)
=StockVolatilityOneYear("AAPL")1-year annualized volatility (decimal)
=StockReturnCorelationLastOneYear("AAPL","XOM")1-year return correlation between two stocks

Formatting note: DividendYield, SalesOneYearGrowth, OperatingMargin, ReturnOnEquity, StockReturnOneYear, and StockVolatilityOneYear return decimals (e.g., 0.32 = 32%). Format those cells as Percentage (%) in Excel rather than multiplying by 100 so downstream formulas stay exact.

Example: Composite 0–100 Stock Score on Top of Live Quotes

Because MarketXLS returns standard Excel values, you can layer custom scoring rules directly on top of your live data columns (for example Valuation + Growth + Quality + Momentum, each capped at 25 points):

=ROUND(
  IF(F13<=0,0,MAX(0,MIN(25,(40-F13)/40*25)))   'Valuation: lower forward P/E scores higher
  + MAX(0,MIN(25,H13*125))                     'Growth: 1Y revenue growth
  + MAX(0,MIN(25,(J13+I13)*45))                'Quality: ROE + operating margin
  + IF(C13>=L13,25,IF(C13>=L13*0.97,12,0))     'Momentum: live price vs 50-day SMA
,0)

Download the 6-Sheet Live Stock Data Workflow Workbook

Skip starting from a blank sheet. The workbook separates raw MarketXLS pulls from analysis across 6 tabs (How To Use, Main Dashboard, Scenario Analysis, Historical & Risk, Portfolio Allocation, and Correlation Matrix):

  • — pre-filled with static illustrative data so you can inspect every tab and formula without an add-in.
  • — wired with live MarketXLS formulas that refresh on your own ticker list (requires an active MarketXLS subscription).

You can also browse 100+ ready-made models in the MarketXLS templates library, including the Equity Research Dashboard Template and Portfolio Manager. For AI-assisted screening before you move results into Excel, MarketXLS also connects directly to Claude and ChatGPT via Market Data MCP.

Best Practices & Troubleshooting Common Issues

Architecture Rules for Fast, Auditable Workbooks

  • Separate a raw Data tab from model tabs: Keep all =QM_Stream_Last() and =Last() calls on one protected sheet, and reference those cells from your portfolio, scenario, and reporting tabs.
  • Label mixed data cadences: A P/E built from a live price and quarterly EPS is a hybrid—add an "as of" header note and use snapshot =Last() formulas when archiving compliance records.
  • Use $A13 mixed references when copying formulas across columns so ticker arguments never drift onto the wrong row.

Troubleshooting Quick Reference

  • Streaming cells stopped updating: Confirm the Streaming checkbox is turned on in the MarketXLS ribbon, check that the market is open (streaming holds the last value after hours), and verify you have not exceeded your live symbol limit.
  • #VALUE! or #N/A errors: Check ticker spelling and exchange suffix (non-US stocks require exchange suffixes), or confirm your plan covers the feed (options chains are EOD on Standard, real-time on Advanced/Business).
  • Stale prices on a manual workbook: Press Ctrl + Alt + F9 to force full recalculation, or re-authenticate your data session in the MarketXLS ribbon if QM_ functions pause.
  • Slow large workbooks: Switch to Manual calculation mode, convert completed historical pulls to static values (Paste Special > Values), and keep streaming enabled only on your active watchlist.

MarketXLS Plans & Pricing for Live Stock Prices in Excel

US non-professional plans (prices include data and exchange fees; taxes may apply):

PlanBilled annuallyBilled quarterlyUS stocks & ETFsOptions
Standard$70/month ($850/year)$85/month ($255/quarter)15-minute delayedEnd-of-day
Advanced$125/month ($1,500/year)$150/month ($450/quarter)Real-time streamingReal-time streaming
Business$200/month ($2,400/year)$240/month ($720/quarter)Real-time streaming (+ forex & indices)Real-time streaming

Professional users have separate exchange entitlements and fees. See the MarketXLS pricing page for current details.

Frequently Asked Questions

What is the best formula to get live stock prices in Excel?

Excel has no built-in real-time streaming stock price function. In Microsoft 365, converting a ticker to the Stocks data type lets you write =A2.Price for a 15–20 minute delayed quote, and =STOCKHISTORY() returns past daily closes. With the MarketXLS add-in, =Last("AAPL") returns an on-demand quote and =QM_Stream_Last("AAPL") streams live real-time prices automatically (on Mac and Excel for the web, prefix with mxls., such as =mxls.Last("AAPL")).

How do you automatically update stock prices in Excel?

With Excel's native Stocks data type or Power Query, open Data > Queries & Connections > Properties and enable timed background refresh—though the underlying quotes remain delayed. For continuous, automatic tick updates during market hours without pressing Refresh or F9, use MarketXLS streaming formulas such as =QM_Stream_Last("AAPL") on the Advanced or Business plan.

Can I get live stock prices in Excel for free without an add-in?

Excel 365's built-in Stocks data type is free with Microsoft 365, but quotes are delayed 15 to 20 minutes and lack options, extended hours, and dividend schedules. The only way to get true real-time streaming prices for free is via a broker RTD link (=RTD()) connected to a funded desktop platform like Thinkorswim or Interactive Brokers on Windows. Standalone real-time add-ins require a subscription because exchanges charge licensing fees for real-time feeds.

What is the difference between =Last() and =QM_Stream_Last() in MarketXLS?

=Last("AAPL") (and =QM_Last("AAPL")) is an on-demand snapshot function that fetches the latest price when Excel recalculates (15-minute delayed on Standard; real-time on Advanced and Business). =QM_Stream_Last("AAPL") maintains an active streaming subscription on the Advanced and Business plans and updates the cell continuously while streaming is enabled.

Does live stock data work in Excel 2016, Excel 2019, and Excel on Mac?

Yes. On Windows, the MarketXLS desktop add-in works in Excel 2016, Excel 2019, Excel 2021, and Microsoft 365. On Mac and Excel for the web, install the MarketXLS Microsoft 365 add-in from Microsoft AppSource and use the mxls. prefix (for example =mxls.Last("MSFT")). See the formulas directory for platform coverage.

Is historical stock data in MarketXLS adjusted for splits and dividends?

Yes. Return functions such as =StockReturnOneYear("AAPL") default to split- and dividend-adjusted total return so stock splits do not distort your performance calculations, and raw price-only closes are also available when needed.

Why does a MarketXLS percentage function return a decimal like 0.02?

Functions like =DividendYield(), =OperatingMargin(), and =ReturnOnEquity() return raw decimals (0.02 = 2%). Apply Excel's Percentage number format (%) rather than multiplying by 100 so downstream formulas stay accurate.

Can I share a live MarketXLS workbook with someone who does not have the add-in?

Yes—before emailing a read-only copy to a colleague or client without MarketXLS, copy your live data tab and use Paste Special > Values (or export to PDF) so formulas do not display errors on their machine. For shared live-refreshing workbooks, each user needs the add-in.

How do real-time stock prices in Excel with MarketXLS compare to a Bloomberg Terminal?

A Bloomberg Terminal is an institutional workstation priced per seat per year. MarketXLS is an Excel add-in: real-time streaming US stock and options quotes, 1,000+ fundamental and technical formulas, and historical data start at $1,500/year on the Advanced plan (billed annually, non-professional)—giving investors, traders, and advisors live spreadsheet models without a terminal seat.

Summary

  • For a free delayed watchlist (Microsoft 365 only): Convert tickers with Data > Stocks (=A2.Price) and pull past closes with =STOCKHISTORY().
  • For free Windows streaming via a funded broker: Connect Thinkorswim or Interactive Brokers with =RTD() while the broker desktop app stays open.
  • For reliable live quotes, streaming prices, fundamentals, and options in any Excel version: Use MarketXLS (=Last("AAPL") on demand, =QM_Stream_Last("AAPL") for real-time streaming on Advanced and Business).

Working in Google Sheets instead of Excel? Follow our step-by-step guide on how to get live stock prices in Google Sheets. Looking for full options chains or historical backtests? Continue with option chains in Excel, historical stock prices in Excel, or our Excel stock tracker template.

View Plans and Pricing → | Browse All 1,000+ Functions → | Book a Demo →

About the authors
Ankur

About Ankur

CEO & Founder, MarketXLS

Ankur is the CEO and founder of MarketXLS. He works with Anagh and Robin on the MarketXLS blog, creating articles together about market data and spreadsheet workflows.

Written collaboratively by Ankur, Anagh and Robin.

Important Disclaimer

The information provided in this article is for educational and informational purposes only and should not be construed as investment advice, a recommendation, or an offer to buy or sell any securities. MarketXLS is a financial data platform and is not a registered investment advisor, broker-dealer, or financial planner. Always conduct your own research and consult with a qualified financial professional before making any investment decisions. Past performance is not indicative of future results. Trading and investing involve substantial risk of loss.

Explore MarketXLS in Excel
Download a free sample workbook (.xlsx). MarketXLS is a paid subscription.

See MarketXLS in action

Bring this workflow into Excel.

Book a demo with our team to see how MarketXLS supports your market research.

Ankur
AnkurFounder & CEO, MarketXLS