Writing output to Excel file with formulas

Hi All

I'm not sure if this is possible, but I'd like to write some data from a PP protocol to an Excel file, but include the formulas used to calcualte it, so that the users can interact with the data and have the information recalculated.

Is the best way to set up an Excel template with the calculations written and use PP to fill in the template?

I'm sorry if that's a little unclear, let me know if you want clarification.

Thanks
Hassan