Nice code humdingaling--but Nitefox, wouldn't it be easier to just filter out duplicates from the original data?