Hi,
This would be possible but I think you'd have to do a fair bit of hand-coding in PHP to achieve it. Here is a link to an article explaining how to use data from a mySQL database and then have PHP turn that data into an excel spreadsheet file.
Using%20PHP%20to%20generate%20an%20Excel%20Spreadsheet
Hope this helps you out.