Bug 144473 - Removing #N/D cell from selection does not update Sum/Average in status bar
Summary: Removing #N/D cell from selection does not update Sum/Average in status bar
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Statusbar
  Show dependency treegraph
 
Reported: 2021-09-13 10:31 UTC by fred4u
Modified: 2023-05-20 02:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
LO Calc update issue (11.48 KB, application/octet-stream)
2021-09-15 10:11 UTC, fred4u
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fred4u 2021-09-13 10:31:37 UTC
Once cells selection contain #N/D cell, the statusbar Sum and Average values are not visible, with the Error message displayed instead (OK).

However, after de-select the #N/D cell (using Ctrl+LMB), the value is not updated and the Error message persists.

If after deselecting #N/D cell I do deselect other cell with valid value and select the valid value back, the Avg/Sum is updated.

Deselecting the #N/D cell should restore Avg/Sum calculation itself (if after deselecting, calculation is possible).
Comment 1 m_a_riosv 2021-09-13 13:36:06 UTC
Please, can you attach a sample file.
Comment 2 fred4u 2021-09-15 10:11:44 UTC
Created attachment 175032 [details]
LO Calc update issue

Test case for the report.

Try to select values from Sheet1, cells C2:C7
The Sum of the cells displayed in the status bar will not show since there's #N/D value.
Now deselect the C4 using Ctrl+LMB 
The Sum will still not be displayed
But if deselect also C3, the sum will update. Select back the C3 and sum will still be there.
Comment 3 m_a_riosv 2021-09-16 15:40:38 UTC
The issue it's deselecting C4, 'Error:Value not available' in status bar.
Comment 4 m_a_riosv 2021-09-16 15:40:53 UTC
Version: 7.2.1.2 (x64) / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
CPU threads: 4; OS: Windows 10.0 Build 21390; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL
Comment 5 BogdanB 2023-05-19 19:02:55 UTC
Also in
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 8dfceb4e0b05b9d531e27e38b954f18e33091f8a
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 6 ady 2023-05-20 02:32:31 UTC
There is no bug here. When you select a cell with and error, the status bar shows a "long" phrase for that error.

In attachment 175032 [details] from comment 2, when you [CTRL]+click on that cell with the "Not available" error, you deselect the cell, but the focus is still on the same cell, so the error is shown on the status bar.

To demonstrate (just as described in comment 0), using attachment 175032 [details] from comment 2, after deselecting the cell C4 with the error, go and press [CTRL]+click on C7 twice > now the selection is the same relevant area but the cell that has the focus (C7) has no error, so the status bar shows the specified calculated values.

So, this is not a bug, just simple common behavior. Someone might want to suggest some different behavior regarding the status bar (e.g. if the function shown on the status bar normally disregards some type of error on the main area, then also disregard it on the status bar) as a request for enhancement, but that's a different issue.