Spreadsheet Files
4 nodes
On this page 4
Read All Sheets
FunctionEvery sheet of an .xlsx workbook as a table, in order.
ReadAllSheets(path: Text, header: Truth) -> Table Array
Table[] ReadAllSheets(string path, bool header = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — | The workbook (.xlsx). |
| header | Truth | True | Whether each sheet's first row holds its column names. |
Returns
| Tables | Table Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Spreadsheet Files
- Package
- Data Analytics
Read Spreadsheet
FunctionA sheet of an .xlsx workbook as a table: the first sheet when none is named. Each cell keeps the kind the spreadsheet gave it, so numbers stay numbers, text stays text and date-formatted cells are dates; an error cell is empty.
ReadSpreadsheet -> Table
path: Text
sheet: Text
header: Truth
skipRows: Integer
range: TextTable ReadSpreadsheet(
string path,
string sheet = "",
bool header = true,
int skipRows = 0,
string range = "")Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — | The workbook (.xlsx). |
| sheet | Text | — | The sheet's name; the first sheet when empty. |
| header | Truth | True | Whether the first row holds the column names. |
| skipRows | Integer | 0 | How many rows to pass over first - a title above the table. |
| range | Text | — | Only these cells, written as a sheet writes them ("B2:E40"); the whole sheet when empty. |
Returns
| Table | Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Spreadsheet Files
- Package
- Data Analytics
Sheet Names
FunctionThe names of an .xlsx workbook's sheets, in order.
SheetNames(path: Text) -> Text Array
string[] SheetNames(string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — | The workbook (.xlsx). |
Returns
| Names | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Spreadsheet Files
- Package
- Data Analytics
Write Spreadsheet
FunctionWrites tables to an .xlsx workbook, a sheet each - a bold header kept in view while scrolling, a filter on every column, dates formatted as dates, columns wide enough to read - and gives back the file's path. Sheets are named by Sheet Names, else by each table's name, else Sheet1, Sheet2 and so on. Each chart in Charts follows on a sheet of its own, named after it: a native chart, its data from A1 and the chart beside it, as Save Chart writes a workbook; Written As says which charts are native and which are pictures.
WriteSpreadsheet -> (Path: Text, writtenAs: Text)
tables: Table Array
path: Text
sheetNames: Text Array
charts: Figure Arraystring WriteSpreadsheet(
Table[] tables,
string path,
out string writtenAs,
string[] sheetNames,
Figure[] charts)Parameters
| name | type | default | description |
|---|---|---|---|
| tables | Table Array | — | The tables, a sheet each, in order. |
| path | Text | — | The workbook to write (.xlsx); its folder is created if need be. |
| sheetNames | Text Array | — | What to call each sheet, in the same order; optional. |
| charts | Figure Array | — | Charts to write after the tables, a sheet each; optional. |
Returns
| Path | Text |
| writtenAs | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Spreadsheet Files
- Package
- Data Analytics