diff --git a/crates/core/src/parse.rs b/crates/core/src/parse.rs index a9901db396..ffad72c849 100644 --- a/crates/core/src/parse.rs +++ b/crates/core/src/parse.rs @@ -49,6 +49,19 @@ pub fn parse_number_text_in(s: &str, sys: DateSystem) -> Option { parse_numeric(s.trim(), sys).map(|(n, _)| n) } +/// Whether typed cell input is meant as a formula: it starts with `=`, or, as Lotus 1-2-3 users +/// type it, with `+` or `-` and isn't a number on its own (`+5+4` is `=+5+4`, `-5` the number -5, +/// a lone `+` or `-` text). A leading space or apostrophe makes the input text. Callers parse +/// the formula; a `+` or `-` entry that doesn't parse (`--`) stays text, as in Excel. So does `+` +/// before a time (`+1:30`), while `-1:30` is a formula (rows 1 to 30), as Excel for the web does. +pub fn starts_formula(input: &str) -> bool { + input.starts_with('=') + || (input.len() > 1 + && input.starts_with(['+', '-']) + && parse_number_text(input).is_none() + && !input.strip_prefix('+').is_some_and(|time| time.contains(':') && parse_number_text(time).is_some())) +} + /// Text that Excel's "Number Stored as Text" check flags: it would be a number if typed (signs, /// thousands separators, currency, percent, exponent, a parenthesised negative). Dates, times and /// fractions kept as text are not flagged, as in Excel. @@ -577,6 +590,19 @@ mod tests { assert_eq!(p("1.2.3.4").value, Value::text("1.2.3.4")); } + #[test] + fn a_leading_sign_starts_a_formula_unless_the_entry_is_a_number() { + // #2023: Excel reads `+5+4` as `=+5+4`, as Lotus 1-2-3 did. + for s in ["=1", "=", "+5+4", "-5+4", "--5", "+-5", "-.5*2", "-3/4", "+A1", "-SUM(1,2)", "+(5+4)", "-abc", "--", "-1:30", "+1/30", "-1/30"] { + assert!(starts_formula(s), "{s}"); + } + // Signed numbers, percentages and currency stay numbers; a lone sign, a leading space or + // apostrophe, `+` before a time and other text stay text. + for s in ["+5", "-5", "+5%", "-$5", "-1e3", "+.5", "-1,234.5", "+", "-", " +5+4", "'+5+4", "5+4", "", "a-b", "+1:30", "+0:30:15"] { + assert!(!starts_formula(s), "{s}"); + } + } + #[test] fn dates_and_times() { assert_eq!(p("10/7/2026").value, Value::Number(46302.0)); diff --git a/crates/engine/src/cmd/edit/cell.rs b/crates/engine/src/cmd/edit/cell.rs index c3fe443856..3022b0c426 100644 --- a/crates/engine/src/cmd/edit/cell.rs +++ b/crates/engine/src/cmd/edit/cell.rs @@ -8,14 +8,12 @@ use super::{ /// Typing `=PY(` doesn't make a Python cell; this says what does. pub(crate) const PY_FORMULA: &str = "Python cells are made with the python.set command (the code as `code`), not by typing =PY(…)."; -/// Whether typing `input` into a cell enters a formula: `=…`, or `+…`/`-…` followed by a name or -/// a parenthesis (not a number), as Excel takes `+SUM(1)`. +/// Whether typing `input` into a cell is meant as a formula: `=…`, or `+…`/`-…` when the entry +/// isn't a number on its own, as Excel takes `+5+4` and `+SUM(1)` (see +/// [`gridcraft_core::parse::starts_formula`]). A `+…`/`-…` entry that doesn't parse as a formula +/// still enters as text (`--`), see [`input_to_cell`]. pub(crate) fn is_formula_input(input: &str) -> bool { - input.starts_with('=') - || (input.len() > 1 - && (input.starts_with('+') || input.starts_with('-')) - && gridcraft_core::parse::parse_number_text(input).is_none() - && input.chars().nth(1).is_some_and(|c| c.is_ascii_alphabetic() || c == '(')) + gridcraft_core::parse::starts_formula(input) } /// What typing `input` into a cell produces (constant or formula, plus an automatic number @@ -35,7 +33,15 @@ pub(crate) fn input_to_cell(input: &str, sheet: usize, at: CellRef, wb: &mut gri if is_formula && gridcraft_model::python::is_py_formula(input) { return Err(EngineError::Other(PY_FORMULA.into())); } - if is_formula { + // As in Excel, a `+` or `-` entry is a formula when it reads as one (`+5+4` enters `=+5+4`) + // and text when it doesn't (`--`, `+49 170 1234567`); only `=` entries are refused. + if is_formula + && !input.starts_with('=') + && let Ok(cell) = input_to_cell(&format!("={input}"), sheet, at, wb) + { + return Ok(cell); + } + if input.starts_with('=') { let body = input.strip_prefix('=').unwrap_or(input); let expr = wb.name_call_case(parse_typed_formula(body)?); check_arg_counts(&expr)?; diff --git a/crates/engine/src/display.rs b/crates/engine/src/display.rs index e6766ff59b..9f578acfc4 100644 --- a/crates/engine/src/display.rs +++ b/crates/engine/src/display.rs @@ -51,12 +51,16 @@ fn text_needs_quote_prefix(t: &str, sys: gridcraft_core::date::DateSystem) -> bo if t.is_empty() { return false; } - let mut chars = t.chars(); - let (first, second) = (chars.next(), chars.next()); + let first = t.chars().next(); if matches!(first, Some('=' | '\'')) { return true; } - if matches!(first, Some('+' | '-')) && second.is_some_and(|c| c.is_ascii_alphabetic() || c == '(') { + // A `+` or `-` entry that reads as a formula becomes one (`+5+4`, `-abc`); one that doesn't + // stays text (`--`, `+49 170 1234567`), as `input_to_cell` decides it. + if matches!(first, Some('+' | '-')) + && gridcraft_core::parse::starts_formula(t) + && crate::cmd::edit::parse_typed_formula(t).is_ok_and(|e| crate::cmd::edit::check_arg_counts(&e).is_ok()) + { return true; } !matches!(gridcraft_core::parse::parse_input(t, sys).value, Value::Text(ref x) if x.as_ref() == t) diff --git a/crates/engine/src/recent.rs b/crates/engine/src/recent.rs index 0a1bba2dc2..2bd8a375cb 100644 --- a/crates/engine/src/recent.rs +++ b/crates/engine/src/recent.rs @@ -154,7 +154,9 @@ mod tests { assert_eq!(functions_in_formula("+SUM(1)"), ["SUM"]); assert_eq!(functions_in_formula("-ABS(A1)"), ["ABS"]); assert!(functions_in_formula("-5").is_empty() && functions_in_formula("+1e3").is_empty(), "numbers"); - assert!(functions_in_formula("+").is_empty() && functions_in_formula("- SUM(1)").is_empty(), "not formulas"); + assert!(functions_in_formula("+").is_empty() && functions_in_formula("--").is_empty(), "not formulas"); + // A sign before a space still starts a formula, as Excel takes `- SUM(1)` (#2023). + assert_eq!(functions_in_formula("- SUM(1)"), ["SUM"]); } #[test] diff --git a/crates/engine/src/tests.rs b/crates/engine/src/tests.rs index 1843ae0c51..e1eb54714f 100644 --- a/crates/engine/src/tests.rs +++ b/crates/engine/src/tests.rs @@ -343,6 +343,84 @@ fn enter_values_and_formulas() { assert_eq!(crate::display::cell_text(&d.wb, sh, CellRef::parse("B1").unwrap()), "12%"); } +#[test] +fn a_leading_plus_or_minus_starts_a_formula() { + // #2023: like Excel (and Lotus 1-2-3 before it), typing `+5+4` enters the formula `=+5+4`. + let mut s = s(); + let input = |s: &Session, a: &str| s.doc().unwrap().wb.active().unwrap().cell(CellRef::parse(a).unwrap()).map(|c| c.input_text()); + for (cell, typed, value) in [ + ("A1", "+5+4", 9.0), + ("A2", "-5+4", -1.0), + ("A3", "--5", 5.0), + ("A4", "-3/4", -0.75), + ("A5", "+A1*2", 18.0), + ("A6", "-(A1)", -9.0), + ("A7", "+1/30", 1.0 / 30.0), + ("A8", "-1/30", -1.0 / 30.0), + ] { + s.execute("cell.set", json!({"cell": cell, "input": typed})).unwrap_or_else(|e| panic!("{typed}: {e}")); + assert_eq!(input(&s, cell), Some(format!("={typed}")), "{typed}"); + assert_eq!(v(&s, cell), Value::Number(value), "{typed}"); + } + // A signed number is a number, a lone sign is text, and an apostrophe keeps the text. + for (typed, value) in [ + ("+5", Value::Number(5.0)), + ("-5", Value::Number(-5.0)), + ("-12%", Value::Number(-0.12)), + ("-$5", Value::Number(-5.0)), + ("-", Value::text("-")), + ("+", Value::text("+")), + ("'+5+4", Value::text("+5+4")), + ] { + s.execute("cell.set", json!({"cell": "B1", "input": typed})).unwrap(); + assert_eq!(v(&s, "B1"), value, "{typed}"); + assert!(!input(&s, "B1").is_some_and(|t| t.starts_with('=')), "{typed}"); + } + // Text that would read as a formula is edited with its apostrophe, so confirming the editor + // unchanged keeps it text; text that wouldn't is edited as it is. + for (typed, shown) in [ + ("'+5+4", "'+5+4"), + ("'-5+4", "'-5+4"), + ("'+1-555-1234", "'+1-555-1234"), + ("'-abc", "'-abc"), + ("--", "--"), + ("+49 170 1234567", "+49 170 1234567"), + ("+1:30", "+1:30"), + ] { + s.execute("cell.set", json!({"cell": "B2", "input": typed})).unwrap(); + let before = v(&s, "B2"); + let edit = { + let d = s.doc().unwrap(); + crate::display::edit_text(&d.wb, d.wb.active().unwrap(), CellRef::parse("B2").unwrap()) + }; + assert_eq!(edit, shown, "{typed}"); + s.execute("cell.set", json!({"cell": "B2", "input": edit})).unwrap(); + assert_eq!(v(&s, "B2"), before, "{typed} stays text after an unchanged edit"); + } + // As observed in Excel for the web, an entry that doesn't read as a formula stays text, and + // one that does but names nothing known is #NAME?. Only `=` entries are refused. + for typed in ["--", "-----", "+5+", "+49 170 1234567", "+1:30"] { + s.execute("cell.set", json!({"cell": "C1", "input": typed})).unwrap_or_else(|e| panic!("{typed}: {e}")); + assert_eq!(v(&s, "C1"), Value::text(typed), "{typed}"); + assert_eq!(input(&s, "C1").as_deref(), Some(typed), "{typed}"); + } + s.execute("cell.set", json!({"cell": "C2", "input": "- item"})).unwrap(); + assert_eq!(v(&s, "C2"), Value::Error(gridcraft_core::CellError::Name)); + // Excel for the web keeps `+1:30` as text (above) but reads `-1:30` as a formula (rows 1 to 30). + s.execute("cell.set", json!({"cell": "C40", "input": "-1:30"})).unwrap(); + assert_eq!(input(&s, "C40").as_deref(), Some("=-1:30")); + let e = s.execute("cell.set", json!({"cell": "C1", "input": "=--"})).unwrap_err().to_string(); + assert!(e.contains("problem with this formula"), "{e}"); + assert_eq!(v(&s, "C1"), Value::text("+1:30"), "a refused entry keeps the cell"); + // Pasted or split by Text to Columns, the same rule applies. + s.execute("edit.paste", json!({"at": "D1", "text": "--\t-5+4\n"})).unwrap(); + assert_eq!(v(&s, "D1"), Value::text("--")); + assert_eq!(v(&s, "E1"), Value::Number(-1.0)); + s.execute("cell.set", json!({"cell": "F1", "input": "a,--,b"})).unwrap(); + s.execute("data.textToColumns", json!({"range": "F1", "delimiters": [","]})).unwrap(); + assert_eq!([v(&s, "F1"), v(&s, "G1"), v(&s, "H1")], [Value::text("a"), Value::text("--"), Value::text("b")]); +} + #[test] fn formulas_with_the_wrong_argument_count_are_refused_on_entry() { // #363: =DATEDIF(start, end) was stored and showed #VALUE!. Like Excel, entry refuses it and diff --git a/crates/ui-egui/src/formula_locale.rs b/crates/ui-egui/src/formula_locale.rs index 4559bc4874..477bee9a28 100644 --- a/crates/ui-egui/src/formula_locale.rs +++ b/crates/ui-egui/src/formula_locale.rs @@ -21,20 +21,25 @@ pub(crate) fn canonical( if locale == FormulaLocale::En || wb.sheet(sheet).is_some_and(|sh| wb.styles.get(sh.style_id(cell)).num_fmt.as_str() == "@") { return Ok(text.to_string()); } - // Same formula detection as the engine's `input_to_cell` (no trimming: " =1" is text). let body = text; - if body.starts_with('=') - || ((body.starts_with('+') || body.starts_with('-')) && body.chars().nth(1).is_some_and(|c| c.is_ascii_alphabetic() || c == '(')) - { + // Decimal-comma number entry follows the same preference, without rewriting text or dates. + let normalized = body.trim().replace(locale.decimal_separator(), "."); + let number = normalized.strip_suffix('%').unwrap_or(&normalized); + let is_number = number.parse::().is_ok_and(f64::is_finite); + // Same formula detection as the engine's `input_to_cell` (no trimming: " =1" is text): a `+` + // or `-` entry is a formula when it reads as one and text when it doesn't, and a signed number + // in this locale (`-1,5`) is a number. The apostrophe keeps the engine from reading such text + // again in English syntax. + if !body.starts_with('=') && !is_number && gridcraft_engine::core::parse::starts_formula(body) { + return Ok(canonical(&format!("={body}"), locale, wb, sheet, cell).unwrap_or_else(|_| format!("'{body}"))); + } + if body.starts_with('=') { let known = |name: &str| wb.name(name, sheet).is_some() || wb.table(name).is_some(); // Match the engine's existing convenience for missing closing parentheses. let expr = formula::parse_closing_parens(body, |text| formula::parse_input(text, locale, known)); return Ok(format!("={}", formula::print(&expr?))); } - // Decimal-comma number entry follows the same preference, without rewriting text or dates. - let normalized = body.trim().replace(locale.decimal_separator(), "."); - let number = normalized.strip_suffix('%').unwrap_or(&normalized); - if number.parse::().is_ok_and(f64::is_finite) { + if is_number { return Ok(normalized); } Ok(text.to_string()) @@ -144,6 +149,7 @@ pub(crate) fn display_template(text: &str, locale: FormulaLocale, wb: &Workbook, #[cfg(test)] mod tests { use super::*; + use gridcraft_engine::core::CellRef; /// The hint for `name`, empty when there is none. fn sig(name: &str, locale: FormulaLocale, language: Language) -> String { @@ -175,4 +181,23 @@ mod tests { assert_eq!(description("SUMIFS", Es, Language::Es).as_deref(), Some("Adds the cells that meet every condition.")); assert_eq!(sig("IF", En, Language::En), "IF(logical_test, [value_if_true], [value_if_false])"); } + + #[test] + fn a_leading_sign_starts_a_formula_in_spanish_too() { + // #2023: `+5+4` is a formula in every formula language; in Spanish `-1,5` stays the + // number -1.5 rather than becoming a formula. + let wb = Workbook::new(); + let at = CellRef::parse("A1").unwrap(); + let entry = |text: &str| canonical(text, FormulaLocale::Es, &wb, 0, at).ok(); + assert_eq!(entry("+5+4").as_deref(), Some("=+5+4")); + assert_eq!(entry("-5+4").as_deref(), Some("=-5+4")); + assert_eq!(entry("-SUMA(1;2)").as_deref(), Some("=-SUM(1,2)")); + assert_eq!(entry("-1,5").as_deref(), Some("-1.5")); + assert_eq!(entry("+2,5%").as_deref(), Some("+2.5%")); + assert_eq!(entry("-").as_deref(), Some("-")); + // An entry that doesn't read as a formula stays text; only `=` entries are refused. + assert_eq!(entry("--").as_deref(), Some("'--")); + assert_eq!(entry("+34 612 345 678").as_deref(), Some("'+34 612 345 678")); + assert_eq!(entry("=--"), None); + } } diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 16c17effe8..71c0a14cb1 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -1,6 +1,6 @@ # UI parity -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (AutoSum on one cell proposes its range in the editor, #1834; earlier: Quick Analysis, Ctrl+Q (#791); earlier: validation list rows keep to their slot height whatever the font, and the "More entries not shown" note is translated; earlier: the searched validation list shows its eight rows, keeps the highlight in view and opens above a cell near the bottom of the window; earlier: the dropdown arrow's full list reads its source once within the same budget, draws only its visible rows and shows eight of them; earlier: a searched validation list reads at most 200,000 cells of its source; earlier: Find and Replace keeps workbook Undo/Redo available while a button has keyboard focus; text fields keep their own Undo; earlier: punctuation shortcuts follow the keyboard layout's characters; earlier: preserve centered emoji and symbol fallback placement; earlier: preserve leading and trailing blank cell lines; earlier: align wrapped and unwrapped cells; earlier: CJK title baseline regression and mixed-script rendering validation; earlier: form controls: buttons, sliders and spin buttons on the sheet; earlier: Highlight the active cell's row, a global preference in File › Options › General; earlier: a linked cell's menu edits, opens or removes the link; earlier: Display options for this workbook: sheet tabs and scroll bars; earlier: dragging over row or column headers in point mode extends the reference; earlier: a picture on the system clipboard pastes as a floating picture at the active cell with Cmd/Ctrl+V or Paste (#699); earlier: frozen columns keep their text, gridlines and merged borders whole while the sheet scrolls (#2544); earlier: every Paste Special option has its access key; earlier: the Draw tab's live stroke preview uses the pen's colour and thickness; earlier: copy quotes only cells with a tab or line break, as Excel does; earlier: Ctrl+. Next Corner of Selection; earlier: dragging the selection's border onto data asks before replacing it; earlier: RefEdit reference boxes in dialogs: Goal Seek, Solver and Data Analysis use them, the arrow keys select while a dialog is collapsed and F4 cycles a reference's anchors; earlier: Python cells: Python mode in the formula bar; earlier: Insert › Equation and the equation editor; earlier: every floating object selects, resizes from eight handles and deletes with the keyboard; earlier: Formulas › Error Checking › Trace Error; trace arrows stay through a zoom (#3097); earlier: Page Setup sets the page order, Down, then over or Over, then down, which printing, the print preview, Page Break Preview and Page Layout view follow; earlier: Formulas › Function Library as labelled buttons with category menus; Recently Used and the Insert Function categories; Esc leaves a File-page text field before closing the view; earlier: checkbox cells print as boxes; Ctrl+arrow and Ctrl+Shift+arrow while pointing a formula reference; editing a hyperlink loads its existing fields; AutoSum over a selected row puts its total to the right; ribbon catalog count 276 / 292; earlier: typing into a cell with a list validation searches its dropdown; Enter/Tab take the highlighted entry) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4 +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (a leading + or - starts a formula, #2023; earlier: AutoSum on one cell proposes its range in the editor, #1834; earlier: Quick Analysis, Ctrl+Q (#791); earlier: validation list rows keep to their slot height whatever the font, and the "More entries not shown" note is translated; earlier: the searched validation list shows its eight rows, keeps the highlight in view and opens above a cell near the bottom of the window; earlier: the dropdown arrow's full list reads its source once within the same budget, draws only its visible rows and shows eight of them; earlier: a searched validation list reads at most 200,000 cells of its source; earlier: Find and Replace keeps workbook Undo/Redo available while a button has keyboard focus; text fields keep their own Undo; earlier: punctuation shortcuts follow the keyboard layout's characters; earlier: preserve centered emoji and symbol fallback placement; earlier: preserve leading and trailing blank cell lines; earlier: align wrapped and unwrapped cells; earlier: CJK title baseline regression and mixed-script rendering validation; earlier: form controls: buttons, sliders and spin buttons on the sheet; earlier: Highlight the active cell's row, a global preference in File › Options › General; earlier: a linked cell's menu edits, opens or removes the link; earlier: Display options for this workbook: sheet tabs and scroll bars; earlier: dragging over row or column headers in point mode extends the reference; earlier: a picture on the system clipboard pastes as a floating picture at the active cell with Cmd/Ctrl+V or Paste (#699); earlier: frozen columns keep their text, gridlines and merged borders whole while the sheet scrolls (#2544); earlier: every Paste Special option has its access key; earlier: the Draw tab's live stroke preview uses the pen's colour and thickness; earlier: copy quotes only cells with a tab or line break, as Excel does; earlier: Ctrl+. Next Corner of Selection; earlier: dragging the selection's border onto data asks before replacing it; earlier: RefEdit reference boxes in dialogs: Goal Seek, Solver and Data Analysis use them, the arrow keys select while a dialog is collapsed and F4 cycles a reference's anchors; earlier: Python cells: Python mode in the formula bar; earlier: Insert › Equation and the equation editor; earlier: every floating object selects, resizes from eight handles and deletes with the keyboard; earlier: Formulas › Error Checking › Trace Error; trace arrows stay through a zoom (#3097); earlier: Page Setup sets the page order, Down, then over or Over, then down, which printing, the print preview, Page Break Preview and Page Layout view follow; earlier: Formulas › Function Library as labelled buttons with category menus; Recently Used and the Insert Function categories; Esc leaves a File-page text field before closing the view; earlier: checkbox cells print as boxes; Ctrl+arrow and Ctrl+Shift+arrow while pointing a formula reference; editing a hyperlink loads its existing fields; AutoSum over a selected row puts its total to the right; ribbon catalog count 276 / 292; earlier: typing into a cell with a list validation searches its dropdown; Enter/Tab take the highlighted entry) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4 Interaction, controls and feel, against Excel. Part of [target-app-parity.md](target-app-parity.md). **UI/UX fidelity: ~55% ready, 50–80 h** (estimated). Ribbon command coverage is measured @@ -59,7 +59,7 @@ this logic, with one undo step. | Highlight the active cell's row (no Excel equivalent; Focus Cell tints the row and the column) | done (11-03): File › Options › General, off by default; a preference for every sheet and workbook, nothing saved in the file. Tints over the fills and under the text, in Normal and Page Layout views (`options.highlightActiveRow`) | | Fill handle: drag to fill series, double-click to fill down, right-drag menu | fill done (Ctrl+drag swaps copy and series; month patterns use the workbook's 1900 or 1904 date system); right-drag menu partial: Copy Cells, Fill Series, Fill Formatting Only, Fill Without Formatting, and from a date Fill Days, Fill Weekdays, Fill Months and Fill Years, then Series…; a left-drag leaves an Auto Fill Options button with the same fill choices (gone once the workbook changes or the selection moves); Linear/Growth Trend and Flash Fill missing | | Drag-move and drag-copy cells (border drag, Ctrl/Option, Shift to insert) | border drag moves (M3) and asks "There's already data here. Do you want to replace it?" before replacing cells that hold data (`range.move`, #3136); Ctrl/Option to copy and Shift to insert are not wired to the border drag yet (reorder whole columns by their headers instead) | -| In-cell editing, Enter/Tab movement, Alt/Option+Enter line breaks | done | +| In-cell editing, Enter/Tab movement, Alt/Option+Enter line breaks | done; a leading `+` or `-` starts a formula, as in Excel (`+5+4` enters `=+5+4`, #2023) | | Point mode (click/drag/arrow references), reference colouring, F4 | done; dragging over row or column headers points at whole rows or columns (`A:C`, `2:5`); Command/Ctrl-click adds separate arguments with the edit's locale separator, and Shift-click extends the current reference from a fixed anchor on the same sheet. Pointer-event regressions cover repeated/reversed selections, manual separators, sheet switches and keyboard continuation. AutoSum on one cell leaves its proposed range pointed and selected (#1834) | | Number-format colors (`[Green]`, `[Color1]`–`[Color56]`) | Rendered in grid and PDF from shared RGB mappings (#1452) | | AutoComplete in columns, function autocomplete and argument tips | done; cell helpers clip to the worksheet and hide when the editor scrolls out (#200) | @@ -270,6 +270,7 @@ scrollbar bugs 2–4 · pixel/feel pass against observed Excel 7–12. | Date | Change | Summary | |---|---|---| +| 2026-11-19 | minor | Typing a leading `+` or `-` starts a formula whenever the entry isn't a number on its own, as in Excel: `+5+4` enters `=+5+4` and `-5+4` enters `=-5+4` (they stayed text; only a letter or `(` after the sign started one). `+5`, `-5` and `-$5` stay numbers, and a lone `+` or `-` and an entry that doesn't read as a formula (`--`, `+49 170 1234567`) stay text, as observed in Excel for the web; only `=` entries are refused (#2023) | | 2026-11-19 | minor | AutoSum from the ribbon or keyboard on one cell proposes `=SUM(range)` in the editor instead of entering it, with the range pointed and selected: a click, drag, arrow key or typing replaces it and Enter enters it, as in Excel. With nothing to sum the caret waits inside `=SUM()`. A block still gets its totals at once, and programmatic `formulas.autoSum` is unchanged (#1834) | | 2026-11-15 | minor | The rows of both validation list popups are drawn in slots of exactly the row height the popup scrolls by, so a font whose text is laid out a pixel taller than its nominal line height no longer pushes the last visible row under the "More entries not shown" note (seen with the pinned test fonts, not with the fonts of a desktop install). That note is translated in all 18 interface catalogs, and the validation-list UI tests run on the pinned font set | | 2026-11-14 | minor | The searched validation list measures its rows at their real height, like the dropdown arrow's list: it shows eight rows instead of six, the highlighted row stays in view and the last entries of a long list can be reached. It opens above the cell when it would run past the bottom of the window, measures its width once per search instead of every frame, and its "More entries not shown" note goes through the interface translations. Typing over the open dropdown drops the entries the dropdown had read |