So you're wanting someone to modify your current script or you want a new script written completely?
Wouldn' a datamerge do it ?
First you have to export the Excel file to XML like so.
Then you can use it for generating the whole catalog in InDesign.
Below is a screenshot taken from the catalog in his course:
You could als take a look at this InDesign Plugin called "EasyCatalog": https://www.65bit.com/
The support is awesome and there is next to nothing i can't do with it!
you can use your Excel file or almost anything you want to as a source.
If you have any questions - feel free to ask.