Bug 127487 - Incorrect return of data from MATCH function referencing a sheet in another document.
Summary: Incorrect return of data from MATCH function referencing a sheet in another d...
Status: RESOLVED DUPLICATE of bug 89013
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2.7.1 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-11 01:01 UTC by Don Anderson
Modified: 2019-10-09 23:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
PDF of correct results (28.00 KB, application/pdf)
2019-09-11 14:33 UTC, Don Anderson
Details
PDF of erroneous results (28.67 KB, application/pdf)
2019-09-11 14:35 UTC, Don Anderson
Details
PDF of erroneous results with recalculate (28.69 KB, application/pdf)
2019-09-11 14:36 UTC, Don Anderson
Details
Spreadsheet that fails (38.09 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-09-11 15:01 UTC, Don Anderson
Details
Explanation of MATCH function usage. (1.12 KB, text/plain)
2019-09-12 01:14 UTC, Don Anderson
Details
File with incorrect result, see row 3 (38.03 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-09 23:08 UTC, Don Anderson
Details
Supporting file (5.32 MB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-09 23:09 UTC, Don Anderson
Details
Supporting file (4.82 MB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-09 23:10 UTC, Don Anderson
Details
Supporting file (4.44 MB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-09 23:11 UTC, Don Anderson
Details
Supporting file (3.94 MB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-09 23:12 UTC, Don Anderson
Details
Supporting file (5.38 MB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-09 23:12 UTC, Don Anderson
Details
Supporting file (4.41 MB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-09 23:13 UTC, Don Anderson
Details
Supporting file (3.62 MB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-09 23:13 UTC, Don Anderson
Details
Supporting file (4.39 MB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-09 23:14 UTC, Don Anderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Don Anderson 2019-09-11 01:01:09 UTC
The the Calc document consists of one sheet which references and summarizes sheets in 8 other documents.

This document/sheet works correctly in LibreOffice Calc 6.2.5.2.  It does not work in 6.2.7 or 6.3.1.

In cell $B$3, $C$3, ...$I$3 is 'file:///Users/donanderson/Desktop/New Highs/Stock Market SSO-SDS 2006.ods'#$Control.$B$9  The file name changes for each of the 8 files.

In 'file:///...$Control.$B$9 is =MATCH(999999,$'Base Data'.$A$1:$'Base Data'.$A$9999,1)  Column $A consists of dates in date sequence.  The purpose of this function is to return the row number of the last entry in the 'Data Base' sheet.

The first 4 'Data Base' sheets have columns A thru BT with various number of rows(3334-4960) and return the correct value.  The last 4 'Data Base' sheets have columns A thru CI with various number of rows (3319-3334) and return a 0 value (Date 12/30/1899).

When using 6.2.7 or 6.3.1 pressing Fn9 Recalculate multiple times will get the correct value for some of the files sometimes.

This occurs with and without multi-threaded calculation enabled and with and without Iterations.
Comment 1 m_a_riosv 2019-09-11 12:44:41 UTC
Please attach a sample file.
Comment 2 Don Anderson 2019-09-11 14:33:53 UTC
Created attachment 154105 [details]
PDF of correct results
Comment 3 Don Anderson 2019-09-11 14:35:23 UTC
Created attachment 154106 [details]
PDF of erroneous results
Comment 4 Don Anderson 2019-09-11 14:36:15 UTC
Created attachment 154107 [details]
PDF of erroneous results with recalculate
Comment 5 m_a_riosv 2019-09-11 14:57:11 UTC
Sorry but pdfs can't help in this case, a minimal spreadsheet sample file where to reproduce the issue is needed. Thks.
Comment 6 Don Anderson 2019-09-11 15:01:26 UTC
Created attachment 154109 [details]
Spreadsheet that fails
Comment 7 m_a_riosv 2019-09-11 21:54:23 UTC
I can't find any MATCH on the sample file.

Verify there are the same options on Menu/Tools/Options/LibreOffice calc/Calculate
Comment 8 Don Anderson 2019-09-12 01:14:26 UTC
Created attachment 154121 [details]
Explanation of MATCH function usage.
Comment 9 QA Administrators 2019-09-12 02:51:56 UTC Comment hidden (obsolete)
Comment 10 m_a_riosv 2019-09-12 10:51:07 UTC
Maybe in relation with this bug https://bugs.documentfoundation.org/show_bug.cgi?id=89013, but sorry, I don't know how to verify the issue here.
Comment 11 Alex Thurgood 2019-09-13 06:32:33 UTC
As we don't have the other referenced file "Stock Market SPY 2000.ods", this will be impossible to check/reproduce.

Reading the various comments made by Don, it does seem to be a DUP of bug 89013.

Why it worked correctly in 6252 and now no longer works in 6271 or 6312 is unknown, as the older bug has been around for a very long time.
Comment 12 Alex Thurgood 2019-09-13 06:34:15 UTC
It could also be a duplicate of bug 96280, which describes erratic behaviour of the MATCH function.
Comment 13 Alex Thurgood 2019-09-13 06:40:37 UTC
(In reply to Alex Thurgood from comment #11)
> As we don't have the other referenced file "Stock Market SPY 2000.ods", this
> will be impossible to check/reproduce.
> 

Of course, I should have written, "without the other referenced files".
Comment 14 Alex Thurgood 2019-09-16 07:44:36 UTC

*** This bug has been marked as a duplicate of bug 89013 ***
Comment 15 Don Anderson 2019-10-09 23:08:29 UTC
Created attachment 154874 [details]
File with incorrect result, see row 3

I am send a folder with a set of nine(9) .ods file which consistently produce the erroneous results on ver 6.2.7.1 and 6.3.1.2.  They seem to run correctly on ver 6.2.5.2.  For the purpose of this problem report the sheets are filed with random numbers except for the first column with sequential dates.

The Risk/Return Data.ods file accesses the eight(8) other files via a hard coded "='file:///Users/donanderson/Desktop/Problem/Stock Market SSO-SDS 2006.ods'#$Control.$B$9" path in row 3. The name of the file changes with each column.

The correct results from ver 6.2.5.2 are B3, 4979; C3, 4979; D3, 4145; E3, 3354; F3, 3354; G3, 3354; H3, 3354; I3, 3339.

Ver 6.2.7.1 and 6.3.1.2 produce B3, 4979; C3, 4979; D3, 4145; E3, 3354; F3, 4979; G3, 4979; H3, 4979; I3, 4979.
Comment 16 Don Anderson 2019-10-09 23:09:35 UTC
Created attachment 154875 [details]
Supporting file
Comment 17 Don Anderson 2019-10-09 23:10:21 UTC
Created attachment 154876 [details]
Supporting file
Comment 18 Don Anderson 2019-10-09 23:11:25 UTC
Created attachment 154877 [details]
Supporting file
Comment 19 Don Anderson 2019-10-09 23:12:00 UTC
Created attachment 154878 [details]
Supporting file
Comment 20 Don Anderson 2019-10-09 23:12:38 UTC
Created attachment 154879 [details]
Supporting file
Comment 21 Don Anderson 2019-10-09 23:13:14 UTC
Created attachment 154880 [details]
Supporting file
Comment 22 Don Anderson 2019-10-09 23:13:48 UTC
Created attachment 154881 [details]
Supporting file
Comment 23 Don Anderson 2019-10-09 23:14:22 UTC
Created attachment 154882 [details]
Supporting file