STOCKHISTORY Function in Excel: Historical Share Prices

⏱ 1 min readUpdated 28 September 2026

LookupLevel: IntermediateAvailable in: Excel 365 / 2021+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

STOCKHISTORY fetches daily, weekly or monthly prices for a stock or currency pair into a spill range.

Syntax

=STOCKHISTORY(stock, start_date, [end_date], [interval], [headers], [properties…])
Argument What it means
stock Ticker such as “XNSE:INFY” or a Stocks data type.

Examples

Example 1

=STOCKHISTORY("XNSE:TCS", TODAY()-30, TODAY())

Last month of TCS closing prices.

WEBSERVICE

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong