I've attached my code that exports a query to an XLS.
Basically you set it up with
<cfcontent type="application/msexcel">
<cfheader name="Content-Disposition" value="inline;
filename=All_Leads.xls" charset="utf-8">
Then build your table in HTML and whatever is there, is how
it will be in XLS.