Bug 152895 - Inconsistent Calculation in 2 Different Sheets When Copying Everything to Second Sheet
Summary: Inconsistent Calculation in 2 Different Sheets When Copying Everything to Sec...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 152893 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-01-05 18:11 UTC by gentisle
Modified: 2023-01-09 05:37 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Inconsistent Calculation in Same Formulas of (Copied) Different Sheets (61.31 KB, application/zip)
2023-01-05 18:23 UTC, gentisle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gentisle 2023-01-05 18:11:03 UTC
Description:
I have a Calc Sheet that I used to calculate some numbers from last year (2022). I copied the entire thing into a new empty sheet, and some of the formulas do not work in the new (2023) sheet).

Steps to Reproduce:
1.Created sheet with formulas
2.Copied entire contents of sheet into a new empty sheet
3.Began inputting new data

Actual Results:
Cells with totals calculated nothing or incorrectly.

Expected Results:
Should have calculated sensible, correct results just as the original sheet.


Reproducible: Always


User Profile Reset: No

Additional Info:
Tried safe mode, however, the 2nd sheet still produced the same errors.
Comment 1 Julien Nabet 2023-01-05 18:16:39 UTC
*** Bug 152893 has been marked as a duplicate of this bug. ***
Comment 2 gentisle 2023-01-05 18:23:36 UTC
Created attachment 184496 [details]
Inconsistent Calculation in Same Formulas of (Copied) Different Sheets

The times calculated are not always correct. Some of the totals at the top are not calculated. My "IF" formulas are to create an empty cell if the other cells from which it caluculates are empty to display a cleaner, more readable sheet.
Comment 3 gentisle 2023-01-05 18:24:22 UTC
See the totals cells.
Comment 4 ady 2023-01-06 10:29:19 UTC
(In reply to gentisle from comment #0)

> 2.Copied entire contents of sheet into a new empty sheet

In your 2023 file, cells that seem empty are not really empty, but contain a space character " ". So those cells contain text, and the formulas fail to do things like:
" "-" "
so they return #VALUE!.

IMO, you just need to clear the contents of those cells containing " " and the formulas should work as expected. Could you please confirm that?
Comment 5 gentisle 2023-01-09 01:57:53 UTC
Sorry, I haven't been able to get on the computer for a couple of days. This is confirmed. Thanks. I would have never figured that out. Now if I can find out how to turn on viewing the invisible spaces. Thanks, again.
Comment 6 QA Administrators 2023-01-09 03:21:18 UTC Comment hidden (obsolete)
Comment 7 ady 2023-01-09 05:37:43 UTC
Open the workbook. Go to "Edit" -> "Find and Replace" (Ctrl+H). In the "Find" field, introduce one space character (i.e. " " _without_ the quotation marks). Mark the checkbox for "Entire cells" and press "Find All".

Once you review that the resulting list is indeed exactly what you want to edit, you could use the "Replace" field. If you have the "Replace" field completely empty while the "Find" field has one space character and the checkbox for "Entire cells" is marked, you could press "Replace All". This procedure should delete the content of those one-space-character cells.

I will now close this bug report.