Bug 154813 - BUG in simple Division !!!
Summary: BUG in simple Division !!!
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.5.2.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-14 20:42 UTC by stefan
Modified: 2023-04-14 22:04 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
simple statistic chart (16.08 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-04-14 21:07 UTC, stefan
Details
screenshow - weired results (36.93 KB, image/png)
2023-04-14 21:15 UTC, stefan
Details
confusing Row "drag" calc (32.30 KB, image/png)
2023-04-14 21:36 UTC, stefan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan 2023-04-14 20:42:15 UTC
Description:
Dear Libre Office Team,

I found a strange behavior in when calculating a simple statistic, with a division. When filling a Calc Chart with values and try to use a division to get results like / power per time -> and be dragging down on a valid formula, every second value is calculates wrong.  -> dooing this cell-by-cell works, but is not very user frendly for a bigger number of values.

Kind Regards,

S.Klerx

Actual Results:
With manual cell-by-cell it works, but it is not userfrendly !

Expected Results:
Dragging down on a valid formula shows the correct values.


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: de
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes
Comment 1 Rafael Lima 2023-04-14 21:02:19 UTC
Can you share a file with a more concrete example of what the problem is?

With your description I cannot reproduce the problem.
Comment 2 stefan 2023-04-14 21:07:56 UTC
Created attachment 186674 [details]
simple statistic chart
Comment 3 stefan 2023-04-14 21:09:20 UTC
As I could not reply to the request I try to fill this form (unconveinient).

Reply was: 
Sure---

try this file an drag down colum H  (h3 down to h17) - you should immedialtly see the problem.
Comment 4 stefan 2023-04-14 21:15:04 UTC
Created attachment 186675 [details]
screenshow - weired results
Comment 5 Rafael Lima 2023-04-14 21:19:37 UTC
The problem here is simple. You're always dividing H1 by the values in column C, but the value of H1 is fixed.

When you drag down the formula, H1 gets updated downwards (H2, H3, H4...) as well as column C (C3, C4, C5...). But in the case of column H, since you want to keep it fixed in H1, you need to lock it.

For that, replace H1 in the formula by $H$1, which locks the column/row.

Closing this as NAB.
Comment 6 stefan 2023-04-14 21:20:02 UTC
OK got some "hint"-
in Row H -> the usage of "$" solves the issue in some way: =$H$1/[scaling].
But the behavior is strange, as the tool does not recognize the reference point and that every 2nd line is "0" is also irretating.
Comment 7 stefan 2023-04-14 21:26:50 UTC
Dear Support Team,
Thank you for the quick response. I can live with conclusion of using "$" but I must admit, that the MS-(exivalanet/evil/as-you-like-to-call-it) is somewhat more intuitive. > I will still keep with LibreOffice (thank you so mutch), but some people might be confused like me in the first try.

PLS keep up the good work.

Kind Regards

S.Klerx
Comment 8 stefan 2023-04-14 21:35:25 UTC
Yust to make my confusion clear- pls see attaches screenshot
Comment 9 stefan 2023-04-14 21:36:17 UTC
Created attachment 186677 [details]
confusing Row "drag" calc
Comment 10 Stéphane Guillou (stragu) 2023-04-14 22:01:21 UTC
(In reply to stefan from comment #7)
> Dear Support Team,
> Thank you for the quick response. I can live with conclusion of using "$"
> but I must admit, that the MS-(exivalanet/evil/as-you-like-to-call-it) is
> somewhat more intuitive. > I will still keep with LibreOffice (thank you so
> mutch), but some people might be confused like me in the first try.

You will find that MS Excel behaves the same: dragging that cell down will update relative references, resulting in the same values.

Closing as "not a bug".

Thank you both!
Comment 11 ady 2023-04-14 22:04:09 UTC
See:

https://help.libreoffice.org/latest/en-US/text/scalc/guide/relativ_absolut_ref.html

Although I think this should not be done as a general rule, I am posting the following link in order to hint others that they should not report "bugs" before some minimal web search.

https://support.microsoft.com/en-us/office/switch-between-relative-absolute-and-mixed-references-dfec08cd-ae65-4f56-839e-5f0d8d0baca9

Please next time perform a web search, or go to https://ask.libreoffice.org 

This site is for bug reports. Thank you.