diff --git a/CHANGELOG.md b/CHANGELOG.md index 24ecffc1c..60820c67a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Fixed + +- Fixed the `ADDRESS` function to omit the sheet separator (`!`) when the `sheetName` argument is an empty string, consistently with Excel, in both A1 and R1C1 styles. [#1739](https://github.com/handsontable/hyperformula/pull/1739) + ## [3.4.0] - 2026-08-10 ### Added diff --git a/src/interpreter/plugin/AddressPlugin.ts b/src/interpreter/plugin/AddressPlugin.ts index 7e37a42e4..b0ab810dd 100644 --- a/src/interpreter/plugin/AddressPlugin.ts +++ b/src/interpreter/plugin/AddressPlugin.ts @@ -67,7 +67,7 @@ export class AddressPlugin extends FunctionPlugin implements FunctionPluginTypec const colLetter = columnIndexToLabel(col - 1) let sheetPrefix = '' - if (sheetName !== undefined && sheetName !== null) { + if (sheetName !== undefined && sheetName !== null && sheetName !== '') { sheetPrefix = `${sheetName}!` }