Bug 138910 - MATCH works only partially
Summary: MATCH works only partially
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-14 18:14 UTC by Angelos Skembris
Modified: 2020-12-14 18:58 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
MATCH fail example (17.07 KB, application/zip)
2020-12-14 18:16 UTC, Angelos Skembris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Angelos Skembris 2020-12-14 18:14:24 UTC
Description:
MATCH seems to work properly for some stings but not for others.
In the attached file, in column H there are MATCH commands for the strings in column C. Only some strings are found. 

This is  not due to improper typing of the strings. MATCH finds the same values even when the strings are retrieved using an indirect reference, so no typing is involved. To test this, you can change the value in cell E2 from 1 to 5. Values 1-3 are matched, values 4 and 5 are not, just like the manual version of column H. 

By the way, saving the spreadsheet and opening it in Excel 2010 (through Wine) gives a different set of weird results. In that case, MATCH returns wrong results for the first cases, correct results for the second two cases, and case 5 also fails. 





Steps to Reproduce:
1. Open example file
2. Change cell E2 from 1 to 5


Actual Results:
For E2 values 1-3, MATCH works correctly, for values 4-5 MATCH fails. 

Expected Results:
Correct results should be returned in all cases.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.0.3.1
Build ID: 00(Build:1)
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: en-GB (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Angelos Skembris 2020-12-14 18:16:25 UTC
Created attachment 168159 [details]
MATCH fail example
Comment 2 m_a_riosv 2020-12-14 18:52:07 UTC
There is no bug, you are omitting the third parameter to 'zero', because the data are not sorted.

https://help.libreoffice.org/latest/en-US/text/scalc/01/04060109.html?DbPAR=CALC#bm_id3158407
Comment 3 Angelos Skembris 2020-12-14 18:58:39 UTC
Thank you for the quick response and apologies for the time wasted.