Bug 78235 - Editing: formula error when inserting new column to left
Summary: Editing: formula error when inserting new column to left
Status: RESOLVED DUPLICATE of bug 77647
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.2.3.3 release
Hardware: All Windows (All)
: high critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2014-05-04 00:35 UTC by kabull2
Modified: 2014-05-04 12:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kabull2 2014-05-04 00:35:17 UTC
I have a col of numbers (say in B1 to B6), which is summed at the bottom - B7 is SUM(B1:B6). Cells in formula are relative. I insert two cols to left of B. I would expect the formula to change to SUM(D1:D6) - but it doesn't. It becomes SUM(B1:D6)

If I make the cell refs absolute - SUM($B$1:$B$6) and insert the new cols, I get SUM($B$1:$D$6).

This is contrary to the guidance given in the Help file (absolute addresses in spreadsheets) - "After having inserted a new column A, the formula =SUM(A1:B2) will be automatically updated to =SUM(B1:C2)."

This behavior occurs in both column insert and cell insert.

The key is that the column containing the data must be included in the selection - that is, to insert two cols to left of col B, I am selecting A and B then going Insert Left. If I just select A and insert a single col, the data moves to col C and the formula correctly transforms to SUM(C1:C6). I've tried this with data in col G and cols inserted left (including G), with the same error.

 I have replicated the issue on another machine running Win7 64, and with a completely clean install of 4.2.3.3 on a system running XP that has never had LO loaded. I also replicated the problem on a reversion to 4.2.0.4.

Similar to Bug 71014.
Comment 1 m_a_riosv 2014-05-04 01:51:45 UTC
Hi kabull3, thanks for reporting.

I can reproduce with your new instructions.

For me this is duplicate.

*** This bug has been marked as a duplicate of bug 77677 ***
Comment 2 kabull2 2014-05-04 04:05:36 UTC
(In reply to comment #1)
> Hi kabull3, thanks for reporting.
> 
> I can reproduce with your new instructions.
> 
> For me this is duplicate.
> 
> *** This bug has been marked as a duplicate of bug 77677 ***

But 77677 relates to a different subject?  Bug 77677 - HDMI audio on ati7750 choppy with ALSA multi-channel apps.

Have reopened this bug for now.
Comment 3 GerardF 2014-05-04 06:44:39 UTC
Confirmed.

Behavior of "expand reference when row/column" is inserted: https://help.libreoffice.org/Common/General_7#Expand_references_when_new_columns.2Frows_are_inserted

References should not be expanded when one insert a column and there is only 1 column in the formula. (Same for row)

It is a regression against 4.1.5.
Comment 4 m_a_riosv 2014-05-04 12:32:53 UTC
Sorry my error with duplicated bug number.
It is 77647

*** This bug has been marked as a duplicate of bug 77647 ***