Bug 145388 - Libre Calc - insert Row above does not carry function completely
Summary: Libre Calc - insert Row above does not carry function completely
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-29 21:00 UTC by BrianB
Modified: 2021-10-31 01:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
TestCase145388 (12.16 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-10-29 21:06 UTC, BrianB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BrianB 2021-10-29 21:00:01 UTC
Description:
I have several columns with numbers, the fourth column Sums the 3 to the left and the 4th column cell above. =SUM(B6:D6)+E5
I needed another row so I inserted above, but it did not include the formula in the 4th row. I drug the 4th row cell from the above row down to the new row 4th cell. It copied the formula relative EXCEPT that the extra (+E5 in this case) remained static (did not change with the rest of the formula). I believe it should have a $E$5 in order to remain static else it should be relative, though i could be missing something. I will attach the file, there is nothing sensitive. Row 6 is the one i inserted (by right clicking 7 'insert row above')

Steps to Reproduce:
1.Create relative formula in several rows (sum cell:cell +othercell)
2.slect a middle row and rt click Insert row above
3.drag above row cell down to copy formula

Actual Results:
the cell:cell portion of the formula copies relative, the additional +othercell does not. 

Expected Results:
All cell references in the formula should be relative as it has no static markers (i'm prob using all the wrong lingo)


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
I'm not seeing how to submit the file as an example here. Let me know if you want it.
Comment 1 BrianB 2021-10-29 21:06:03 UTC
Created attachment 176011 [details]
TestCase145388

Correction, the new row cell whose formula that i drug down from E5 worked fine, it's the former E6 which is now E7 that did not update correctly when i inserted the new row.
Comment 2 Aron Budea 2021-10-31 01:37:20 UTC
(In reply to BrianB from comment #0)
> Steps to Reproduce:
> 1.Create relative formula in several rows (sum cell:cell +othercell)
> 2.slect a middle row and rt click Insert row above
> 3.drag above row cell down to copy formula
I don't understand why the 3rd step is here, it isn't mentioned in the description, and as I understand it's the "fixing" method, isn't it?

My understanding of the phenomenon is that Calc keeps the references to the existing cells. Ie. if you add a new 5th row, E4 didn't change, so the reference to it stays the same, while B5:D5 moved down a row, so they have to change in the formula. If they referenced a cell in row 5, they'd change as well.

This is different from when using fill down, when you're extending a formula to previously uncovered ranges.

Therefore I'm closing this as NOTABUG, Eike, please correct me if there's a flaw in the above reasoning.