Bug 131066 - Miscalculation of recursive string formula
Summary: Miscalculation of recursive string formula
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-02 10:25 UTC by Juanjo Marin
Modified: 2020-03-03 07:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
File with error sample (20.96 KB, application/octet-stream)
2020-03-02 10:26 UTC, Juanjo Marin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juanjo Marin 2020-03-02 10:25:24 UTC
Description:
We are using a recursive formula to turn the data from a column into a line separated by ;

It fails, and it miscalculates the result. In the intermediate steps it reset the calculations, and it never gives all the data. 

Steps to Reproduce:
A is the column where we have the data
B is the column we use to iterate A and the last line has the result

B1 is A1
B2 is =B1&";"&A2
B2 is =B2&";"&A3
etc


Actual Results:
The Bn is reseted to ;An . I don't understand the patron that n follows in this error.

At the end, only part of data from A is on the last B

Expected Results:
we expect the last Bn contains all the items from A separated by ; 


Reproducible: Always


User Profile Reset: No



Additional Info:
It also happens on 6.3.0.4 version on Windows.
Comment 1 Juanjo Marin 2020-03-02 10:26:34 UTC
Created attachment 158307 [details]
File with error sample
Comment 2 Ming Hua 2020-03-02 23:41:50 UTC
There are hidden rows in your sample file, for example row 14.  And the B column for the hidden row is empty, therefore breaking up your recursive formula.

Adding formulas to the hidden rows gives the correct result for me, even if they are hidden again after adding the formulas.

User mistake, setting to NOTABUG.  Feel free to change it back to UNCONFIRMED if you disagree, with a brief explanation.
Comment 3 Juanjo Marin 2020-03-03 07:33:01 UTC
I didn't notice that. Thank you,  Ming Hua, for you quick response.