You could instead see https://www.gmayor.com/MergeAndSplit.htm which would do the job for you, either during the merge or subsequently, using merge fields for the data.