This can be done with theSTOCKHISTORY function.

The STOCKHISTORY function retrieves historical stock price information based on a given symbol and date range.

However, this formula is a bit fragile.

Apple’s close price on December 27, 2022

The result is the latest available close price in the current month.

The final 1 is a property setting that tells STOCKHISTORY to return the close price only.

See thetable herefor more information about properties available to the STOCKHISTORY function.

Apple’s close price on December 27, 2022

See below for a workaround.

LOOKUP always operates in approximate match mode, assuming data is sorted.

This is an example of theBigNumconcept.

Apple’s close price on December 27, 2022

First, the LET function stores results from STOCKHISTORY in a variable calledresults.

This row contains two values: the date and the close price on that date.

The primary purpose of STOCKHISTORY is to get the history of a financial instrument over time.

Apple’s close price on December 27, 2022

The TODAY function takes no arguments.

you might format the value returned by TODAY with a datenumber format.

LOOKUP’s default behavior makes it useful for solving certain problems in Excel.

Apple’s close price on December 27, 2022

you might use INDEX to retrieve individual values, or entire rows and columns.

The MATCH function is often used together with INDEX to provide row and column numbers….

Excel formula: Get stock price on specific date

Excel formula: Get stock price last n days

Excel formula: Get stock price last n months

Excel formula: Get current stock price

Excel STOCKHISTORY function

Excel TODAY function

Excel LOOKUP function

Excel INDEX function