Apache OpenOffice (AOO) Bugzilla – Issue 62850
Array context of INDEX function if vector
Last modified: 2013-08-07 15:14:17 UTC
The function LINEST calculates parameters of the linear regression as an array but there is no corresponding function to return the individual elements in the array. (I have looked under the arry category of the function list.) Under Microsoft Excel, the index function is used but not supported by Openoffice resulting in errors when opening excel files containing index functions.
ja->ahung: could you please add an example to this issue where the index function is used in that way ?
Created attachment 34659 [details] poc
Attached is an example that works fine in excel but results in an error when reading the second element of the array.
And the version number for this issue should be OO2.0.1 stable
Confirmed with OOo-dev m158 WinXP SP2. Changing Version due reporter comments and added 'ms_interoperability' keywork Hwoarang
Hi Eike, could this be a double to Issue 4904 ? Frank
Not related to the range operator (why should it be?). The INDEX() function doesn't support the array context yet. An array is returned by the LINEST() function.
*** Issue 66930 has been marked as a duplicate of this issue. ***
In CWS calc38: sc/source/core/tool/interpr1.cxx 1.38.80.2 In fact this was a special case of array support (general array handling btw was already implemented) accessing one element of a vector independent of the col/row orientation of the array parameter. The semantics of the INDEX function here are the same as if a corresponding col/row parameter was 0, so effectively =INDEX(array;element) for an array consisting of one row and several columns is the same as =INDEX(array;0;element), and for an array consisting of one column and several rows it is the same as =INDEX(array;element;0)
Reassigning to QA.
verified in internal build cws_calc38
closed because fix available in OOo2.0.4 (680m1)