Skip to content

Use cases ​

Each page below covers one job from start to finish. The examples come in a JavaScript tab and a Python tab, plus a CLI tab where the command line can do the job. Every JavaScript and Python example is a complete program, and the site's checks run each one against the documented release, so the output shown in the comments is what you get.

Rows and columns are 0-based, and a cell can be given as an A1 string. In the default calculation mode a read recalculates whatever is dirty, so the examples do not call recalc() between a write and a read. If you have not installed Formulon yet, start with Install.

Files and cells ​

TaskWhat it covers
Open, edit and saveLoad .xlsx or .xlsb, edit, save in either format, and read cached values without recalculating
Read and write cellsNative values, blocks, whole sheets, dates, text that stays text, number formats, and pandas
Insert and deleteRows, columns and cells, the shift rules, and what happens to formulas

Formulas ​

TaskWhat it covers
Formulas and recalculationFormula, value and display text, calculation modes, parse errors, and ad-hoc evaluation
Dynamic arraysSpilling formulas, the spill range, #SPILL!, and legacy array formulas
TablesWorksheet tables, structured references, and the totals row
Defined namesWorkbook and sheet names, how they are matched, and their use in formulas
Errors and diagnosticsFormulonError, status codes, Excel error values, and parse diagnostics

Workbook features ​

TaskWhat it covers
PivotTablesBuild a pivot from a sheet range, place fields, add values, and refresh it after an edit
ChartsCreate a chart from a range, edit its plot, axes and series, and read it back
Conditional formatsHighlight rules, colour scales, data bars and icon sets, and which cells a rule hits
Validation and filtersData-validation rules, checking a value against them, and typed AutoFilters
PrintingPrint areas, titles, page setup, page breaks, and paginating a sheet
CommentsNotes, threaded comments, people and mentions

Integration ​

TaskWhat it covers
Locales and profilesExcel profiles, formula translation, locale-aware display, and text collation
Render in your own UIDisplay text, effective styles, geometry, merges and frozen panes for a custom grid
Off the main threadWeb Workers, the threads build, Node worker threads, and Python processes

Applications ​

The pages above cover single tasks. The application scenarios put them together into complete deployments: a browser upload, a Node service, a Python batch job, filling in values that openpyxl reads as None, and a CI regression check.

For every option of a feature, follow the link at the end of each task page to its workbook feature page and to the API reference.