Historical Adjusted Close Price On A Date Formula in Excel

Get the exact adjusted closing price of a stock or other financial instrument for specific dates in Excel using the Historical Adjusted Close Price On A Date formula. This formula retrieves dividend-adjusted prices, ensuring you have the most accurate data for analysis. Perfect for backtesting strategies, evaluating stock performance, or any scenario requiring historical adjusted data.

Understanding Historical Adjusted Close Price On A Date

  • Purpose: The Historical Adjusted Close Price On A Date formula gives you the adjusted closing price of a given symbol on a specific date in Excel.
  • Key benefits:
    • Provides precise historical prices adjusted for corporate actions such as splits and dividends.
    • Helps in accurate backtesting and performance calculation.
    • Eliminates manual data lookup from external sources.
  • When to use: Use this formula whenever you need reliable adjusted closing prices for analysis, especially in long-term averaging, dividend reinvestment calculations, or comparing historical returns.

Syntax and Parameters

Use the formula as follows:

=Adjusted_Close_Historical(Symbol, OnDate, [IncludeHolidays])
Parameter Description Required Example
Symbol The stock, index, option, or crypto symbol for which you want the adjusted close price. Yes "MSFT", "^SPX", "@MSFT 110122C00020000", "BTCUSD:DEFAULT"
OnDate The date for which you want the adjusted close price. Can be a cell reference, a string in various date formats, or the result of another Excel date function. Yes A1, "2024-03-15", TEXT(A1,"yyyy-mm-dd")
IncludeHolidays An optional parameter indicating whether to include weekend or holiday adjustments. Enter "yes" to enable, or leave blank for default behavior. No "yes"

?? Note: If the symbol is invalid or the date is outside of valid trading days (and IncludeHolidays is not set to handle them), the function returns "NA".

Return Value:
The formula returns the adjusted closing price as a numeric value. If data is not available or an error occurs, it returns "NA".

Examples and Usage

Below are practical ways to use the formula in Excel:

  1. Basic retrieval by referencing cells:

    =Adjusted_Close_Historical(A2, B2)

    In this example, cell A2 contains the symbol (e.g., "MSFT") and cell B2 contains the date (e.g., "2024-03-15").

  2. Direct input of symbol and date:

    =Adjusted_Close_Historical("MSFT","2024-03-15")
  3. Using Excel functions for the date:

    =Adjusted_Close_Historical("MSFT", TEXT(A2,"yyyy-mm-dd"))
  4. Including weekends or holidays:

    =Adjusted_Close_Historical("^SPX","2024-03-15","yes")

? Pro Tip: Combine Historical Adjusted Close Price On A Date with other MarketXLS functions (like Volume_Historical or Open_Historical) to build complete historical dashboards or comparison tables.

  • Key features:
    • Supports multiple instrument types: stocks, indices, options, and crypto.
    • Automatically accounts for splits, dividends, and other corporate actions.
    • Returns up-to-date error handling with "NA" for invalid inputs or unavailable data.

Common Questions

  1. What happens on non-trading days?

    • By default, the formula outputs "NA" if the requested date is a holiday or weekend. Use "yes" in IncludeHolidays to shift the date to an available trading day.
  2. Why do I sometimes see "NA"?

    • This usually means the symbol is invalid, the date is not a valid trading day, or your license is not active.
  3. Can I use this for backtesting multiple dates at once?

    • Yes. Use standard Excel references or array formulas to loop through a list of dates and retrieve data efficiently.
  4. Does this formula impact Excel performance?

    • Each formula call fetches data from the server. For large datasets, consider optimizing or batching calls to reduce repeated network requests.
  5. Are different date formats supported?

    • Yes, but ensure the date is recognized by Excel. You can use TEXT() or standard date formats like YYYY-MM-DD.

This concludes our guide on using the Historical Adjusted Close Price On A Date formula in Excel with MarketXLS. By following the examples above and utilizing the parameters effectively, you can streamline your historical data retrieval and confidently analyze your investment strategies.

Get Access to 1 Billion Usable Market data points IN YOUR EXCEL SHEETS WITH EASY TO USE EXCEL FUNCTIONS

Get started today
MarketXLS Excel Add-in Tutorial - How to Use Historical Adjusted Close Price On A Date and Other Financial Formulas
How does MarketXLS work?