Created attachment 76569 [details] test spreadsheet for reproducing problem per above Sorting rows breaks relative references in formulas. The problem appears when running either LibreOffice 4.0.1.2 or 3.4.4 on a MacBook Pro 17 running Mac OS 10.7.5. The test file was created with LibreOffice 3.4.4. Steps to reproduce, w/ current and expected behavior: 1. open LibreOffice4.0.1.2_Sort6-13KeyAUBreaksBH-BL13RelativeRefs.ods 2. confirm original values in cells AU6 and AU13 are 82 and 153, respectively 3. select cell BH13 - confirm original formula: =IF(BH6<>"",BH6,"") 4. select rows 6 through 13 - "Data | Sort..." - sort key 1: column AU - confirm rows 6 and 13 correctly moved to rows 10 and 12, respectively - e.g., values in cells AU10 and AU12 are 82 and 153, respectively 5. select cell BH12 - NOTE INCORRECTLY ADJUSTED RELATIVE REFERENCES: =IF(BH5<>"",BH5,"") - should be: =IF(BH10<>"",BH10,"") Operating System: Mac OS X Version: 4.0.1.2 release
Changing version to 3.4.4, version field is oldest version that we see the problem, not latest version that we've tested on -- we use comments for this. As for the bug, this is a dupe I'm almost sure, just need to track down the bug number for the duplicate bug. Thanks for reporting!
*** This bug has been marked as a duplicate of bug 45146 ***