In my example, the values and dates are listed in different columns. Also, I am trying to get the result to show the max value between the actual dates (rather than the dates that are listed in the cells).
For example, I have the dates in column AC and stock prices in column AG. I have column SU keeping track of the end date (which stays constant at 10 years ahead of the date in the current AC column). The SV column is where I have the formula. The formula for SV17249 is:
I chose the range AC14739:AC17249 because it equals the approximate number of yearly trading days (x10) during a 10-year period (2,510). However, I am trying to find the max value between two dates that are precisely 10 years apart (like 1/1/2000 to 1/1/2010). But there are some years where there are more or less trading days than others, and that throws off the 2510 fixed range that I put into the formula.
Is there a way to have the formula above get the highest stock price in AG between the actual date in cell AC17249 and the date exactly 10 years prior to AC17249?