How to use the Stocks data type in Excel
In Excel for Microsoft 365 (verified 2026-10-24), type company or ticker symbols in a column, select the cells, then Data > Stocks to convert them to the Stocks linked data type. Use the Insert Data icon for fields like Price or Change, reference fields in formulas (for example =A2.Price), and refresh with Data > Refresh All or right-click → Data Type → Refresh. For history, try STOCKHISTORY on eligible subscriptions.
Stocks/geography data types need a Microsoft account / Microsoft 365 entitlement and a supported language. Values are market data snapshots — not investment advice; delays and coverage vary.
Applies to Excel for Microsoft 365 and Excel for the web with linked data types enabled. Some regional builds or workbooks without an internet connection cannot convert Stocks.
Convert tickers and pull stock fields
Enter symbols and convert
- Type tickers or company names in a column (one per cell).
- Select the range → Data > Stocks.
- If Excel asks, pick the correct matching entity from the data selector.
Add fields and formulas
- With a Stocks cell selected, click the Insert Data icon to add Price, Change, Exchange, etc.
- Or write formulas such as
=A2.Priceand fill down. - Format numbers/currencies as you prefer.
Refresh or pull history
- Data > Refresh All (or right-click → Data Type → Refresh) before decisions.
- For historical series on eligible plans, use STOCKHISTORY with ticker and dates.
- Do not treat delayed quotes as real-time trading signals.
Our take: one clean ticker column, formulas beside it
Keep A=ticker Stocks type, B:F=fields — easier to Refresh All than hunting nested cards.
If it fails
- Stocks button greyed out: no entitlement/internet, unsupported language, or Excel for the web limits — sign in to Microsoft 365.
- Wrong company matched: reopen the data selector and pick the right exchange listing.
- #FIELD! errors: field name typo or cell not converted to Stocks.
- STOCKHISTORY unavailable: plan/region does not include it — use a data provider export instead.
Frequently asked questions
What is the Excel Stocks data type?
A linked data type that turns tickers/company names into rich stock entities you can pull fields from.
How do I convert cells to Stocks?
Select the cells > Data > Stocks, then confirm matches.
How do I refresh prices?
Data > Refresh All, or right-click a Stocks cell → Data Type → Refresh.
What is STOCKHISTORY?
A Microsoft 365 function that returns historical price data for a symbol over a date range (availability varies).
Is this real-time market data?
Coverage and delays vary — always check the data card and your compliance needs; not investment advice.