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: 2022-03-12 14:02 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