Bug 130577 - FILEOPEN: XLSX import looses defined range definitions
Summary: FILEOPEN: XLSX import looses defined range definitions
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:xlsx
Depends on:
Blocks: XLSX-DataRange
  Show dependency treegraph
Reported: 2020-02-11 06:42 UTC by Steve Edmonds
Modified: 2024-03-12 03:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

XLSX file with named ranges (436.01 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-02-11 06:45 UTC, Steve Edmonds

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Edmonds 2020-02-11 06:42:53 UTC
Importing an XLSX file with defined ranges in formulae results in the defined name in the formulae but no cell reference and hence Error 508

Steps to Reproduce:
1.Open attached file
2.refer cell D40 (and others)

Actual Results:
Err 508

Expected Results:
Result of equation

Reproducible: Always

User Profile Reset: No

Additional Info:
Comment 1 Steve Edmonds 2020-02-11 06:45:48 UTC
Created attachment 157785 [details]
XLSX file with named ranges

From http://radiganengineering.com/download/708/
Comment 2 Steve Edmonds 2020-02-11 06:57:56 UTC
The problem seems to be that excel allows name ranges that Calc does not.
I.e. H_o/t, \delta

Naming Convention for Named Ranges in Excel

There are certain naming rules you need to know while creating Named Ranges in Excel:

    The first character of a Named Range should be a letter and underscore character(_), or a backslash(\). If it’s anything else, it will show an error. The remaining characters can be letters, numbers, special characters, period, or underscore.
    You can not use names that also represent cell references in Excel. For example, you can’t use AB1 as it is also a cell reference.
    You can’t use spaces while creating named ranges. For example, you can’t have Sales Rep as a named range. If you want to combine two words and create a Named Range, use an underscore, period or uppercase characters to create it. For example, you can have Sales_Rep, SalesRep, or SalesRep.
        While creating named ranges, Excel treats uppercase and lowercase the same way. For example, if you create a named range SALES, then you will not be able to create another named range such as ‘sales’ or ‘Sales’.
    A Named Range can be up to 255 characters long.
Comment 3 Durgapriyanka 2020-02-11 17:05:36 UTC
Thank you for reporting the bug. I can confirm the bug present in

Version: (x86)
Build ID: ec7374ff84c71edfbb30d6e4dc5b486b6df7107f
CPU threads: 2; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-11-10_21:37:30
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

and in

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-
Comment 4 QA Administrators 2022-02-11 03:40:45 UTC Comment hidden (obsolete)
Comment 5 Roman Kuznetsov 2022-03-12 14:01:47 UTC
still repro in

Version: (x64) / LibreOffice Community
Build ID: 3ccc4c123f5e78e0204d11abeab2d1a74278ca3e
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
Comment 6 QA Administrators 2024-03-12 03:14:39 UTC
Dear Steve Edmonds,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team