It would be simpler if you reordered the data as attached and created a simple many to one mail merge with the attached certificate.
To achieve this you need
Merge Many To One.
Or if you want separate certificates, the same modified data file will do that also as a standard letters merge. However having all the dates on one certificate seems to make more sense.