XLS

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
Line 17: Line 17:
 
* [http://libxls.sourceforge.net/ libxls] - Library for reading XLS
 
* [http://libxls.sourceforge.net/ libxls] - Library for reading XLS
 
* [http://sourceforge.net/projects/xlslib/ xlsLib] - Library for writing XLS
 
* [http://sourceforge.net/projects/xlslib/ xlsLib] - Library for writing XLS
* [http://www.lexicon.net/sjmachin/xlrd.html The xlrd Module, a Python module for extracting data from MS Excel spreadsheet files] - contains detailed information about Excel's date handling  
+
* [http://www.lexicon.net/sjmachin/xlrd.html The xlrd Module, a Python module for extracting data from MS Excel spreadsheet files] - contains detailed information about Excel's date handling
 +
 
 +
== Sample files ==
 +
* [http://labs.nationalarchives.gov.uk/wordpress/index.php/2014/01/datasets/ National Archives (UK) datasets (includes some XLS files)]
  
 
==References==
 
==References==

Revision as of 19:49, 21 February 2015

File Format
Name XLS
Ontology
Extension(s) .xls
MIME Type(s) application/vnd.ms-excel

Contents

Microsoft Office EXCEL 97-2007

The Excel Binary File Format (.xls) Structure is the binary file format used by Microsoft Excel 97, 2000, 2002, and Office Excel 2003. It is also supported by Microsoft Office Excel 2007.

Later Excel versions use XLSX as their native format, though they still support the older format as well.

Handling of date values

Excel stores date values as floating point numbers that represent the number of days since a given start date. According to this piece, the default start dates are different for Excel for Windows (which uses January 1, 1900 and) Excel for Mac (which uses January 1, 1904). On top of this, the 1900 date system also erroneously assumes that 1900 was a leap year. This assumption was introduced on purpose in order to ensure compatibility with a bug in Lotus 1-2-3. In practice this may lead to dates that are off by 4 years and 1 day, depending on the software that is used to read/process the files.

Software

Sample files

References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox