This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ODS (.ods)

MIME type: application/vnd.oasis.opendocument.spreadsheet
OpenDocument spreadsheet file.
Used for storage and exchange of spreadsheet data and formulas.
Is part of the OASIS Open Document Format (ODF) family of file formats.
ODS is an acronym derived from OpenDocument Spreadsheet.
Native spreadsheet format of OpenOffice.org 2.0.
XML-based format, usually ZIP-compressed.
Supports multiple sheets in one file.
Developed by the OASIS industry consortium, based upon the OpenOffice.org SXC format.
Approved as ISO/IEC 26300 standard in 2006.
  • Import fully supports the ODS standard.
  • Import imports all sheets of an ODS file, returning the result as a list of arrays.
  • Import returns the sheets of an ODS file as an expression of the form where the are full arrays containing numerical and textual data, Boolean values, and date specifications.
  • Import imports the specified element from an ODS file.
  • Import imports multiple elements.
  • See the reference pages for full general information on Import.
"Elements"list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties, and settings
  • Data representation elements:
"Data"list of full arrays, representing all sheets
"Formulas"all ODS formulas as text
  • Import by default uses the element.
  • ODS data is represented in Mathematica by real or integer numbers, strings, Boolean values True and False, and DateList specifications.
  • ODS error cells are imported as $Failed.
  • Import gives spreadsheet formulas for each cell in the form where the are arrays corresponding to the sheets of an ODS file.
  • Importing parts of a data sheet:
"Data",kthe k^(th) sheet, given as an array
"Data",k,mrow m of the k^(th) sheet
"Data",k,m,ncell of the k^(th) sheet
  • Import returns the first sheet as an array.
  • The following can be used to select or specify individual sheets by name:
"Sheets"list of sheet names
"Sheets",namesheet name as an array
"Sheets",name,mrow m of sheet name
"Sheets",name,m,ncell in sheet name
  • Import yields spreadsheets as full rectangular arrays.
"EmptyField"""how empty cells are represented in Mathematica
Import tabular data from an ODS file and format it as a table:
Import tabular data from an ODS file and format it as a table:
In[1]:=
Click for copyable input
Out[1]//TableForm=