You can use GoodGrids to create Excel files from data.
You provide an example Excel file that serves as a template for creating Excel files from your data.
You can then upload CSV files or use the API to create an Excel file. It will be formatted based on your template.
Read about the Excel template file format.