Read the data from excel file and create individual word documents

I intend to automate the process of passing data from excel file into a word document template followed by exporting it into PDF format. My key concern would be that the number of data varies for word document varies and the creation of dynamic rows in word document which the data will fill seems to be fixed. I’ve tried using the “read cell” followed by “replace text” activity as a way to pass data but I faced the issue of either having excess or insufficient rows in the word table as the table I’ve created in my word template is fixed. Thanks in advance for the help!