I have end of month stock prices from 12/31/2009 through 12/31/2013 in the second column of a sheet and the corresponding date in the first column. In a separate sheet I have the years 2010, 2011, 2012, and 2013 in a column. I need to build a formula on the separate sheet that will calculate the yearly return for the corresponding year on that sepeate sheet. This has to be a single formula or else I would do a new formula for each year. I beleive I need something that will look at the year on the sheet where I am calculating the yearly return, look in the total range of price data, find the range of the data only for the correspinding year within the total data range, and then return the price on 12/31/XX by using a max function against the data and then divide that by the same thing looking for the max date (12/31) of the prior year. I don't know how to have excel look at the all the dates and then find the dates for the specific year and return the value I am looking for. Thank you.
It kind of looks like this; data:
12/31/2009 $XXX
1/31/2010 $XXX
2/28/2010 $XXX
.
.
.
.
.
12/31/2013 $XXX
And the table I am trying to insert this into is just:
Yearly Return
2010
2011
2012
2013
Bookmarks