Hello,
I have a worksheet "Returns" with a column of dates, in chronological order, and another 50 columns of values (company returns), representing what the company return was on that date.. Each company has a column of daily returns for a period of many years.
I have another worksheet "Dates" with specific dates for each company and I want to take the company name/ company code and the date and match these in the worksheet "Returns". I want to use the date from "Dates" and obtain the return on that day, returns found in"Returns" worksheet. I call the date for company x listed in "Dates" worksheet "Day 0". I have been able to achieve this by using MATCH/INDEX functions in excel.
However, in addition to this I want to take the returns for the 200 days prior to "Day 0" and the 31 days after "Day 0" and transfer these to a new worksheet, for each of the 50 companies. My sample size is soon to include to several thousand so trying to get a way of speeding things up.
Any comments would be greatly appreciated.
RM
Bookmarks