Bug 170292 - FILESAVE: XLS -> XLSX Handle cell references in definedNames
Summary: FILESAVE: XLS -> XLSX Handle cell references in definedNames
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
26.8.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Karthik
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-11 04:18 UTC by Karthik
Modified: 2026-01-11 04:19 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
XLS File (178.00 KB, application/vnd.ms-excel)
2026-01-11 04:19 UTC, Karthik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karthik 2026-01-11 04:18:42 UTC
Description:
Open the attached XLS file and save is as XLSX, Excel throws an error when opening the resulting file.

We are exporting cell references in definedName. Ex: "cat1" is a valid cell reference, this can't be used in Named Ranges/Formulas, but we are not handling this during XLSX export.

Solution is to add underscore to definedNames which are valid cell references.

Actual Results:
 

Expected Results:
 


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 22; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Calc: threaded
Comment 1 Karthik 2026-01-11 04:19:50 UTC
Created attachment 204998 [details]
XLS File