Bug 115214 - FILESAVE XLSX Function Syntax Error (#Name?), with a reference to an external xlsx file and Excel formula syntax
Summary: FILESAVE XLSX Function Syntax Error (#Name?), with a reference to an external...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xls, filter:xlsx
Depends on:
Blocks: XLSX Calc-External-Datalink
  Show dependency treegraph
 
Reported: 2018-01-24 22:57 UTC by Gabor Kelemen
Modified: 2019-03-02 19:28 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example data source file made with LO 5.4 (11.68 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2018-01-24 22:57 UTC, Gabor Kelemen
Details
Example file with function references to the external data source file (11.75 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2018-01-24 23:00 UTC, Gabor Kelemen
Details
Formula syntax settings used to test the bug (177.70 KB, image/png)
2018-01-24 23:07 UTC, Gabor Kelemen
Details
The example files in Calc side by side (133.58 KB, image/png)
2018-01-24 23:08 UTC, Gabor Kelemen
Details
The example data source file saved by LO6 alpha (11.67 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2018-01-24 23:17 UTC, Gabor Kelemen
Details
Example file with function references to the external data source file saved by LO6 alpha (11.72 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2018-01-24 23:20 UTC, Gabor Kelemen
Details
Data source example file in XLS from LO 6 (5.50 KB, application/vnd.ms-excel)
2018-01-26 14:15 UTC, Gabor Kelemen
Details
Example file with function reference to the external data source file saved by LO 6, in XLS (5.50 KB, application/vnd.ms-excel)
2018-01-26 14:16 UTC, Gabor Kelemen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen 2018-01-24 22:57:24 UTC
Created attachment 139345 [details]
Example data source file made with LO 5.4

These spreadsheets was created with LibreOffice 5.4.3.2 and LibreOffice Dev. 6.0. The main problem here is the functions which did not work correctly if we want to refer to an external file. We got an Error (#NAME?) message in the cell, if we use the Excel A1 Formula Syntax. Although we set the syntax to “Excel A1”, the function syntax does not look like the “Excel A1” syntax.

Steps to reproduce:
1. Create a new spreadsheet with LibreOffice Calc 5.4
2. Click on Tools then choose the options.
3. In the Option set the LibreOffice Calc Formula options just like as you can see at the attached Formula_syntax_setting.PNG file.
4. Fill the A1:A3 cells with some number.
5. Save the file as “Function_Error_Source.xlsx” or something like that.
6. Create a new spreadsheet with LibreOffice 5.4 and save as “Function_Error_Target.xlsx”. 
7. In the “Function_Error_Target.xlsx” file click on the A1 cell and then click on the “Function wizard” and choose a function (for example “MAX”). Then select the data in the “Function_Error_Source.xlsx” file (A1:A3 cells) and press OK.
Here is the example code with “Excel A1” syntax: 
MAX('file:///c:/users/teszt_admin/desktop/function_error_source.xlsx'#$sheet1.a1:A3)

Actual results:
We got an Error (#NAME?) code as a function result. If we save the file and reload the spreadsheet the function result will be the same (#NAME?). If we open this file (Function_Error_Target.xlsx) with Microsoft Excel we got an error message of course.

Expected results:
If we choose the Excel A1 syntax the function syntax should be the same as in Microsoft Excel. There is no difference between the Excel A1 and Calc A1 syntax when we use a function in LibreOffice. But if we use the Calc A1 syntax for a function we have not got  a (#NAME?) result. 


Version: 5.4.3.2
Build ID: 92a7159f7e4af62137622921e809f8546db437e5
CPU threads: 4; OS: Windows 6.1; UI render: default; 
Locale: hu-HU (hu_HU); Calc: group

Version: 6.0.0.1.0+
Build ID: c678dc5309741097d9b0265f03dd279a8794d256
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@42, Branch:libreoffice-6-0, Time: 2017-12-28_04:21:33
Locale: hu-HU (hu_HU); Calc: group
Comment 1 Gabor Kelemen 2018-01-24 23:00:44 UTC
Created attachment 139346 [details]
Example file with function references to the external data source file
Comment 2 Gabor Kelemen 2018-01-24 23:07:19 UTC
Created attachment 139347 [details]
Formula syntax settings used to test the bug
Comment 3 Gabor Kelemen 2018-01-24 23:08:05 UTC
Created attachment 139348 [details]
The example files in Calc side by side
Comment 4 Gabor Kelemen 2018-01-24 23:17:24 UTC
Created attachment 139349 [details]
The example data source file saved by LO6 alpha
Comment 5 Gabor Kelemen 2018-01-24 23:20:35 UTC
Created attachment 139350 [details]
Example file with function references to the external data source file saved by LO6 alpha
Comment 6 m.a.riosv 2018-01-25 22:14:59 UTC
Looks like a duple of
https://bugs.documentfoundation.org/show_bug.cgi?id=76047
Comment 7 Gabor Kelemen 2018-01-26 13:57:03 UTC
(In reply to m.a.riosv from comment #6)
> Looks like a duple of
> https://bugs.documentfoundation.org/show_bug.cgi?id=76047

In that one they claims that in XLS format they don't see the problem.
This one affects XLS too, I'm attaching such files for reference.
Comment 8 Gabor Kelemen 2018-01-26 14:15:21 UTC
Created attachment 139373 [details]
Data source example file in XLS from LO 6
Comment 9 Gabor Kelemen 2018-01-26 14:16:00 UTC
Created attachment 139374 [details]
Example file with function reference to the external data source file saved by LO 6, in XLS
Comment 10 Buovjaga 2018-02-16 18:45:49 UTC
Repro from scratch.

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: 26783527823883ccd5bbf3b9e014a0a3c1e3a022
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on February 16th 2018