You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: ADDRESS returns "!R2C3" when sheetName is empty (should return "R2C3") #1641
ADDRESS(2,3,1,FALSE(),) returns !R2C3 instead of R2C3.
When the sheetName argument is an empty string (either from an empty cell reference or trailing comma), HyperFormula still prepends the ! separator. Excel ignores empty sheetName and returns the address without prefix.
Root cause
In src/interpreter/plugin/AddressPlugin.ts:70, the condition:
if(sheetName!==undefined&&sheetName!==null)
does not exclude empty strings. Fix: add && sheetName !== ''.
Reproduction steps
consthf=HyperFormula.buildFromArray([['=ADDRESS(2,3,1,FALSE(),)'],// empty sheetName — should be "R2C3", bug: "!R2C3"],{licenseKey: 'gpl-v3'})hf.getCellValue({sheet: 0,row: 0,col: 0})// Actual: "!R2C3"// Expected: "R2C3" (Excel behavior, Microsoft 365 desktop)
Activity
HF-160: ADDRESS drops the sheet separator when sheetName is empty (#1739