i am trying to average data, that falls between two dates.

J:J =Date associated with data
M:M =Data
H2009 =Date that the data must start after
H2010 =Data that the data must start before.