Bug 114954 - Incorrect calculation or failure to recalculate - EDITING
Summary: Incorrect calculation or failure to recalculate - EDITING
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.3.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-10 19:11 UTC by Ron Cohen
Modified: 2018-08-01 13:34 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Calc file showing incorrect calculations (9.37 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-01-10 19:12 UTC, Ron Cohen
Details
original file demonstrating bug (23.58 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-01-11 03:11 UTC, Ron Cohen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Cohen 2018-01-10 19:11:59 UTC
Description:
In the attached file cells F2 and G2 contain the same formula but produce different results. AutoCalculate is ON, and I have manually Recalculated many times, with no effect. This may be related to recalculation as some (but not all) changes made to the sheet cause the cell results to become the same. Now I do not know whether the calculation results in any cell in any spreadsheet are valid.

Steps to Reproduce:
1. Open attached spreadsheet.
2. Look at formulae in cells F2 and G2.
3. Observe that the values in these cells are different, despite being the same calculation.

Actual Results:  
Cell F2 displays value 0.00185, cell G2 displays value 0.00146.

Expected Results:
Values in cells F2 and G2 should be the same.


Reproducible: Sometimes


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 5.3.7.2
Build ID: 6b8ed514a9f8b44d37a1b96673cbbdd077e24059
CPU Threads: 4; OS Version: Mac OS X 10.13.2; UI Render: GL; Layout Engine: new; 
Locale: en-US (en_US.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7
Comment 1 Ron Cohen 2018-01-10 19:12:52 UTC
Created attachment 139030 [details]
Calc file showing incorrect calculations
Comment 2 m_a_riosv 2018-01-10 22:56:33 UTC
Doing a hard recalc [ctrl+shift+F9], solves the issue. 
Maybe it was saved in a wrong state. 
I don't there is a bug.
Can you reproduce with a new file from scratch.
Comment 3 Ron Cohen 2018-01-11 03:11:06 UTC
Created attachment 139045 [details]
original file demonstrating bug
Comment 4 Ron Cohen 2018-01-11 03:17:13 UTC
Hard recalc odes not work on my machine (MacOS 10.13.2). control + shift + F9 has no effect, nor does control + shift + fn + F9, and I cannot find any menu item for "hard recalc".

I do not know how to reproduce this in a few file; copying and pasting from this file to another does not demonstrate the bug. However I have attached another file, which is the original file where this bug was first observed. The smaller file I attached with the bug report was that file with lots of cells deleted.

Assuming I can get hard recalc to work (how?) then how does one know when that must be done? In other words, how can I tell that some calculations in a sheet are wrong and must be reset?
Comment 5 m_a_riosv 2018-01-12 16:09:14 UTC
If I'm not wrong control key in Mac is Command ⌘
It should be ⌘ + shift + fn + F9
Maybe you can see the key combinations in Menu/Tools/Customize/Keyboard
Comment 6 QA Administrators 2018-07-31 09:38:37 UTC Comment hidden (obsolete)
Comment 7 Xavier Van Wijmeersch 2018-07-31 20:16:28 UTC
changing the formula in H3 =F3; and H26; to =IF(F2="";F3;H3) seems to solve the problem, saving the document and then reopen no need to hard recalculation.

Version: 5.3.7.2
Build ID: 6b8ed514a9f8b44d37a1b96673cbbdd077e24059
CPU Threads: 8; OS Version: Linux 4.14; UI Render: default; VCL: kde4; Layout Engine: new; 
Locale: nl-BE (en_US.UTF-8); Calc: group

Version: 6.2.0.0.alpha0+
Build ID: 83d8331581ab43cf35325ca674cf62d4ba5dc5ad
CPU threads: 8; OS: Linux 4.14; UI render: default; VCL: kde4; 
Locale: nl-BE (en_US.UTF-8); Calc: group threaded

I think it can be closed as WFM
Comment 8 Timur 2018-08-01 13:33:03 UTC
Doing a simple F9 recalc (when cells selected) solves the issue:
https://help.libreoffice.org/6.2/en-US/text/scalc/01/06080000.html

Asking for fileopen recalc also solves the issue:
https://help.libreoffice.org/6.2/en-US/text/shared/optionen/01060900.html

I always set "Prompt User". And here it promtps, you say Yes and solved. 
Default is "Never recalculate". Bug 107929 to set "Prompt user" as default for "Recalculation on file load" is WontFix. 

I close this one as WFM.