Hi Chris
if I understand correctly you want to average the values of x/m corresponding to the first occurrence of the years?