Excel file format - Maple Help

Home : Support : Online Help : Programming : Input and Output : File Formats : Formats/Excel

Excel (.xlsx, .xls) File Format - Excel file format

Description

 • The Excel spreadsheet format is the native file format of Microsoft® Excel.
 • The name refers both to the Excel Binary File Format (.xls) in use until Excel 2007, and to the Office Open XML spreadsheet format (.xlsx) in use by Excel 2007 and later revisions.
 • The ExcelTools package allow detailed control over import and export of Excel spreadsheets.
 • The general-purpose commands Import and Export also support this format.

Examples

Import data from an Excel spreadsheet.

 > $\mathrm{data}:=\mathrm{FileTools}:-\mathrm{JoinPath}\left(\left["Excel","ExperimentalData.xls"\right],\mathrm{base}=\mathrm{datadir}\right)$
 ${"C:\Program Files\Maple 2015\data\Excel\ExperimentalData.xls"}$ (1)
 > $M:=\mathrm{Import}\left(\mathrm{data}\right)$
 ${M}{:=}\left[\begin{array}{c}{\mathrm{12 x 7}}{\mathrm{Matrix}}\\ {\mathrm{Data Type:}}{\mathrm{anything}}\\ {\mathrm{Storage:}}{\mathrm{rectangular}}\\ {\mathrm{Order:}}{\mathrm{Fortran_order}}\end{array}\right]$ (2)

To perform the following example, you should create an Excel spreadsheet named Employees.xlsx with the necessary sheets and cells.

 > $Q:=\mathrm{ExcelTools}:-\mathrm{Import}\left("Employees.xlsx","Payroll","B2:C9"\right):$