[Libreoffice-bugs] [Bug 107724] New: Inpredictable behaviour in a more complex lookup and address processing formula

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue May 9 12:46:52 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=107724

            Bug ID: 107724
           Summary: Inpredictable behaviour in a more complex lookup and
                    address processing formula
           Product: LibreOffice
           Version: 5.3.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: m.p.de.graaff at infsec.nl

Description:
Combination of various nested MATCH, INDIRECT, ADDRESS functions behaves
inpredictably, whilst working correctly when splitting the formula over two
cells.
Only malbehaves in LibreOffice and under various OS'ses. Behaves *correctly* in
MS-Office using xslx exports, and also behaves *correctly* in OpenOffice using
the original .ods file.

Steps to Reproduce:
I did prepare a sheet showing the problem and a correct working workaround
using two cells with split functionality (URL:
https://www.mpxf.nl/data/bugs/LibreOffice%205.3.2.2%20Bug.zip)

Basically the looks up the two occurences (assumed to be present) in a list
named RoleAssignment for a given entry in a table named Role. Occ#1 is lookedup
using MATCH(), whereas Occ#2 is also searched for using MATCH, but starting
just after Occ#1 by restricting the address range within the table
RoleAssignment

formula (bad behaving):
=MATCH($E4;INDIRECT(ADDRESS(ROW(RoleAssignment)+$G4;COLUMN(RoleAssignment))&":"&ADDRESS(ROW(RoleAssignment)+ROWS(RoleAssignment)-1;COLUMN(RoleAssignment)));0)+$G4

split formula (well behaving):
(1st step)
=ADDRESS(ROW(RoleAssignment)+G4;COLUMN(RoleAssignment)) & ":" &
ADDRESS(ROW(RoleAssignment)+ROWS(RoleAssignment)-1;COLUMN(RoleAssignment))
(2nd step)
=MATCH($E4;INDIRECT($I4);0)+$G4

Actual Results:  
#N/A
#N/A
8
8
6

Expected Results:
3
6
10
8
9


Reproducible: Always

User Profile Reset: No, but I used various computers and OS'ses (WINXP-SP3,
WIN10, Linux SUSE Leap 42.2)

Additional Info:
Note the link above (under "Steps to reproduce") to the prepared test
spreadsheet showing the malbehaviour and a screenshot of the result on my
systems


User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101
Firefox/53.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170509/13a16fd7/attachment.html>


More information about the Libreoffice-bugs mailing list