Skip to main content

Crate sheet_io

Crate sheet_io 

Source

Modules§

csv
xlsx

Structs§

Area
A rectangle of cells, first and last included, on a sheet (an index into the workbook’s sheets) or on no sheet in particular.
CellRef
A cell position, 0-based (B3 is row 2, column 1).
Civil
A calendar date and wall time (datetime’s), what civil and serial convert. a calendar date and wall time without a zone
Table
A rectangular table: every row has columns.len() values.

Enums§

CellError
An error value of a cell.
Value
A cell value with its type.

Constants§

MAX_COLS
Excel’s columns per sheet (A to XFD): the last column of a whole-row reference (1:3)
MAX_ROWS
Excel’s rows per sheet: the last row of a whole-column reference (A:C)

Functions§

civil
The date and time of an OLE Automation date (days since 1899-12-30, the fraction the time of day), rounded to the millisecond; None for NaN, infinities and values beyond 10^8 days.
col_name
The letters of a 0-based column (0 is A, 27 is AB, 16383 is XFD).
parse_area
A reference to one rectangle as formulas and defined names write it: B3, $A$1:$C$10, whole columns A:C (rows 0 to MAX_ROWS - 1), whole rows 1:3 (columns 0 to MAX_COLS - 1), with an optional sheet before ! (Sheet1!A1, 'Tab 1'!$A$1:$C$10, '' for a quote in a quoted name) and an optional leading =. The sheet is resolved by name among sheets (ASCII and Unicode case-insensitive, as Excel compares sheet names); without a sheet the area’s sheet is None. None for an unknown sheet, a 3-D reference (Sheet1:Sheet3!A1), an external one ([1]Sheet1!A1), a union (A1,B2), a function or #REF!.
parse_ref
A cell reference in A1 form: column letters (either case), then the 1-based row, each with an optional $ (B3, $B$3, b$3); None for anything else.
quote_sheet
A sheet name as a formula writes it before !: as it is when it is a plain name (letters, digits, _, ., not starting with a digit, no cell reference), else in single quotes with each ' doubled ('Tab 1', 'O''Brien').
serial
The OLE Automation date of a date and time (days since 1899-12-30, the fraction the time of day); civil reads it back.