How to Get Live Stock Prices in Google Sheets: 3 Methods Compared

In this article

There are three ways to get live stock prices in Google Sheets: (1) use the built-in =GOOGLEFINANCE("AAPL","price") function for free, roughly 15 to 20 minute delayed quotes; (2) write a custom Google Apps Script or IMPORTXML connection to a third-party market data API; or (3) install a dedicated market data spreadsheet add-in such as MarketXLS, which delivers licensed real-time quotes, bid/ask spreads, dividends, fundamentals, technical indicators, and option chains directly in Google Sheets (=Last("AAPL"), =QM_Last("AAPL")) and true tick-by-tick streaming in Excel desktop (=QM_Stream_Last("AAPL")).

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.

Explore more videos
MarketXLS add-on inside Google Sheets, with a sidebar of market-data functions beside stock, options and fundamentals examples
The MarketXLS add-on inside Google Sheets. View on Google Workspace Marketplace

For casual watchlists, GOOGLEFINANCE is enough. For active portfolios, client reporting, options, or intraday monitoring, spreadsheet add-ins are the most reliable method, and MarketXLS is the strongest overall add-in because one subscription covers Google Sheets, Windows Excel desktop (with real-time streaming), and Excel on Mac/web with 1,000+ financial functions backed by QuoteMedia exchange feeds.

Quick Comparison: 3 Ways to Get Live Stock Prices in Google Sheets

Before choosing a setup, compare the three methods side by side across data freshness, reliability, coverage, and setup effort:

CriteriaMethod 1: =GOOGLEFINANCE()Method 2: Custom API + Apps ScriptMethod 3: Spreadsheet Add-In (MarketXLS)
Data latency~15 to 20 min delayed (US equities)Depends on paid API tier15-min delayed on Standard; real-time on Advanced & Business
True tick-by-tick streamingNo (Google schedule refresh)No (quota-limited polling)On-demand in Google Sheets; live streaming in Excel desktop (=QM_Stream_Last)
Bid / Ask (Level 1)Not availableDepends on APIYes (=Bid(), =Ask(), =QM_Stream_Bid(), =QM_Stream_Ask())
Dividend yield & ex-datesNot availableRequires separate endpointYes (=DividendYield(), =Ex_DividendDate(), =PayoutRatio())
Financial statements & technicals~18 basic attributes onlyMust build & parse JSON yourself1,000+ functions (hf_* statements, RSI, SMA, MACD, Beta)
Options chains & GreeksNot availableExpensive API add-ons + codeYes (=QM_GetOptionChain(), =QM_GetOptionQuotesAndGreeks())
Reliability & maintenanceFrequent #N/A errors under loadScripts break on schema/rate limitsLicensed QuoteMedia feed, zero code maintenance
Setup difficultyEasy (built in)Hard (JavaScript, keys, quotas)Easy (install add-on/add-in, type formula)
Best forSmall personal watchlists, studentsDevelopers building custom pipelinesActive investors, options traders, RIAs, wealth managers, analysts

Method 1: Built-In =GOOGLEFINANCE() Function (Free, Delayed)

The fastest built-in way to pull a stock quote into Google Sheets is the native GOOGLEFINANCE formula. It requires no installation, no API key, and no account authentication.

Copy-Paste GOOGLEFINANCE Formulas

Type any of these formulas into a blank cell (or replace "AAPL" with a cell reference such as A2):

=GOOGLEFINANCE("AAPL", "price")      // Delayed last traded price
=GOOGLEFINANCE("AAPL", "priceopen")  // Opening price
=GOOGLEFINANCE("AAPL", "high")       // Session high
=GOOGLEFINANCE("AAPL", "low")        // Session low
=GOOGLEFINANCE("AAPL", "volume")     // Trading volume
=GOOGLEFINANCE("AAPL", "marketcap")  // Market capitalization
=GOOGLEFINANCE("AAPL", "pe")         // Trailing P/E ratio
=GOOGLEFINANCE("AAPL", "eps")        // Trailing EPS
=GOOGLEFINANCE("AAPL", "high52")     // 52-week high
=GOOGLEFINANCE("AAPL", "low52")      // 52-week low
=GOOGLEFINANCE("AAPL", "beta")       // Beta

For daily historical closing prices, pass start and end dates:

=GOOGLEFINANCE("AAPL", "close", DATE(2025,1,1), DATE(2025,12,31), "DAILY")

How "Live" Is GOOGLEFINANCE? (And Where It Breaks Down)

In practice, "live" means two things: un-delayed market prices and cells that refresh automatically. GOOGLEFINANCE falls short on both:

  1. 15 to 20 minute delay: Google documents that equity prices can lag up to 20 minutes during market hours, with no setting to turn on real-time feeds.
  2. Schedule-bound refresh, never streaming: Google Sheets recalculates GOOGLEFINANCE on its own background cadence when the sheet is open. Even wrapping it with NOW() triggers only re-queries the same delayed feed.
  3. Intermittent #N/A outages: Large watchlists (50 to 200+ tickers) routinely hit #N/A or blank cells during peak market hours, breaking every downstream portfolio total and percentage formula.
  4. Hard attribute ceiling (~18 fields): GOOGLEFINANCE does not return dividend yield, ex-dividend dates, bid/ask quotes, full financial statements, technical indicators (RSI, moving averages), or option chains and Greeks.
  5. Uneven international coverage and no audit trail: Outside major US equities and ETFs, coverage drops quickly, and there is no licensed data source documentation for client or compliance review.

Verdict on Method 1: Great for a 5 to 15 ticker personal watchlist or classroom spreadsheet. Inadequate for real-time monitoring, income/dividend tracking, options, or professional client work.


Method 2: Custom Market Data APIs + Google Apps Script or IMPORTXML

When users hit the limits of GOOGLEFINANCE, the second approach is connecting Google Sheets to an external market data API (such as Alpha Vantage, Finnhub, Polygon, or Twelve Data) via Google Apps Script (UrlFetchApp), or scraping financial web pages with IMPORTXML / IMPORTHTML.

How It Works

  1. Sign up for a third-party market data API and generate an API key.
  2. Open Extensions > Apps Script in Google Sheets and write a custom JavaScript function that fetches JSON from the endpoint, parses the price field, and returns it to the cell:
function GET_LIVE_PRICE(ticker) {
  var apiKey = "YOUR_API_KEY";
  var url = "https://api.example-marketdata.com/v1/quote?symbol=" + ticker + "&apikey=" + apiKey;
  var response = UrlFetchApp.fetch(url);
  var json = JSON.parse(response.getContentText());
  return json.price;
}
  1. Call =GET_LIVE_PRICE("AAPL") in your worksheet, or configure a time-driven Apps Script trigger to overwrite cells on a schedule.

Why Custom APIs and Web Scrapers Break in Practice

  • Google Apps Script quotas: Google caps custom function execution time (30 seconds per call), daily UrlFetchApp calls, and concurrent executions. A 100-ticker sheet quickly triggers Exception: Service invoked too many times.
  • API rate limits and hidden costs: Free API tiers typically allow only 5 requests per minute or 25 to 500 calls per day, and real-time US equity or options endpoints still require paid commercial API plans.
  • Fragile web scraping: IMPORTXML and IMPORTHTML against finance websites break without warning whenever the site updates its HTML or adds bot protection, and automated scraping frequently violates publisher terms of service.
  • No true cell streaming: Even with a paid API and a 1-minute Apps Script trigger, cells update in batch intervals rather than streaming tick by tick.
  • Ongoing developer maintenance: You own error handling, caching, split/dividend adjustments, and script debugging whenever an API changes.

Verdict on Method 2: Useful for software engineers building a narrow custom prototype. Too fragile and time-consuming for investors, traders, and financial advisors who want formulas that simply work.


Method 3: Market Data Spreadsheet Add-Ins (Google Sheets & Excel Add-Ins, Led by MarketXLS)

The third and most effective method is installing a dedicated spreadsheet market data add-in. Instead of scraping pages or maintaining JavaScript wrappers, an add-in connects your spreadsheet directly to licensed exchange feeds and exposes ready-made financial formulas inside regular cells.

Because Google Sheets runs in a browser with cloud recalculation limits, the strongest modern setup uses an add-in ecosystem that works natively in Google Sheets for collaborative dashboards and in Microsoft Excel when you need heavy multi-hundred-ticker models or true tick-by-tick streaming.

MarketXLS is the dominant add-in built for this exact workflow:

  • In Google Sheets: Install the MarketXLS Google Sheets add-on from the Google Workspace Marketplace and pull live quotes, bid/ask, dividends, fundamentals, technical indicators, and option chains with one-line formulas such as =Last("AAPL"), =QM_Last("AAPL"), and =DividendYield("AAPL").
  • In Microsoft Excel: Use the exact same subscription with the MarketXLS Excel add-in (Windows desktop add-in, plus the Microsoft 365 add-in for Mac and Excel for the web using the mxls. prefix) to unlock real-time tick-by-tick streaming (=QM_Stream_Last("AAPL"), =QM_Stream_Bid("AAPL"), =QM_Stream_Ask("AAPL")) and institutional-grade portfolio, screening, and options analytics.

Why Spreadsheet Add-Ins Are the Best Way to Get Live Stock Prices

Across Google Sheets and Excel, dedicated spreadsheet add-ins outperform both built-in free functions and DIY API scripts on five decisive criteria:

  1. Licensed, low-latency market data without #N/A chaos: Professional add-ins license feeds from institutional vendors (such as QuoteMedia) instead of relying on unsupported free endpoints or brittle HTML scraping.
  2. Zero code and zero maintenance: Formulas work like native spreadsheet functions. You never debug JSON parsers, rotate API keys in Apps Script, or rebuild broken IMPORTXML XPaths.
  3. One formula replaces dozens of manual helper columns: Instead of downloading 200 days of daily closes to calculate a 200-day moving average or 14-day RSI by hand, an add-in returns the exact metric in a single cell.
  4. Complete cross-asset coverage in one workbook: Built-in functions stop at basic equity prices. Add-ins bring stocks, ETFs, mutual funds, options chains, Greeks, historical fundamentals, dividends, FX, and crypto into the same sheet.
  5. True streaming where it matters (Excel add-ins): Google Sheets' browser architecture does not support persistent WebSocket streaming into cells at scale. Pairing Google Sheets with an Excel add-in gives you real-time tick-by-tick streaming (QM_Stream_*) for active trading and live portfolio risk monitoring without leaving your spreadsheet.

Why MarketXLS Is the Best Add-In for Live Stock Prices (Google Sheets & Excel)

When comparing market data add-ins (see our full Best Excel Add-Ins for Stock Data comparison), MarketXLS stands out as the most complete solution for investors, traders, and wealth advisors for six verifiable reasons:

1. One Subscription Works Across Google Sheets, Windows Excel, Mac, and Web

Most competitors lock you into either Google Sheets or Excel. MarketXLS gives you the Google Sheets add-on, the Windows Excel desktop add-in, and the Microsoft 365 add-in for Mac and Excel for the web (mxls. prefix) under the same plan. You can collaborate with clients in Google Sheets and run heavy real-time models in Excel without paying twice or relearning formula syntax.

2. Two Refresh Models: On-Demand Snapshots + True Real-Time Streaming

MarketXLS lets you match the refresh model to each zone of your workbook:

  • On-demand snapshots (=Last("AAPL"), =QM_Last("AAPL")) in Google Sheets and Excel keep 100 to 500+ ticker watchlists and screens fast and responsive.
  • Real-time streaming (=QM_Stream_Last("AAPL"), =QM_Stream_Bid("AAPL"), =QM_Stream_Ask("AAPL")) in Excel desktop (Advanced and Business plans) updates cells automatically every tick while streaming is enabled, with no F9 or manual refresh.

3. Over 1,000 Financial Formulas Beyond Stock Prices

While GOOGLEFINANCE stops at ~18 attributes, MarketXLS exposes 1,000+ documented functions (browse the full formulas library) covering:

4. Licensed QuoteMedia Feed With Transparent Non-Professional Pricing

MarketXLS quotes are sourced from QuoteMedia with non-professional data and exchange fees bundled directly into the plan:

  • Standard: $70/month billed annually ($85/month quarterly) with 15-minute delayed US stock quotes and end-of-day options.
  • Advanced: $125/month billed annually ($150/month quarterly) with real-time US stock quotes and real-time options streaming.
  • Business: $200/month billed annually ($240/month quarterly) with real-time streaming and expanded professional capacity.

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

5. Built for Both Google Sheets Collaboration and Excel Heavy Lifting

Many investors start in Google Sheets for sharing and cloud access, then outgrow Sheets' row/recalculation ceilings once they add option chains, multi-year fundamentals, or portfolio optimization. Because MarketXLS uses consistent function names across both platforms, your formulas and templates scale smoothly into stock quotes in Excel without starting over.

6. Audit-Ready Transparency for Advisors and Analysts

Every value in MarketXLS traces directly to a documented spreadsheet formula and a licensed data vendor, making it practical for RIAs, family offices, and equity analysts who need verifiable numbers in client workbooks.


Side-by-Side Mapping: GOOGLEFINANCE to MarketXLS Formulas

Use this quick reference to upgrade existing GOOGLEFINANCE cells to MarketXLS formulas (check the formulas directory for platform-specific function availability between Google Sheets, Windows Excel, and Mac/Web mxls.):

MetricGoogle Sheets (GOOGLEFINANCE)MarketXLS FormulaAvailability
Last traded price=GOOGLEFINANCE("AAPL","price")=Last("AAPL") or =QM_Last("AAPL")Both (MarketXLS real-time on Advanced/Business)
Streaming live priceNot supported=QM_Stream_Last("AAPL")MarketXLS Excel desktop (Advanced/Business)
Live Bid / AskNot available=Bid("AAPL") / =Ask("AAPL") (or =QM_Stream_Bid)MarketXLS only
Today's open / high / low=GOOGLEFINANCE("AAPL","priceopen")=DayOpen("AAPL"), =DayHigh("AAPL"), =DayLow("AAPL")Both
Trading volume=GOOGLEFINANCE("AAPL","volume")=Volume("AAPL")Both
Market cap=GOOGLEFINANCE("AAPL","marketcap")=MarketCapitalization("AAPL")Both
Trailing P/E & EPS=GOOGLEFINANCE("AAPL","pe")=PERatio("AAPL"), =EarningsPerShare("AAPL")Both
52-week high / low=GOOGLEFINANCE("AAPL","high52")=FiftyTwo_WeekHigh("AAPL"), =FiftyTwo_WeekLow("AAPL")Both
Beta=GOOGLEFINANCE("AAPL","beta")=Beta("AAPL")Both
Dividend yield & ex-dateNot available=DividendYield("AAPL"), =Ex_DividendDate("AAPL")MarketXLS only
50 / 200-day SMABuild manually=SimpleMovingAverage("AAPL","50")MarketXLS only
RSI (14)Build manually=RelativeStrengthIndex("AAPL","14")MarketXLS only
Historical revenue / FCFNot available=hf_revenue("AAPL", 2024), =hf_free_cash_flow("AAPL", 2024)MarketXLS only
Option chain & GreeksNot available=QM_GetOptionChainActive("AAPL"), =QM_GetOptionQuotesAndGreeks("AAPL")MarketXLS only
Adjusted historical closeNot available=Adjusted_Close_Historical("AAPL", DATE(2024,1,2))MarketXLS only

Step-by-Step: Set Up Live Stock Prices in Google Sheets (and Upgrade to Excel Streaming)

Follow this five-step workflow to get live stock prices running in minutes:

Step 1: Install the MarketXLS Add-On in Google Sheets

Open Google Sheets, visit the MarketXLS Google Workspace Marketplace listing, click Install, and sign in with your MarketXLS license key in the sidebar.

Step 2: Build Your Live Watchlist Table

Put your ticker symbols in column A (AAPL, MSFT, NVDA, JPM, SPY) starting at row 2, then enter MarketXLS formulas across row 2 and drag down:

Column B (Live Price):      =Last(A2)
Column C (Bid / Ask):       =Bid(A2)  |  =Ask(A2)
Column D (Volume):          =Volume(A2)
Column E (P/E Ratio):       =PERatio(A2)
Column F (Dividend Yield):  =DividendYield(A2)
Column G (Ex-Date):         =Ex_DividendDate(A2)
Column H (50-Day SMA):      =SimpleMovingAverage(A2, "50")
Column I (RSI 14):          =RelativeStrengthIndex(A2, "14")

Formula documentation: Last, Bid, Ask, Volume, PERatio, DividendYield, Ex_DividendDate, SimpleMovingAverage, RelativeStrengthIndex

Step 3: Add a Two-Zone Streaming Watchlist in Excel Desktop (Optional for Active Traders)

If you want tick-by-tick intraday updates without recalculation lag, open the workbook in Windows Excel with the MarketXLS add-in installed:

Step 4: Layer in Fundamentals and Options (If Needed)

Drop =hf_revenue(A2, 2024) and =hf_free_cash_flow(A2, 2024) for fundamental screening, or put =QM_GetOptionChainActive("AAPL") on a separate tab to spill the active option chain with strikes, bid/ask, open interest, and implied volatility.

Step 5: Keep an Audit Tab

Add a short "How To Use" tab documenting your data source (QuoteMedia via MarketXLS), refresh mode (on-demand vs. streaming), and key formulas so clients, colleagues, or compliance reviewers can verify every cell.


Download Ready-Made Live Stock Price Templates

Start immediately with two companion workbooks built around the exact Google Sheets-to-MarketXLS mapping and two-zone live dashboard pattern covered above:

Both workbooks include a 10-ticker on-demand dashboard, a 4-ticker streaming block, a side-by-side GOOGLEFINANCE vs. MarketXLS attribute sheet, a live-price portfolio allocation tab, a reliability scenarios guide, and a migration checklist.


Frequently Asked Questions

How do I get live stock prices in Google Sheets?

There are three methods: (1) use =GOOGLEFINANCE("AAPL","price") for free quotes delayed up to 20 minutes; (2) write a Google Apps Script calling an external stock API (requires coding and hits rate limits); or (3) install a market data add-in such as MarketXLS from the Google Workspace Marketplace and type =Last("AAPL") or =QM_Last("AAPL") for licensed real-time quotes (Advanced and Business plans) or 15-minute delayed quotes (Standard plan).

Are GOOGLEFINANCE stock prices actually live or real-time?

No. GOOGLEFINANCE stock prices for US equities are typically delayed up to 15 to 20 minutes and refresh on Google's background schedule rather than streaming tick by tick. Google does not offer a setting to upgrade GOOGLEFINANCE to real-time data.

Why are spreadsheet add-ins better than GOOGLEFINANCE or Apps Script APIs?

Spreadsheet add-ins eliminate the 20-minute delay and #N/A reliability gaps of GOOGLEFINANCE while avoiding the JavaScript maintenance, API rate limits, and Apps Script execution quotas of custom scripts. You get licensed exchange feeds and 1,000+ ready-made financial formulas inside standard cells.

What is the best add-in for live stock prices in Google Sheets and Excel?

MarketXLS is the strongest all-around add-in for investors, traders, and financial advisors because one subscription works in Google Sheets, Windows Excel desktop, and Excel for Mac/web (mxls. prefix), pairs licensed QuoteMedia quotes with 1,000+ fundamental, dividend, technical, and options formulas, and supports true tick-by-tick streaming (=QM_Stream_Last()) in Excel desktop.

Can Google Sheets stream real-time tick-by-tick stock prices?

Google Sheets recalculates cloud formulas on intervals rather than maintaining persistent tick-by-tick WebSocket streams per cell. With MarketXLS, you can pull real-time on-demand quotes inside Google Sheets (=Last("AAPL") on Advanced or Business plans) and use the included MarketXLS Excel desktop add-in (=QM_Stream_Last("AAPL")) whenever you need continuous tick-by-tick streaming.

How do I get dividend yield, bid/ask, and option chains in Google Sheets?

GOOGLEFINANCE does not support dividend yield, ex-dividend dates, bid/ask prices, or option chains. With the MarketXLS Google Sheets add-on installed, use =DividendYield("AAPL"), =Ex_DividendDate("AAPL"), =Bid("AAPL"), =Ask("AAPL"), and =QM_GetOptionChain("AAPL").

How do I stop #N/A errors when pulling stock prices in Google Sheets?

With GOOGLEFINANCE, wrapping formulas in =IFERROR(GOOGLEFINANCE("AAPL","price"), "") hides error text during Google data hiccups but still leaves your portfolio blank or stale. Switching to a licensed market data add-in like MarketXLS removes dependence on Google's unsupported free endpoint.


The Bottom Line

To get stock prices in Google Sheets, start by matching the method to your workflow:

  • Use =GOOGLEFINANCE() if you only need a free, roughly 20-minute delayed price on a small watchlist.
  • Use Apps Script + an API only if you are a developer building a custom one-off integration and are comfortable managing quotas and maintenance.
  • Use a spreadsheet add-in like MarketXLS when accuracy, uptime, dividends, fundamentals, technical indicators, options data, or real-time quotes matter. One MarketXLS plan covers both Google Sheets and Excel, giving you no-code formulas in Google Sheets and true tick-by-tick streaming in Excel desktop.

Ready to upgrade your spreadsheet? Explore MarketXLS for Google Sheets, compare plans and pricing, or book a demo to see live formulas running against your watchlist.

Educational content only. Nothing in this post is investment advice. Tickers shown are illustrative.

About the authors
Anagh

About Anagh

CTO, MarketXLS

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

Written collaboratively by Anagh, Ankur 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 Google Sheets
Download a free sample workbook (.xlsx). MarketXLS is a paid subscription.

See MarketXLS in action

Bring this workflow into Google Sheets.

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

Ankur
AnkurFounder & CEO, MarketXLS