Bug 143962 - EDITING range reference should update when edge cell is moved in same column (drag and drop or cut and paste)
Summary: EDITING range reference should update when edge cell is moved in same column ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Formula
  Show dependency treegraph
 
Reported: 2021-08-19 22:05 UTC by edil
Modified: 2023-11-22 08:50 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
file to show the bug reported (9.85 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-08-20 09:02 UTC, laurent combe
Details
Extended example of cells drag and drop (13.79 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-08-20 13:49 UTC, edil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description edil 2021-08-19 22:05:06 UTC
I use a simple range where the boundary first row is the 'Head" and boundary end row is the "Foot".
In the Foot some cells refers to Head, other sum the column range.
Es. range A5:B10, put formulas in A10  = A5 and in B10  = SUM(B5:B9).
If I select A5:B5 (the Head) and drag and drop of two rows up, I find the formulas:
in A10  = A3 (new position) and in B10  = SUM(B5:B9).(same of old positions).
The link has follow the movement for single cell, but for the range with the same start position no.
In excel the range change and follow the movement.

For me this is a bug because we have two behavior for the same action, and this easy carry a mistake.
Thank you in advance
Comment 1 laurent combe 2021-08-20 09:02:00 UTC
Created attachment 174444 [details]
file to show the bug reported

add a file to show the bug reported

actually in LO (7.1.5.2) the range is only modified if it is completely moved
in the example as only one celle of the range is moved the first cell of the range is not modifed

i'm not able to decide if it's a real bug
Comment 2 edil 2021-08-20 13:49:02 UTC
Created attachment 174448 [details]
Extended example of cells drag and drop
Comment 3 edil 2021-08-20 13:57:58 UTC
laurent combe , Thank you for the quick answer.
It is true, also in the oldest versions,
"actually in LO (7.1.5.2) the range is only modified if it is completely moved" but  I disagree because we have two behavior for the same action, and this easy carry a mistake.
My Attachment extend your file, and shows that when one user need some space in a range, the natural e simplest action to do is to keep the cells in the first row and move them up.
In the example the first cell E20 Follow the movement and you see the correct value, and so you easy think that all other  formulas follow the movement, but G20 NOT Follows the movement and you don't see that, easy carry a mistake.
Indeed if you insert rows all is ok.
Also in excel the range movement the formulas change and follow the movement.
This "strange" behavior is not a good idea, for me is an error in the development of Calc.
By,  Nicola Giardinelli
Comment 4 m_a_riosv 2021-08-20 15:29:07 UTC
For me a bug, dragging an edge of a range of a formula, must adapt the range to the new position, like it does with an only one cell reference. The bug it's also with cut & paste.
Comment 5 Stéphane Guillou (stragu) 2023-05-09 22:41:18 UTC
Reproduced in OOo 3.3 and a recent master build.

I can confirm that in Excel 365, following the same steps, the range is extended in the C10 formula. However, the range is not updated if the cell is dragged to a different column, or if it is dragged below the original range. So this seems to only happen in specific, straight-forward cases.

Other apps:
- OnlyOffice does not extend the range, same as LibreOffice
- Gnumeric and Google Sheets extend the range, same as Excel

I consider this as request for enhancement rather than a bug.

Eike and UX team, what are your thoughts on this?

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 002ae41bb6088002ba3ed0188ac822fb823a23f9
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 6 Heiko Tietze 2023-05-10 07:00:12 UTC
(In reply to laurent combe from comment #1)
> Created attachment 174444 [details]
> file to show the bug reported

=B5+B6+B7+B8+B9 vs. =SUM(C5:C9)

We update individual cells but keep the range while Excel also changes the range to C3:C9. The difference is if C4 contains a value: Excel will add it to the equation, we not.

I tend to disagree with Excel's workflow but user expect similar behavior.

Some limits exist in that pasting below the SUM function or in columns left or right has no effect on the range.
Comment 7 Eike Rathke 2023-05-10 10:09:45 UTC
Makes sense _iff_ the move is in the same direction as the range span, e.g. moving (drag&drop) top cell(s) further up or down (not below the bottom row), and not elsewhere.