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 (allotropia)
Modified: 2023-09-22 03:16 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 (allotropia)
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 (allotropia)
Details
Formula syntax settings used to test the bug (177.70 KB, image/png)
2018-01-24 23:07 UTC, Gabor Kelemen (allotropia)
Details
The example files in Calc side by side (133.58 KB, image/png)
2018-01-24 23:08 UTC, Gabor Kelemen (allotropia)
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 (allotropia)
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 (allotropia)
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 (allotropia)
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 (allotropia)
Details
The example files after selecting the MAX functions target with Excel A1 syntax enabled (45.34 KB, image/png)
2021-09-21 14:27 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 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 (allotropia) 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 (allotropia) 2018-01-24 23:07:19 UTC
Created attachment 139347 [details]
Formula syntax settings used to test the bug
Comment 3 Gabor Kelemen (allotropia) 2018-01-24 23:08:05 UTC
Created attachment 139348 [details]
The example files in Calc side by side
Comment 4 Gabor Kelemen (allotropia) 2018-01-24 23:17:24 UTC
Created attachment 139349 [details]
The example data source file saved by LO6 alpha
Comment 5 Gabor Kelemen (allotropia) 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 (allotropia) 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 (allotropia) 2018-01-26 14:15:21 UTC
Created attachment 139373 [details]
Data source example file in XLS from LO 6
Comment 9 Gabor Kelemen (allotropia) 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
Comment 11 QA Administrators 2021-03-02 03:47:21 UTC Comment hidden (obsolete)
Comment 12 NISZ LibreOffice Team 2021-09-21 14:27:19 UTC
Created attachment 175176 [details]
The example files after selecting the MAX functions target with Excel A1 syntax enabled

Still a problem in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 770dcb1f717d576facf31efed14bee403e1a7155
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Downloading attachment  139345 [details] and attachment 139346 [details] then reselecting the MAX functions  range in the Function Wizard results in #NAME? error. Resulting formula is:
=MAX('file:///c:/users/kelemengabo/downloads/function_error_source.xlsx'#$sheet1.a$1:A$3)

Works fine with Calc A1 formula syntax enabled, the formula is:
=MAX('file:///C:/Users/kelemengabo/Downloads/Function_Error_Source.xlsx'#$Sheet1.A$1:A$3)
Comment 13 QA Administrators 2023-09-22 03:16:41 UTC
Dear Gabor Kelemen,

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

MassPing-UntouchedBug