Built in function to export data as an excel spreadsheet