Black Friday sale on now: up to 44% off annual plans Shop the sale →
← All articles
Market DataInvesting & Analysis

How to Get Pre-Market and After-Hours Stock Prices in Google Sheets and Excel

Pull the latest pre-market and after-hours trade, the extended-hours bid and ask, and intraday bars from 4am to 8pm for any US stock or ETF into Google Sheets and Excel, then build a movers watchlist and chart a full extended-hours day.

You can pull pre-market and after-hours stock prices into Google Sheets or Microsoft Excel with one formula. =SF("AAPL","prePostMarketTrade") returns the price, size and time of the latest trade outside the regular session, and =SF("AAPL","prePostMarketQuote") returns the current extended-hours bid and ask. For the whole session rather than the last trade, SF_TIMESERIES() with the "extended" option returns intraday bars from the 4:00am pre-market open to the 8:00pm after-hours close. Google Sheets' GOOGLEFINANCE function has no pre-market or after-hours price, so this is the gap SheetsFinance fills.

This guide shows what each function returns, then builds a movers watchlist that compares every ticker's extended-hours price with its last close, ranks the biggest gain and drop, and charts the moves, and finally charts one stock's whole day from pre-market to after-hours. Use it before the opening bell to see what moved overnight, or after the close to follow earnings reactions.

The watchlist screenshots come from the free SF Pre-Market and After-Hours Movers template for Google Sheets or Excel, and every cell reference matches it. Copy the template to skip the setup, or build it yourself from the steps below.

Start a 15-day free trial of SheetsFinance Market Data (no payment details required) to reproduce every example in this guide. Pre- and post-market quotes and trades, and extended-hours intraday bars, are part of the Analyst plan. The trial includes Analyst-level feature access with a limit of 1,000 data calls per day.

What You Can Build

By the end of this guide you will be able to:

  • Get the latest pre-market or after-hours trade for any US stock or ETF
  • Get the extended-hours bid, ask and their sizes
  • Calculate each stock's move against its last regular-session close
  • Track up to 20 tickers with three formulas, and rank the biggest movers
  • Chart every ticker's extended-hours move
  • Pull 15-minute bars including pre-market and after-hours, and chart a full day from 4:00am to 8:00pm

Pre-Market and After-Hours Trading Explained

US stocks trade on exchanges from 9:30am to 4:00pm Eastern Time (ET). Trading also happens outside those hours, through electronic networks:

  • Pre-market runs from 4:00am to 9:30am ET.
  • After-hours runs from 4:00pm to 8:00pm ET.

Together they are called extended-hours trading. Prices move in these sessions when news lands outside the regular session, most often earnings reports, which many companies release after 4pm or before 9:30am. Fewer shares change hands than during the day, so a single trade can move the price more and the gap between the bid and the ask is usually wider.

SheetsFinance has two data types for extended hours:

Data type Metrics Use it to
prePostMarketTrade price, tradeSize, timestamp See the price of the latest trade outside regular hours and when it happened
prePostMarketQuote bidPrice, askPrice, bidSize, askSize, volume, timestamp See what buyers are bidding and sellers are asking right now, and how wide the spread is

Both cover US-listed stocks and ETFs only, and both return real-time data. For history, add "extended" to an intraday SF_TIMESERIES() formula (section 6). Formulas written with the earlier prePostMarket name still work and return the quote data.

The Syntax

Both data types use the SF() function:

Copy
=SF(symbol, "prePostMarketTrade", metrics, "", options)
  • symbol is a US ticker such as "AAPL", a cell holding one, or a range of cells for a batch (up to 5,000 symbols).
  • The second argument is "prePostMarketTrade" or "prePostMarketQuote".
  • metrics picks the columns, chained with &, such as "price&timestamp". Leave it blank or use "all" for every metric.
  • The fourth argument is not used; leave it as "".
  • options accepts "NH" to drop the header row.

The formulas are the same in Google Sheets and Excel.

1. Get the Latest Pre-Market or After-Hours Trade

Put this in A1:

Copy
=SF("AAPL","prePostMarketTrade")
Spreadsheet showing Apple's latest after-hours trade: a price of $359.25, a trade size of 1 share and a timestamp of 27 November 2026 at 4:59:59 PM

It returns a header row and one row of data: the trade price, the number of shares in that trade and its timestamp. Format the timestamp cell as a date and time (Format → Number → Date time in Google Sheets, or Format Cells → Custom in Excel) to see the time as well as the date.

Check the timestamp. The function always returns the most recent extended-hours trade. During the regular session, or at the weekend, that trade can be hours or days old. The screenshot was taken on a Sunday, so it shows the last trade of Friday's after-hours session. Friday 27 November 2026 was the day after Thanksgiving, when US markets closed early at 1:00pm ET, which is why the last after-hours trades came just before 5pm rather than 8pm.

The timestamp shows in your spreadsheet's time zone. In Google Sheets, set File → Settings → Time zone to (GMT-05:00) Eastern Time to read times in market time; Excel uses your computer's time zone.

2. Get the Pre-Market or After-Hours Bid and Ask

The last trade tells you where shares last changed hands. The quote tells you where you could buy or sell now:

Copy
=SF("AAPL","prePostMarketQuote","bidPrice&askPrice&bidSize&askSize&timestamp")
Spreadsheet showing Apple's extended-hours quote: a bid of $359.25, an ask of $359.30, a bid size of 118, an ask size of 2 and a timestamp of 27 November 2026 at 5:00:02 PM

The bid is the highest price a buyer is offering, and the ask is the lowest price a seller will accept. The sizes are the number of shares available at each price. Apple's spread here was 5 cents. On a less traded stock the after-hours spread can be many times wider than in the day, so check it before you place an order outside regular hours.

For a single number, ask for one metric: =SF("AAPL","prePostMarketQuote","bidPrice") returns just the bid.

3. Build a Pre-Market and After-Hours Movers Watchlist

The template's Movers sheet tracks up to 20 tickers. Tickers go in A24 to A43, and three batch formulas fill the table:

Cell Fills Formula
B24 Company and last close (B:C) =SF($A$24:$A$43,"quote","name&price","","NH")
D24 Extended-hours price and trade time (D:E) =SF($A$24:$A$43,"prePostMarketTrade","price&timestamp","","NH")
H24 Bid and ask (H:I) =SF($A$24:$A$43,"prePostMarketQuote","bidPrice&askPrice","","NH")

Each batch returns one row per ticker in the order you typed them, blank rows included, so the three blocks always line up. NH drops the header rows, because row 23 already holds the labels.

Then add the move and the spread in row 24 and fill them down to row 43:

  • F24, change in dollars: =IF(AND(ISNUMBER($C24),ISNUMBER($D24)),$D24-$C24,"")
  • G24, change in percent: =IF(AND(ISNUMBER($C24),ISNUMBER($D24)),IF($C24=0,"",$D24/$C24-1),"")
  • J24, spread as a share of the midpoint: =IF(AND(ISNUMBER($H24),ISNUMBER($I24)),IF($H24+$I24=0,"",($I24-$H24)/(($I24+$H24)/2)),"")

The ISNUMBER checks leave a row blank when it has no ticker, or when a ticker has no extended-hours data.

SF Pre-Market and After-Hours Movers watchlist for 12 tickers showing each one's last close, after-hours price, trade time, change in dollars and percent, bid, ask and spread, with Microsoft up 0.75% and NVIDIA down 0.46% after the 27 November 2026 close

Why the quote price works as the last close. SF(..., "quote", "price") returns the latest regular-session price. Before the market opens it is the previous day's close, and after 4pm it is that day's close, so outside regular hours price is exactly the close you want to compare against. During the session it is the live price, so the move column only means something before 9:30am or after 4pm ET.

To color the moves, select F24:G43, open Format → Conditional formatting in Google Sheets (Home → Conditional Formatting in Excel), and add two rules: greater than 0 in green and less than 0 in red.

4. Rank the Biggest Movers

The tiles above the table summarize the watchlist. Each one reads the percent change column, G24:G43:

Tile Formula
Biggest gain =MAX($G$24:$G$43)
Which ticker =INDEX($A$24:$A$43,MATCH(MAX($G$24:$G$43),$G$24:$G$43,0))
Biggest drop =MIN($G$24:$G$43)
Up / down =COUNTIF($G$24:$G$43,">0")&" / "&COUNTIF($G$24:$G$43,"<0")
Average move =AVERAGE($G$24:$G$43)
Latest trade =MAX($E$24:$E$43), formatted as a time

MAX, MIN and AVERAGE ignore the blank rows, so the tiles work with any number of tickers. The template wraps each one in IF(COUNT($G$24:$G$43)=0,"-",...) so an empty watchlist shows a dash instead of an error.

Movers tiles showing Microsoft as the biggest gain at +0.75%, NVIDIA as the biggest drop at -0.46%, 6 tickers up and 6 down, an average move of +0.06% and a latest trade at 4:59 PM on 27 November, above a column chart of each ticker's after-hours change against its last close

On 27 November 2026, a quiet half-day session, Microsoft gained 0.75% after the close and NVIDIA fell 0.46%, with six tickers up and six down.

5. Chart the Moves

The column chart plots G24:G43 against the tickers in A24:A43. To build it in Google Sheets:

  1. Select A23:A43, hold Ctrl (Cmd on a Mac) and select G23:G43.
  2. Open Insert → Chart and choose Column chart.
  3. Under Setup, tick Use row 23 as headers and Use column A as labels.
  4. Under Customize → Vertical axis, set the number format to a percentage.

In Excel, select the same two ranges, then Insert → Column Chart. Empty ticker rows show as gaps on the right. The template avoids that with a small Chart Data sheet whose labels are formulas returning "" for unused rows, which both Google Sheets and Excel leave out of the chart.

6. Chart a Full Day From Pre-Market to After-Hours

The two functions above give you the latest trade and quote. To see how a stock got there, pull intraday bars with SF_TIMESERIES() and add "extended" to its options. Without it, intraday bars cover only the regular session; with it, they start at 4:00am and run to 8:00pm.

Put this in A1:

Copy
=SF_TIMESERIES("AAPL","2026-11-27","2026-11-27","15min","date&close&volume","extended&-")
Spreadsheet listing Apple's 15-minute bars for 27 November 2026 starting at 4:00am pre-market, with the date and time, close and volume of each bar
  • "15min" is the bar size. "extended" works with every intraday period: "1min", "5min", "15min", "30min", "1hour" and "4hour". It has no effect on daily bars.
  • "-" lists the oldest bar first, which is the order you want for a chart.
  • Row 1 holds a title ("Intra-day Time-series for AAPL") and row 2 the headers, so the bars start in row 3. Add NH ("extended&-&NH") to drop both.
  • Bar times are New York times, whatever your spreadsheet's time zone. A bar with no trades is left out, so quiet pre-market periods can skip a bar.
  • Each period has a maximum date range: 3 calendar days at 1 minute, 10 at 5 minutes and about 45 at 15 minutes. See Intra-day time series for the full list.

On 27 November, a half day, Apple's bars run from 4:00am to the 4:45pm bar, 52 in all; a full day has 64. The last bar closed at $359.25, the same price as the latest after-hours trade in section 1.

With the bars in A3:C, the pre-market high is the largest close before 9:30am on that day:

Copy
=MAXIFS(B3:B200,A3:A200,"<"&(INT(A3)+TIME(9,30,0)))

Use MINIFS with the same arguments for the pre-market low. For Apple on 27 November they were $359.13 and $357.55.

The template's Day Chart sheet puts this together for any ticker. Type the ticker in B4. B5 holds =TODAY(), and the sheet shows the latest day with bars on or before that date, so it works before the open, during the day and at the weekend. Type a past date in B5 to see that day instead. The chart plots each bar's move since the first pre-market bar, which keeps the scale readable for a $60 stock and a $700 one alike.

SF Pre-Market and After-Hours Movers Day Chart sheet for Apple on 27 November 2026 showing a pre-market high of $359.13, a pre-market low of $357.55 and a last price of $359.25 at 4:45 PM, above a line chart of the move since the first pre-market bar from 4:00am to 4:45pm

Apple drifted about 0.4% lower before dawn, recovered towards the open, dropped close to 1% in the first minutes of regular trading, then spent the rest of the short session and the after-hours climbing back to where it started.

Refreshing Extended-Hours Data

Pre- and post-market data is real-time, but spreadsheet formulas don't recalculate on their own. Run Extensions → SheetsFinance → Refresh → Refresh Real-time in Google Sheets, or Refresh Real-time from the SheetsFinance Refresh menu in Excel, to pull the latest trades and quotes. It reloads only real-time formulas, which is quicker than Refresh All. A batch formula uses one daily call for every 10 tickers, so a full 20-ticker watchlist costs six calls per refresh: two for each of the three formulas. See Refresh for the details.

Common Mistakes

  • Reading an old trade as a live move. The trade function returns the latest extended-hours trade, however old. Check the trade time column before you act on a move, especially during regular hours and at weekends.
  • Comparing against the wrong close during the day. Between 9:30am and 4pm the quote price is live, so the change column shows the extended-hours price against the live price. Use the sheet outside regular hours.
  • Non-US tickers. Extended-hours data covers US markets only. On its own, a ticker such as BHP.AX returns a "No aftermarket trade data found" message; inside a batch it returns a blank row.
  • Times in the wrong zone. Timestamps follow the spreadsheet's time zone in Google Sheets and your computer's in Excel. Set the sheet to Eastern Time to compare with market hours.
  • Adding "extended" to daily bars. Pre- and post-market bars only exist for intraday periods. A daily SF_TIMESERIES() formula ignores the option.
  • Trusting a tiny trade. After hours, a trade can be a single share; Apple's latest trade above was one share. Look at the bid and ask, and at the quote's volume, before reading much into a price.

FAQ

Does GOOGLEFINANCE show after-hours prices?

No. GOOGLEFINANCE returns the regular-session price and has no attribute for pre-market or after-hours trades. Use =SF("AAPL","prePostMarketTrade","price") instead.

How do I get pre-market prices in Excel?

Install the SheetsFinance add-in for Excel and use =SF("AAPL","prePostMarketTrade","price"). The formulas in this guide work the same way in Excel and Google Sheets.

What is the difference between prePostMarketTrade and prePostMarketQuote?

prePostMarketTrade returns the last trade: what someone actually paid. prePostMarketQuote returns the current bid and ask: what you could buy or sell for now. Use the trade to measure the move and the quote to check the spread.

Can I get after-hours prices for many stocks at once?

Yes. Pass a range instead of one ticker, such as =SF(A2:A100,"prePostMarketTrade","price&timestamp","","NH"). A batch takes up to 5,000 symbols and returns one row per ticker in the same order.

Can I get historical pre-market prices?

Yes. =SF_TIMESERIES("AAPL","2026-11-27","2026-11-27","15min","all","extended&-") returns that day's 15-minute bars from 4:00am, open, high, low, close and volume. Intraday history is limited by bar size: about six weeks at 15 minutes and about 88 days at one hour.

Which plan do I need?

Pre- and post-market quotes and trades, and the "extended" option for intraday time series, are part of the Analyst plan for Market Data. Intraday bars for the regular session alone are part of the Investor plan. The 15-day free trial includes Analyst-level access with 1,000 data calls a day.

Start Your Pre-Market Watchlist

Copy the SF Pre-Market and After-Hours Movers template and replace the tickers with the stocks you own or watch, or build it yourself from the formulas above. Check it before the open to see what moved overnight, after the close on earnings days, and open the Day Chart sheet to see how a stock moved through the whole session.

Read the Pre/Post Market, Pre/Post Market Trades, Pre/Post Market Trades Batch and Intra-day time series references, or start a 15-day free trial to build it in Google Sheets or Excel. To see how much the options market expects a stock to move on its next report, continue with How to Find a Stock's Earnings Implied Move, and for a regular-session watchlist see Build a Real-time Global Stock Watchlist in Google Sheets.

David Marcuson
Founder