Apache OpenOffice (AOO) Bugzilla – Issue 102668
Sorting causes cell references in formulas to be miscalculated
Last modified: 2009-06-11 13:11:05 UTC
When sorting a selection of data which contains a formula, the cell references contained in the formula are not correctly re-calculated to account for the change in row number. To reproduce: Cell A1: 2 Cell A2: 1 Cell B1: Test Cell B2: =IF(A2=2;"Cell is two";"") Select all four cells and sort by column A ascending. Cell B2 contains "Test" which is correct. The cell references in B1 are miscalculated and now refer to A2 instead of A1, causing the cell to display "Cell is two" which is incorrect. I have attached the real-world data which I found this bug while using OOO310m11 - which you can see causes quite serious data corruption as this is my accounting data which would have been damaged had I not realised the effects due to the colouring.
Created attachment 62915 [details] Real-world data shows bug as well
Same as 101690. *** This issue has been marked as a duplicate of 101690 ***
closing duplicate