Repository navigation
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) andWorkbook.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,WRAPCOLSandEXPAND, with immediate and curried LAMBDA calls andISOMITTED. (#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).ScratchResourceBudgethas 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 withIoError::LoadBudgetExceeded;<calcPr iterateCount>is clamped to 32,767;read_rangeof a rectangle larger thanmaterialized_array_cellsreads 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, andSUMPRODUCTrequires equal sizes.=A1:A3*B1:B2used 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-12tolerance ofMATCH,VLOOKUP,HLOOKUP,XLOOKUP,XMATCHand theRANKfunctions is gone, and-0is stored as0. (#652) LENcounts UTF-16 units, and text compares in Excel's order.IF,CHOOSE,AND,ORandNOTapply Excel's coercion to a scalar selector, andISEVEN/ISODDreject Boolean arguments. (#674)- An exact lookup of
TRUEorFALSEfinds only logical values, not the numbers1and0. DROPandTAKEwith an empty selection are#CALC!, and*IFSfunctions with criteria ranges of different shapes are#VALUE!. (#655, #675)- C ABI (Rust side only).
fz_encoding_formatandfz_formula_dialectare transparent structs with associated constants, and the two parse-option flags areu8. 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 withsave_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 bypreservation_status. See Editing between passes. Based on the edit vocabulary and tests of #669 by @bahhajf. - Added
Workbook.open_preserving(Python) andWorkbook.openPreserving(WASM), withsave_preserving(Python),to_preserved_xlsx_bytes/toPreservedXlsxBytes,preservation_status,apply_preserving_edits,revert_preserving_cellandclose_preserving. A Pythonwithblock and a JavaScriptusingdeclaration 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_preservingsaveable:evaluate_once,evaluate_with_planand batch runs withEvalOptionsoverrides (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.xlsxwithsession.workbook().save_preserving(..)after a fullevaluate_all(). No SheetPort API changed. See Saving back into the source workbook. - Native XLSX tables and structured references.
xl/tables/*.xmlis 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
OFFSETandINDEXranges, 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,WRAPCOLSandEXPAND, with shape validation, padding and materialization limits. Immediate and curried LAMBDA calls go through the same closures asLET-bound ones, andISOMITTEDsees omitted LAMBDA slots. (#238, #656)XlsxRecalculateOptions::legacy_formulas(LegacyFormulaEvidence::CalcChain, the default, orAlways) 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 byto_xlsx_bytes(). (#650) EvaluationContext::named_referencereturns a defined name's reference without evaluating it. (#659, @bahhajf)- Added
Workbook.evaluate_all_with_delta()(Python) andevaluateAllWithDelta()(WASM) on every workbook: a full evaluation that returns the changed rectangles. - Added
Workbook::set_workbook_seed,set_volatile_level,set_evaluation_resource_budgetsandset_temporal_egress, so these settings no longer needengine_mut(). - Added
Engine::evaluate_all_for_snapshot_with_target_delta/evaluate_all_for_snapshot_with_delta_policyandEngineAction::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,ARRAYTOTEXTandVALUETOTEXTnow return#VALUE!for a longer result, asREPT,CONCATandTEXTJOINalready did, and decide it before allocating. Previously=A1&A1copied 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")was32768and 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/IFNAover 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_bytesandFunctionContext::materialized_array_text_bytesexpose the budget to custom functions. Upgrading:ScratchResourceBudgethas 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. SEARCHandSEARCHBwith 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 atn = 2,000, about two hours at the 32,767-character limit, and ignoredmax_eval_timeand 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;FINDandSEARCHwithout wildcards are linear too.- A caller-relative defined name that lands outside the sheet is
#REF!instead of a panic.Sheet1!XFD1048576used fromB5is rebased to one column and four rows past the last cell; that panicked out ofevaluate_allandrecalculate_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) reachedunreachable!in the interpreter, outside any function's panic catch, so the whole call unwound: withpanic = "abort"the process died. An operand with no rows or columns now pads to#N/Aon 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 belowB5,=SUM(B6:B*D1:D1)is0, as=SUM(B6:B*D1)is. (#676, #703) COUNTIFS,SUMIFSandAVERAGEIFSwith a criteria range that has no criterion are#VALUE!instead of a caught panic. (#683)TEXTSPLITwithmatch_mode1 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, ...),NETWORKDAYSandNETWORKDAYS.INTLwalked 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,MAKEARRAYchecked 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) WORKDAYandWORKDAY.INTLreturn#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,PIVOTBYandTEXTSPLITare held tomaterialized_array_cellsandmaterialized_array_text_bytes.GROUPBYandPIVOTBYrefuse inputs larger than the budget with#NUM!before grouping,PIVOTBYandTEXTSPLITrefuse 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.PIVOTBYholds 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, asGROUPBYdoes. (#680, #702)- A graph build stops on the deadline or the cancel token while it parses, and the next request resumes it.
evaluate_allon 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_TABLEevaluated 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 failingevaluate_all. A formula like=TAKE(B1:D3,1)or=TOROW(B1:D3)inA1on an empty sheet, or a multi-hop spill cycle (B1 = =SEQUENCE(2)+C1,C1 = =B2+1), used to loop untilevaluate_allfailed 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.
- Text results are limited to 32,767 characters everywhere, as in Excel. The
- 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_*andWorkbook::open_preservingrefuse withIoError::Unsupported, featureworkbook cell text limit) once a workbook's cells hold more text than the newWorkbookLoadLimits::max_text_bytes/XlsxRecalculateLimits::max_text_bytes, 256 MiB by default.IngestBuilderreturns 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 withIoError::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 aCsvReadOptionsstruct literal needs..Default::default()or alimitsfield. - 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 withiterateCount="4294967295",iterateDelta="0"andA1: =A1+1ran for half an hour. Source-aware recalculation reports the clamp as aniterateCountwarning. Amax_iterationsthe host sets is not limited. - Fixed
Workbook::read_rangeallocating whatever rectangle it was given: readingA1:XFD1048576aborted the process. A rectangle with more cells thanevaluation_budgets.scratch.materialized_array_cells(2^24 by default) now reads as a single#NUM!cell. AddedWorkbook::try_read_range,WorksheetHandle::try_read_rangeandEngine::try_get_range_values, which return the refusal as an error; PythonSheet.get_valuesraisesValueError.
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,SORTandSORTBYcompare doubles exactly, without the former1e-12tolerance.-0is stored and written as0. A top-level, unparenthesized+,-orSUMwhose terms cancel to less than 8 ULP gives0. (#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, andSUMPRODUCTrequires equal sizes.=A1:A3*B1:B2has Excel's shape, the larger extent on each axis with#N/Awhere 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,ORandNOTapply Excel's scalar coercion. Arithmetic andVALUEread grouped and dollar-prefixed numbers.TEXTsupports scientific, fraction, conditional and fourth-section formats.LENcounts UTF-16 units, an emptyFINDorSEARCHneedle honours the start position, andTEXTBEFOREandTEXTAFTERtake their optional arguments.DCOUNTandDCOUNTAcount 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
*IFand*IFSfunction, and*IFSranges 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!, andAREASandINDEXarea selection work.AGGREGATEcodes 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
CEILINGandFLOORfamilies; variadic and range inputs inGCDandLCM; coupon-period day counts inPRICEand actual/actualACCRINT;IRR,XIRRandRATEroots (they also observe deadlines and work budgets now); theBESSELfunctions;DATEDIFandYEARFRACin both date systems.BINOM.DIST,BINOM.INV,POISSON.DIST,GAMMA.DIST,NEGBINOM.DIST,HYPGEOM.DIST,WEIBULL.DISTandBETA.DISTno longer returnNaNor infinity at boundary arguments. (#599, #647, #650, #654) - Whole-axis references and worksheet functions. Whole-row and whole-column
INDEXselections resolve at the worksheet bounds, and array operators andFILTERkeep the logical shape with compressed blank tails.FORECAST.LINEARandRANKkeep argument errors, the complex-number functions write 15 significant digits andIMDIVby zero is#NUM!,PMT,IPMTandPPMTkeep annuity precision, and case conversion uses Unicode mappings. (#590, #673) - Reference lookups and empty arrays.
DROPandTAKEwith an empty selection are#CALC!.INDIRECTreads absolute and caller-relative R1C1 text, and negativeOFFSETheights and widths extend up or left.VLOOKUP,MATCHandINDIRECTpropagate an error in their first argument;VLOOKUPreturns#N/Aon a miss and checks the return column only on a hit. (#675) - Reversed ranges are normalised on each axis.
B5:A7isA5:B7andA7:$A$5isA$5:$A7, each$staying with its own coordinate, in the parser, evaluation, relocation andROWS/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,YEARandTEXT, in every locale, as Excel reads them. (#657, @bahhajf) VALUEof an empty cell is0;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) ROWSandCOLUMNSkeep 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 Rowreference 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 anrattribute by its order instead of refusing the file. (#664, @bahhajf) - Fixed an exact lookup of
TRUEorFALSEmatching the numbers1and0(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)is2. 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 fromD1down, so equal values inD1andD2are 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'ssum_range, a lookup's table, an operand of:) or handed to one throughIF,IFERROR,IFNAorCHOOSEis 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
ΑΣinA2,=MATCH("ας",$A$1:$A$70,0)returned2for the first lookups of the column and#N/Afrom the fourth on;VLOOKUP,HLOOKUP,XMATCHandXLOOKUPshare 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 fitlookup_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,TANandATAN2over cell ranges repeating the first cell in O(N^2) time, and preserved uniform tails in elementwise lifting.ArgumentHandle::with_fixed_valueleft resolution/range accessors reading the original range expression, so functions callingrange_view()insidelift_scalar_argumentsre-evaluated the whole range on every cell and kept only element(0, 0)(=SUM(ATAN2(A1:A10000,1))took 14 s and returned10000 * ATAN2(A1,1)).with_fixed_valuenow routesresolve_once,range_view,range, andlazy_values_ownedthrough the fixed value without heap allocation on the scalarvalue()hot path (while non-lifted arguments keep reference resolution viawith_cached_value),SIN/COS/TAN/ATAN2evaluate scalars directly through central lifting, and pure non-volatile lifted calls preserve whole-axis uniform tails viabuild_tailed_range_view(charging array text budget once per uniform tail cell, matching array operators). - Fixed
set_temporal_egress/setTemporalEgressin 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_valuesandwrite_rangeinside an action index their rows together. - Fixed a stale
xl/calcChain.xmlentry 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 recalcprinting 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
boolarguments as Rust values before checking them:fz_encoding_format,fz_formula_dialect,fz_parse_options.include_spansandspan_evaluationare integers at the boundary and an undeclared value fails withFZ_STATUS_ERROR. The C header is unchanged. In Rust,fz_encoding_formatandfz_formula_dialectare now transparent structs with associated constants, and the two flags areu8.