An inline DataTable is not the same thing as exporting data in a standardized XLSX format. (I'll post the script I use in another comment.
Regarding inline tables, here are some other worth scripts:
Handsontable - minimalistic Excel-like data grid editor
TableSorter 2 (forked) - sorting, filtering, grouping, pagination, inline editing, sticky header
http://mottie.github.io/tablesorter/docs/
jQuery Grid Plugin
jQuery table to CSV
http://www.kunalbabre.com/projects/table2CSV.php
jQuery Pivot - presenting table data in pivot form
http://metalogic.dk/jquery.pivot/demo.htm