the empty cells are in the data before merging or a result of merging?

ie can you fix the table before merging begins and have a cleaner merge if the problem is "pre merge"

here to help