Bug 137846

Summary: FILEOPEN XLSX Defined name pointing to data table does not resolve source file name
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: aron.budea, attila.szucs, erack, nemeth, xiscofauli
Priority: medium Keywords: filter:xlsx
Version: 4.1 all versions   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=137847
https://bugs.documentfoundation.org/show_bug.cgi?id=116331
https://bugs.documentfoundation.org/show_bug.cgi?id=144397
https://bugs.documentfoundation.org/show_bug.cgi?id=144636
https://bugs.documentfoundation.org/show_bug.cgi?id=144643
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 137805    
Attachments: Data source file with data table from Excel
Example file with defined name referencing the data table and named range in the other file.
Screenshot of the original document side by side in Excel and Calc

Description NISZ LibreOffice Team 2020-10-29 08:15:59 UTC
Created attachment 166827 [details]
Data source file with data table from Excel

Attached Excel-made example file contains a data table with month names and a named range with month names.
Other file ha defined names referencing the data table and the named range, then using these in VLOOKUP functions.

When opened in Calc the file name of the data table referencing defined name is not resolved as can be seen in the Manage Names dialog, and the VLOOKUP using them gives Err:501 error.
The simple defined name works fine.

Steps to reproduce:
    1. Open attached files in Calc

Actual results:
Err:501 errors in column C, unresolved file name in the Manage Names dialog.

Expected results:
File name resolved in Manage Names dialog, VLOOKUP works like in Excel.

LibreOffice details:
Version: 7.1.0.0.alpha1+ (x64)
Build ID: f27c4ec5c864395f4cdaec32d7e95ff24e4f43c8
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-10-29 08:18:32 UTC
Created attachment 166828 [details]
Example file with defined name referencing the data table and named range in the other file.
Comment 2 NISZ LibreOffice Team 2020-10-29 08:21:49 UTC
Created attachment 166829 [details]
Screenshot of the original document side by side in Excel and Calc
Comment 3 Xisco Faulí 2020-11-05 10:46:48 UTC
Reproduced in

Version: 7.1.0.0.alpha1+
Build ID: 9c8ed8c8526b9b696d0bf592eb7d963950f3cef4
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

and

Version: 5.2.0.0.alpha0+
Build ID: 13d4398820ded5914f635757865e258db2db2b57
CPU Threads: 4; OS Version: Linux 5.7; UI Render: default; 
Locale: en-US (en_US.UTF-8)
Comment 4 Xisco Faulí 2020-11-05 10:47:41 UTC
@Eike, this is another name range related issue, I thought you might be interested
Comment 5 Xisco Faulí 2020-11-05 10:48:49 UTC
Also reproduced in

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 6 NISZ LibreOffice Team 2021-07-23 08:56:55 UTC
Maybe I found bug 116331 again... but let's keep this open just in case.