Bug 131065 - EDITING: removing rows: formula with leading "+", e.g. =+G41*F41 become =+G#REF!*F#REF!
Summary: EDITING: removing rows: formula with leading "+", e.g. =+G41*F41 become =+G#R...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Formula Calculate
  Show dependency treegraph
 
Reported: 2020-03-02 09:33 UTC by opensuse.lietuviu.kalba
Modified: 2022-07-06 03:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
XLSX document for testing: try remove 9-40 lines, H9 cell will be REF (24.66 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-03-02 09:33 UTC, opensuse.lietuviu.kalba
Details
Screenshot; after removing 9-40 lines, H9 formula contains REF, though visible value is still numeric (338.31 KB, image/png)
2020-03-02 09:50 UTC, opensuse.lietuviu.kalba
Details
XLSX after removing 9-40 lines: H9 cell became REF in formula (14.87 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-03-02 09:58 UTC, opensuse.lietuviu.kalba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description opensuse.lietuviu.kalba 2020-03-02 09:33:27 UTC
Created attachment 158302 [details]
XLSX document for testing: try remove 9-40 lines, H9 cell will be REF

After removing few lines in XLSX created in Microsoft Excel, some formula became #REF.

How to reproduce:
1. Open attached document
2. Remove 9-40 lines

Result:
 H9 cell contains formula =+#REF!*#REF!

Expected:
 H9 cell contains formula =+G9*F9

Note, that before removing lines, this cell was H41 and it contained formula =+G41*F41
Thus formula did not referred into removed cell.
Besides, after removing lines, doing Undo and Redo fixed formula.

I have LibreOffice 6.4.0.3 in openSUSE Linux, LibreOffice installed from RPMs from LibreOffice site.

Versija: 6.4.0.3
Darinio identifikatorius: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
Procesoriaus gijos: 4; OS:Linux 4.12; Sąsajos pateikimas: numatytasis; VCL: kf5; 
Lokalė: lt-LT (lt_LT.UTF-8); Sąsajos kalba: lt-LT
Calc: threaded
Comment 1 opensuse.lietuviu.kalba 2020-03-02 09:42:59 UTC
I can reproduce in LibreOffice Calc 6.4.1.2 for Linux

Darinio identifikatorius: 4d224e95b98b138af42a64d84056446d09082932
Procesoriaus gijos: 4; OS:Linux 4.12; Sąsajos pateikimas: numatytasis; VCL: kf5; 
Lokalė: lt-LT (lt_LT.UTF-8); Sąsajos kalba: lt-LT
Calc: threaded
Comment 2 opensuse.lietuviu.kalba 2020-03-02 09:50:53 UTC
Created attachment 158303 [details]
Screenshot; after removing 9-40 lines, H9 formula contains REF, though visible value is still numeric

I can reproduce in
Versija: 6.3.5.2
Darinio identifikatorius: dd0751754f11728f69b42ee2af66670068624673
Procesoriaus gijos: 4; OS:Linux 4.12; Sąsajos pateikimas: numatytasis; VCL: kde5; 
Lokalė: lt-LT (lt_LT.UTF-8); Sąsajos kalba: lt-LT
Calc: threaded
Comment 3 opensuse.lietuviu.kalba 2020-03-02 09:58:58 UTC
Created attachment 158305 [details]
XLSX after removing 9-40 lines: H9 cell became REF in formula

I attach saved resulting document (after removing lines).
Although H9 shows numeric, however formula contains REF. 
After recomputing values cell will show REF too.
Comment 4 Oliver Brinzing 2020-03-02 17:48:40 UTC
reproducible with:

Version: 4.4.7.2
Build-ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Gebietsschema: de_DE

Version: 7.0.0.0.alpha0+ (x64)
Build ID: f2db813374b8d65e1edec1387fa0c534b40885e1
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded

but *not* reproducible with:

Version 3.6.7.2 (Build ID: e183d5b)

steps to reproduce:
- open attachment: https://bugs.documentfoundation.org/attachment.cgi?id=158302
- H41 contains formula: =+G41*F41
- delete rows 9:40
- H9 (former H41) formula changed to: =+G#REF!*F#REF!

This will not happen if one removes the leading "+" from H41 formula before.
Comment 5 opensuse.lietuviu.kalba 2020-07-05 10:51:07 UTC
I hope this bug will be fixed before LibreOffice 7.O final version
Comment 6 b. 2020-07-05 12:53:55 UTC
funny behaviour with 6.1.6.3 winx64: 

initial display after delete: '=+G9*F9', after some time and poking around (can't repro what i did) display was changed to the #REF error, 

with master 7.1.0.0.a0+ winx64 from yesterday: instant repro, 

played with: 
the '+' sign - is a required condition, 
'Undo and Redo fixed formula' - is stable, 
deleting other content, copying to other sheet, openCL, threading, iterations, the split between rows 8 and 9 - produced no stable picture, 

thus somewhat 'unstable error', and perhaps not solved after first no-repro, 

@erAck is working on something with 'input parser' messing '--' to '-', https://bugs.documentfoundation.org/show_bug.cgi?id=134490 , perhaps 'related'?
Comment 7 QA Administrators 2022-07-06 03:36:36 UTC
Dear opensuse.lietuviu.kalba,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug