Skip to content

v0.17.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 11:49
7cc3242

Formualizer 0.17.0 is a correctness release. Formulas agree with Excel in many more places, an XLSX can be edited and recalculated in place, and evaluation is hardened against small inputs that could abort or stall the process.

The Excel work covers how numbers and text compare, how scalar functions and operators treat arrays, criteria and lookups, and a long list of math, financial, date and text edge cases, checked against results from Excel itself. XLSX loading now reads tables with structured references, What-If data tables, formula-defined names, hidden rows and the 1904 date system. This release also fixes copied formulas that could return another row's result in 0.16.0 (#716).

Product packages are 0.17.0. The parser and common SDK are 4.4.0, and sheetport-spec remains 0.3.4.

Highlights

  • Edit and recalculate an XLSX in place. Workbook::open_preserving (Rust), Workbook.open_preserving (Python) and Workbook.openPreserving (WASM) open a package, take edits to literal cells, recalculate over as many passes as needed and write it back with every part they do not touch byte for byte. A SheetPort session can save back into its source workbook. (#686, #687, #688)
  • Hardened against small inputs that abort or stall the process. Text results stop at 32,767 characters, arrays are bounded by the text they hold, defined names and LAMBDA calls no longer multiply nesting depth, loaders bound cell text, CSV size and iterateCount, and more loops observe the deadline, the work budget and cancellation, including the graph build and authority planning. Eight of the follow-up fixes were contributed by @yousefmansy1. (#676-#684, #689, #691, #693, #695, #698, #700-#703, #710, #711)
  • Excel parity for comparisons, arrays, criteria and text. Numbers compare at 15 significant digits and lookups compare exactly; scalar functions evaluate once per element of an array argument; operators over arrays of different sizes pad with #N/A; comparisons, lookups, sorts and criteria share one Excel text order. In the cached Excel comparison for the text and coercion work, five test workbooks went to exact agreement on every compared cell (141/141, 291/291, 86/86, 46/46 and 48/48). (#652, #655, #661, #668, #674)
  • More of an XLSX is read natively. Tables and structured references, What-If data tables, formula-defined names including named LAMBDAs, manually hidden rows and the 1904 date system load, evaluate and round-trip. (#650, #651, #653, #672)
  • Modern array and LAMBDA functions. BYROW, BYCOL, MAP, REDUCE, SCAN, MAKEARRAY, WRAPROWS, WRAPCOLS and EXPAND, with immediate and curried LAMBDA calls and ISOMITTED. (#238, #656)
  • Copied formulas no longer return another row's result. A run of copied formulas with a lookup or a criteria aggregate could reuse the result of a row that differed in a literal or in the cells a reference named. 0.16.0 has this bug; it returned wrong values without an error. (#716)

Breaking changes and upgrading

Most of this release changes results toward Excel's. These are the changes a caller is most likely to notice; each is described in full below.

  • Text results longer than 32,767 characters are #VALUE!, and an array is also bounded by the text it holds (evaluation_budgets.scratch.materialized_array_text_bytes, 256 MiB by default). ScratchResourceBudget has a new public field: construct it with ..Default::default(). See Hardening.
  • Loads are bounded. An XLSX whose cells hold more text than the workbook load limit, and a CSV past CsvReadLimits, stop with IoError::LoadBudgetExceeded; <calcPr iterateCount> is clamped to 32,767; read_range of a rectangle larger than materialized_array_cells reads as #NUM!. See Hardening.
  • Scalar functions return arrays for array arguments. =ABS(A1:A3) is three values, not the first cell's or #VALUE!. (#661)
  • Operators over arrays of different sizes pad with #N/A, and SUMPRODUCT requires equal sizes. =A1:A3*B1:B2 used to be one #VALUE!; =SUMPRODUCT(A1:A2,B1:C1) used to broadcast. (#668)
  • Numbers compare at 15 significant digits, and lookups compare exactly. The 1e-12 tolerance of MATCH, VLOOKUP, HLOOKUP, XLOOKUP, XMATCH and the RANK functions is gone, and -0 is stored as 0. (#652)
  • LEN counts UTF-16 units, and text compares in Excel's order. IF, CHOOSE, AND, OR and NOT apply Excel's coercion to a scalar selector, and ISEVEN/ISODD reject Boolean arguments. (#674)
  • An exact lookup of TRUE or FALSE finds only logical values, not the numbers 1 and 0.
  • DROP and TAKE with an empty selection are #CALC!, and *IFS functions with criteria ranges of different shapes are #VALUE!. (#655, #675)
  • C ABI (Rust side only). fz_encoding_format and fz_formula_dialect are transparent structs with associated constants, and the two parse-option flags are u8. The C header is unchanged. (#690)

Added

  • Added Workbook::open_preserving / open_preserving_file (Rust): a workbook that edits literal cells and recalculates an XLSX package over as many passes as needed, then writes it back with save_preserving / to_preserved_xlsx_bytes, keeping every part it does not touch byte for byte. Edits the source cannot take are refused without changing anything; structural calls release the source with a reason reported by preservation_status. See Editing between passes. Based on the edit vocabulary and tests of #669 by @bahhajf.
  • Added Workbook.open_preserving (Python) and Workbook.openPreserving (WASM), with save_preserving (Python), to_preserved_xlsx_bytes / toPreservedXlsxBytes, preservation_status, apply_preserving_edits, revert_preserving_cell and close_preserving. A Python with block and a JavaScript using declaration release the source package on exit and never save. Based on the tests of #669 by @bahhajf.
  • SheetPort keeps a workbook opened with Workbook::open_preserving saveable: evaluate_once, evaluate_with_plan and batch runs with EvalOptions overrides (seed, deterministic mode, frozen volatiles, budgets) no longer release the source package, so a session can write typed inputs, evaluate and save back into the original .xlsx with session.workbook().save_preserving(..) after a full evaluate_all(). No SheetPort API changed. See Saving back into the source workbook.
  • Native XLSX tables and structured references. xl/tables/*.xml is imported and exported, and structured references evaluate: [#All], [#Data], [#Headers], [#Totals], [#This Row] and @Col, single columns and column spans in either order, escaped headers and bare table names. Rows hidden with <row hidden="1"> load as manually hidden rows and are written back. (#571, #651)
  • What-If data tables. One-input row, one-input column and two-input XLSX data tables evaluate on load and in source-preserving recalculation, each trial with isolated inputs, and are preserved on export. (#598, #672)
  • Formula-defined names from XLSX. Names defined by a formula load and evaluate, including OFFSET and INDEX ranges, array constants, caller-relative references and named LAMBDAs; exports keep name definitions and sheet scopes. Workbook-profile recalculation applies the workbook's iteration settings and seeds circular formulas from their cached values. (#653)
  • BYROW, BYCOL, MAP, REDUCE, SCAN, MAKEARRAY, WRAPROWS, WRAPCOLS and EXPAND, with shape validation, padding and materialization limits. Immediate and curried LAMBDA calls go through the same closures as LET-bound ones, and ISOMITTED sees omitted LAMBDA slots. (#238, #656)
  • XlsxRecalculateOptions::legacy_formulas (LegacyFormulaEvidence::CalcChain, the default, or Always) reads every ordinary formula of a workbook as a pre-dynamic-array formula, for files from writers that keep neither a calc chain nor dynamic-array metadata. (#665, @bahhajf)
  • The 1904 date system loads from <workbookPr date1904> in the native XLSX reader and is written back by to_xlsx_bytes(). (#650)
  • EvaluationContext::named_reference returns a defined name's reference without evaluating it. (#659, @bahhajf)
  • Added Workbook.evaluate_all_with_delta() (Python) and evaluateAllWithDelta() (WASM) on every workbook: a full evaluation that returns the changed rectangles.
  • Added Workbook::set_workbook_seed, set_volatile_level, set_evaluation_resource_budgets and set_temporal_egress, so these settings no longer need engine_mut().
  • Added Engine::evaluate_all_for_snapshot_with_target_delta / evaluate_all_for_snapshot_with_delta_policy and EngineAction::engine.

Hardening

  • Hardened evaluation against small inputs that could abort or stall the process. None of these needs a large workbook: each was reachable from one short formula or a 2 KB file.
    • Text results are limited to 32,767 characters everywhere, as in Excel. The & operator, SUBSTITUTE, REPLACE/REPLACEB, CONCATENATE, ARRAYTOTEXT and VALUETOTEXT now return #VALUE! for a longer result, as REPT, CONCAT and TEXTJOIN already did, and decide it before allocating. Previously =A1&A1 copied down 34 rows, =REDUCE("x",SEQUENCE(34),LAMBDA(a,b,a&a)) or =SUBSTITUTE(REPT("a",32767),"a",REPT("b",32767)) grew a string until allocation failed. Behaviour change: a formula that built text longer than 32,767 characters used to return it; LEN(REPT("x",32767)&"x") was 32768 and is now #VALUE!. Text of any length that is only read or passed through (a cell value, IF, a lookup result) is not affected.
    • Arrays are bounded by the text they hold, not only by their cell count. New evaluation_budgets.scratch.materialized_array_text_bytes (default 256 MiB per array) is charged as the array operators, array-lifted scalar functions (REPT, LEFT, TEXT, ...), IF/IFERROR/IFNA over arrays and the generated-array functions (MAKEARRAY, MAP, SCAN, BYROW, BYCOL, EXPAND, WRAPROWS, WRAPCOLS) produce each element; an array over it is #NUM!. =REPT("x",32767)&SEQUENCE(1000,1000) (a million cells, 32 GiB) used to abort the process and is now refused from the operand sizes, before anything is built. EvaluationContext::materialized_array_text_bytes and FunctionContext::materialized_array_text_bytes expose the budget to custom functions. Upgrading: ScratchResourceBudget has a new public field; construct it with ..Default::default().
    • Defined names and LAMBDA calls can no longer multiply a formula's depth. A caller-relative defined name and a LAMBDA body are evaluated on the caller's stack. Each used to start a fresh formula's worth of nesting, so 31 names of 250 terms each (a 2 KB workbook), or 60 chained LAMBDAs in one cell, overflowed the stack on load-and-evaluate and on recalculate_xlsx_bytes. One count now runs across names, LAMBDA calls and LET scopes: inside them a cell may nest at most 256 operator and call levels, of which 72 calls, the same bounds the parser puts on a single formula. Past that the cell is #NUM!. Behaviour change: name or LAMBDA chains deeper than that used to evaluate when the thread's stack happened to be large enough; a recursive LAMBDA whose body nests more than two calls per step now stops before the existing 32-step limit.
    • SEARCH and SEARCHB with wildcards run in time proportional to the text, and observe deadlines. The whole pattern used to be matched again at every start position: =SEARCH("*"&REPT("a",n)&"b",REPT("a",2*n)) took 15 s at n = 2,000, about two hours at the 32,767-character limit, and ignored max_eval_time and cancellation. Each *-separated piece is now searched for once (linearly when it has no ?), and the ? scan polls the request's cancellation token. Results are unchanged; FIND and SEARCH without wildcards are linear too.
    • A caller-relative defined name that lands outside the sheet is #REF! instead of a panic. Sheet1!XFD1048576 used from B5 is rebased to one column and four rows past the last cell; that panicked out of evaluate_all and recalculate_xlsx_bytes (Row 1048579 exceeds 20 bits). A relative reference rebased by a defined name is now checked against the grid (1,048,576 rows, 16,384 columns). Shared-formula members are unchanged.
    • An operand with no rows next to an open-ended range no longer panics out of evaluate_all. =-B3:B-B2:D2 (an open column minus its header row, where nothing is below the header) reached unreachable! in the interpreter, outside any function's panic catch, so the whole call unwound: with panic = "abort" the process died. An operand with no rows or columns now pads to #N/A on either side of an operator, as it already did between two arrays. A one-cell range is a single value and still broadcasts over such an operand, reading it as a blank as the cell reference does: with nothing below B5, =SUM(B6:B*D1:D1) is 0, as =SUM(B6:B*D1) is. (#676, #703)
    • COUNTIFS, SUMIFS and AVERAGEIFS with a criteria range that has no criterion are #VALUE! instead of a caught panic. (#683)
    • TEXTSPLIT with match_mode 1 no longer panics, or splits in the wrong place, on text whose lowercase form has a different length (=TEXTSPLIT("İİİ,a",",",,,1), "ẞ"). Delimiters are now matched at character boundaries of the original text. Each delimiter is searched for about once whatever its place in the list, and a long delimiter is found in time linear in the text: a delimiter that does not occur, listed before the one that does, used to be searched for to the end of the text again for every part. (#701)
    • More loops observe the deadline, the work budget and cancellation. NPV, MAXIFS, MINIFS, the twelve database functions (DSUM, DGET, ...), NETWORKDAYS and NETWORKDAYS.INTL walked their ranges cell by cell without a check: =NPV(1,A1:XFD1048576) on an empty sheet ran 119 s on a 2 s deadline. Every LAMBDA call is now a check (MAP, BYROW, BYCOL, REDUCE, SCAN, MAKEARRAY checked every 4,096 cells, so 100 expensive calls were never interrupted), and so is every element of a scalar function lifted over an array (=SUM(ATAN2(B1:Q1000000,1)) ran 17 s on a 300 ms deadline; an element that was stopped no longer becomes an error value the loop carries on from). Each LAMBDA call and lifted element charges one work unit. A database function's computed criterion is evaluated once per record, and each evaluation is a check as well; criteria labels are matched to the database headers in one pass instead of pair by pair. Without a work budget the per-call check no longer writes the request's shared counters on every call. (#677, #681, #698, #700)
    • WORKDAY and WORKDAY.INTL return #NUM! for a result outside the date system's range without stepping to it. =WORKDAY(1,1E9) stepped a day at a time to the end of the calendar; a result after 31 December 9999 or before the first date used to come back as a serial no other function accepts. (#677)
    • GROUPBY, PIVOTBY and TEXTSPLIT are held to materialized_array_cells and materialized_array_text_bytes. GROUPBY and PIVOTBY refuse inputs larger than the budget with #NUM! before grouping, PIVOTBY and TEXTSPLIT refuse a result grid larger than it (20,000 rows with distinct keys on both axes asked for a 400-million-cell grid and aborted at 5 GB; a 32,700-character text split into 10,901 x 10,901 cells), and all three check the deadline while they run. PIVOTBY holds each of its inputs to the cell budget on its own and charges key text once per distinct pair of keys, so a pivot of more rows than half the budget computes, as GROUPBY does. (#680, #702)
    • A graph build stops on the deadline or the cancel token while it parses, and the next request resumes it. evaluate_all on 300,000 staged formulas with a 2 s deadline returned its deadline error after 50 s; it now stops within the deadline while parsing and leaves every formula staged. The stop keeps what it parsed, so a caller that retries with the same deadline finishes the build instead of repeating its first part; a change to the staged formulas, the sheets, the names or the parse settings discards the kept part. Authority planning stops at the deadline and on cancellation too. Ingestion and the dependency build still run to completion once started. (#682, #695, #710, #711)
    • The function behind What-If data-table cells is internal. _FZ_XLSX_DATA_TABLE evaluated in any formula that named it. It is now #NAME? unless the workbook's loader installed a data table (Engine::enable_what_if_tables), and a table whose header is being evaluated by an enclosing trial is #CIRC! at once: two calls in one self-referencing formula used to start 2^32 trials. (#684)
    • Spills that overlap their own precedents resolve locally as #CIRC! instead of failing evaluate_all. A formula like =TAKE(B1:D3,1) or =TOROW(B1:D3) in A1 on an empty sheet, or a multi-hop spill cycle (B1 = =SEQUENCE(2)+C1, C1 = =B2+1), used to loop until evaluate_all failed the entire request with "dynamic dependency evaluation did not converge after 5 replans". Direct self-overlapping spills are now rejected as #CIRC! on the first pass (after #SPILL! blocking checks, so occupied target cells still report #SPILL! first), and spill-extent changes invalidate the static schedule cache while extent hints include self-edges and observed dynamic readers so indirect and size-oscillating spill cycles enter the normal SCC §7.9 #CIRC! + spill-teardown path cleanly.
  • Fixed an XLSX of a few kilobytes exhausting memory on load. Shared strings are stored once per referring cell, so a 51 KB workbook with one 1 MB string and 20,000 references to it asked for 20 GB and aborted the process, and 2 GiB of text in one column panicked inside Arrow. A load now stops with IoError::LoadBudgetExceeded (recalculate_xlsx_* and Workbook::open_preserving refuse with IoError::Unsupported, feature workbook cell text limit) once a workbook's cells hold more text than the new WorkbookLoadLimits::max_text_bytes / XlsxRecalculateLimits::max_text_bytes, 256 MiB by default. IngestBuilder returns an error instead of panicking when one column chunk would pass Arrow's 2 GiB string limit.
  • Fixed the CSV reader having no limits: a 2 MB file with one row of a million fields aborted at an 8 GB cap. Added CsvReadOptions::limits (CsvReadLimits), which bounds input bytes (256 MiB), rows (1,048,576), columns (16,384), stored cells (8,000,000), bytes per field (131,068) and total cell text (256 MiB); a read past one stops with IoError::LoadBudgetExceeded. Upgrading: a CSV larger than the grid, or with a field longer than an Excel cell can hold, is refused unless you raise the limit, and a CsvReadOptions struct literal needs ..Default::default() or a limits field.
  • Fixed a workbook choosing how long its own recalculation runs: <calcPr iterateCount> is clamped to 32,767 (CyclePolicy::EXCEL_MAX_ITERATIONS), the most Excel accepts. A file with iterateCount="4294967295", iterateDelta="0" and A1: =A1+1 ran for half an hour. Source-aware recalculation reports the clamp as an iterateCount warning. A max_iterations the host sets is not limited.
  • Fixed Workbook::read_range allocating whatever rectangle it was given: reading A1:XFD1048576 aborted the process. A rectangle with more cells than evaluation_budgets.scratch.materialized_array_cells (2^24 by default) now reads as a single #NUM! cell. Added Workbook::try_read_range, WorksheetHandle::try_read_range and Engine::try_get_range_values, which return the refusal as an error; Python Sheet.get_values raises ValueError.

Excel compatibility

  • Numbers compare the way Excel compares them. =, <>, <, <=, >, >= and the criteria functions (COUNTIF(S), SUMIF(S), AVERAGEIF(S), MAXIFS, MINIFS) compare at 15 significant digits. MATCH, VLOOKUP, HLOOKUP, XLOOKUP, XMATCH, RANK.EQ, RANK.AVG, UNIQUE, SORT and SORTBY compare doubles exactly, without the former 1e-12 tolerance. -0 is stored and written as 0. A top-level, unparenthesized +, - or SUM whose terms cancel to less than 8 ULP gives 0. (#564, #573, #652)
  • Scalar functions lift over arrays. A function whose parameter takes one value (ABS, LEN, ROUND, LEFT, YEAR; 192 built-ins in all) evaluates once per element of a range or array and returns an array, with Excel's broadcasting. =SUMPRODUCT(ABS(A1:A2),B1:B2) and =SUMPRODUCT(--(LEN(A1:A3)<>0)) give Excel's totals where they gave #VALUE! or the first cell's result. (#661, @bahhajf)
  • Operators over arrays of different sizes pad with #N/A, and SUMPRODUCT requires equal sizes. =A1:A3*B1:B2 has Excel's shape, the larger extent on each axis with #N/A where an operand does not reach, instead of a single #VALUE!. =SUMPRODUCT(A1:A2,B1:C1) is #VALUE! instead of broadcasting to 45. (#668, @bahhajf)
  • Text is compared, coerced and formatted as Excel does. Comparisons, lookups, sorts and criteria share one invariant text order. IF, CHOOSE, AND, OR and NOT apply Excel's scalar coercion. Arithmetic and VALUE read grouped and dollar-prefixed numbers. TEXT supports scientific, fraction, conditional and fourth-section formats. LEN counts UTF-16 units, an empty FIND or SEARCH needle honours the start position, and TEXTBEFORE and TEXTAFTER take their optional arguments. DCOUNT and DCOUNTA count matching records when the field is omitted, and database criteria formulas are evaluated per record. (#375, #674)
  • Criteria and reference operators. Numeric-looking criteria coerce the same way in every *IF and *IFS function, and *IFS ranges of different shapes are #VALUE!. 3-D sheet spans resolve in workbook order and track their dependencies through sheet edits. Intersection and union are reference operations: disjoint ranges give #NULL!, and AREAS and INDEX area selection work. AGGREGATE codes 12 to 19 take their rank and percentile arguments together with the visibility, error and nested-total options. (#655)
  • Math, financial and date edge cases. Sign, significance and mode handling in the CEILING and FLOOR families; variadic and range inputs in GCD and LCM; coupon-period day counts in PRICE and actual/actual ACCRINT; IRR, XIRR and RATE roots (they also observe deadlines and work budgets now); the BESSEL functions; DATEDIF and YEARFRAC in both date systems. BINOM.DIST, BINOM.INV, POISSON.DIST, GAMMA.DIST, NEGBINOM.DIST, HYPGEOM.DIST, WEIBULL.DIST and BETA.DIST no longer return NaN or infinity at boundary arguments. (#599, #647, #650, #654)
  • Whole-axis references and worksheet functions. Whole-row and whole-column INDEX selections resolve at the worksheet bounds, and array operators and FILTER keep the logical shape with compressed blank tails. FORECAST.LINEAR and RANK keep argument errors, the complex-number functions write 15 significant digits and IMDIV by zero is #NUM!, PMT, IPMT and PPMT keep annuity precision, and case conversion uses Unicode mappings. (#590, #673)
  • Reference lookups and empty arrays. DROP and TAKE with an empty selection are #CALC!. INDIRECT reads absolute and caller-relative R1C1 text, and negative OFFSET heights and widths extend up or left. VLOOKUP, MATCH and INDIRECT propagate an error in their first argument; VLOOKUP returns #N/A on a miss and checks the return column only on a hit. (#675)
  • Reversed ranges are normalised on each axis. B5:A7 is A5:B7 and A7:$A$5 is A$5:$A7, each $ staying with its own coordinate, in the parser, evaluation, relocation and ROWS/COLUMNS. (#599, #650)
  • Day, month name and year text is a date. "28 February 2023", "28 Feb 23", "28-February-2023" and "28/Feb/2023" are read as dates by arithmetic, VALUE, YEAR and TEXT, in every locale, as Excel reads them. (#657, @bahhajf)
  • VALUE of an empty cell is 0; VALUE("") is still #VALUE!. (#660, @bahhajf)
  • A sheet-qualified name (Sheet1!Rate) resolves a name scoped to that sheet, then the workbook scope, instead of #NAME?. (#658, @bahhajf)
  • Defined names work as endpoints of the range operator: =SUM(First:Last) spans the rectangle instead of returning #N/IMPL!. (#659, @bahhajf)
  • ROWS and COLUMNS keep an array argument in legacy (pre-dynamic-array) formulas: =ROWS(ABS(A1:A3)) is 3, not 1. (#662, @bahhajf)
  • XLSX recalculation accepts empty formula markers inside array extents, publishes #VALUE! for a #This Row reference outside a table's data rows, and publishes #NULL! and #NAME? where they are provable. (#584, #671)
  • Strict XLSX recalculation places a <row> or <c> without an r attribute by its order instead of refusing the file. (#664, @bahhajf)
  • Fixed an exact lookup of TRUE or FALSE matching the numbers 1 and 0 (and the texts "1" and "0") while a column was scanned, and only logical values once its lookup index was built. A logical value now finds only a logical value on both paths, as in Excel: =MATCH(TRUE,{1,TRUE},0) is 2. Behaviour change: an exact lookup of a logical value over a small or seldom-read range that used to find a number or numeric text now finds the logical value, or returns #N/A.

Fixed

  • Fixed copied formulas returning another row's result (#716). A run of copied formulas that calls a lookup or a criteria aggregate evaluates each distinct set of inputs once and reuses the result for the rows that repeat it. Two things were missing from what it compared. Rows that differ only in a literal shared one result: with =ROUNDUP(VLOOKUP(A1,$D$1:$E$1,2,0),1) and =ROUNDUP(VLOOKUP(A2,$D$1:$E$1,2,0),0) alternating down a column and the same key in every row, the rows rounding to 0 digits got the value of the rows rounding to 1. So did rows whose relative cell is read as a range rather than as a value: =INT(SUMIF($A$1:$A$2,1,D1)) sums from D1 down, so equal values in D1 and D2 are not equal sums. Both returned wrong values without an error in release builds (15 of 33 and 63 of 256 cells in the reports' workbooks), in 0.16.0 as well. A row's own literals are now part of what is compared, and a relative cell in a range position (SUMIF's sum_range, a lookup's table, an operand of :) or handed to one through IF, IFERROR, IFNA or CHOOSE is never compared by its value. Results of other formulas are unchanged.
  • Fixed an exact text lookup changing its answer once a column's lookup index was built (#715). With ΑΣ in A2, =MATCH("ας",$A$1:$A$70,0) returned 2 for the first lookups of the column and #N/A from the fourth on; VLOOKUP, HLOOKUP, XMATCH and XLOOKUP share the index. The index found the cell and then checked it again with the comparison used for ordering, which lowercases one character at a time, where exact matching lowercases the whole text: the two differ for a Greek capital sigma at the end of a word. An exact text match is now decided the same way on a scan, through the index, and through an index whose table did not fit lookup_index_cache_max_bytes. Approximate and wildcard lookups are unchanged. No release had this: it came in after 0.16.0 with the Excel text order.
  • Fixed SIN, COS, TAN and ATAN2 over cell ranges repeating the first cell in O(N^2) time, and preserved uniform tails in elementwise lifting. ArgumentHandle::with_fixed_value left resolution/range accessors reading the original range expression, so functions calling range_view() inside lift_scalar_arguments re-evaluated the whole range on every cell and kept only element (0, 0) (=SUM(ATAN2(A1:A10000,1)) took 14 s and returned 10000 * ATAN2(A1,1)). with_fixed_value now routes resolve_once, range_view, range, and lazy_values_owned through the fixed value without heap allocation on the scalar value() hot path (while non-lifted arguments keep reference resolution via with_cached_value), SIN/COS/TAN/ATAN2 evaluate scalars directly through central lifting, and pure non-volatile lifted calls preserve whole-axis uniform tails via build_tailed_range_view (charging array text budget once per uniform tail cell, matching array operators).
  • Fixed set_temporal_egress / setTemporalEgress in Python and WASM releasing the source of a source-preserving workbook; "native" is refused there and "serial" keeps the source attached.
  • Fixed a source-preserving workbook keeping a fixed deterministic timestamp as its clock after the mode was set back: NOW()/TODAY() observe the instant sampled at open again.
  • Fixed single-cell edits of a source-preserving workbook scanning the whole worksheet again for each new block of 1,024 rows: a block is now scanned alone, so edits spread over a large sheet cost one pass of it in total. set_values and write_range inside an action index their rows together.
  • Fixed a stale xl/calcChain.xml entry for a formula a source-preserving edit turned into a literal: a chain that cannot be located as one member, has an entry naming no known cell, or has no entry for the overwritten formula is removed with its relationships and content type.
  • Fixed the WASM binding trapping when a JavaScript custom function called back into a workbook during evaluation: every method now throws an error with code: "REENTRANT_CALL", and a function can be registered or unregistered on another workbook from inside a callback.
  • Fixed formualizer recalc printing sheet names, function names and engine messages unescaped in its human-readable report: control characters and bidirectional formatting characters are written as \u{..}. The JSON report is unchanged.
  • Fixed the C ABI reading enum and bool arguments as Rust values before checking them: fz_encoding_format, fz_formula_dialect, fz_parse_options.include_spans and span_evaluation are integers at the boundary and an undeclared value fails with FZ_STATUS_ERROR. The C header is unchanged. In Rust, fz_encoding_format and fz_formula_dialect are now transparent structs with associated constants, and the two flags are u8.