Hi, I'm having trouble creating a formula to calculate specific ranges of data.
Raw data :
I have a range of 5000+ dates (column A) and associated values (column B).
The dates span from about 2000 to today. There are about 20 dates per month for each month (the gaps correspond to weekends). The dates are in chronological order.
I also have a secondary dataset consisting of a series of dates.
My goal is to calculate the average of values found in column B for the 12 months preceding the date given in my second dataset.
So, for example, given that my first date is 2006-12-01, I can manually find every value from column B between 2005-12-01 and 2006-11-30 and calculate the average, but now I would like to automatize this process.
I've been looking at INDEX/MATCH functions but I'm out of my depth to be completely frank.
Raw data :
I have a range of 5000+ dates (column A) and associated values (column B).
The dates span from about 2000 to today. There are about 20 dates per month for each month (the gaps correspond to weekends). The dates are in chronological order.
I also have a secondary dataset consisting of a series of dates.
My goal is to calculate the average of values found in column B for the 12 months preceding the date given in my second dataset.
So, for example, given that my first date is 2006-12-01, I can manually find every value from column B between 2005-12-01 and 2006-11-30 and calculate the average, but now I would like to automatize this process.
I've been looking at INDEX/MATCH functions but I'm out of my depth to be completely frank.