Bug 153435 - LO Calc =sum bug with merge cells
Summary: LO Calc =sum bug with merge cells
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-07 12:25 UTC by Krzysztof
Modified: 2023-02-07 18:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample file from reporter (12.12 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-02-07 18:03 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof 2023-02-07 12:25:52 UTC
Description:
i have bug with =sum, when i add up merge cells, results are incorrect

Steps to Reproduce:
1. I merge 4 cells in one (a:1-a:4)
2. I write in this cell number 44
3. under this merge cells, in a:5 cell I use function =sum(A:1)
4. it give me result 70, but should be 44

Actual Results:
4 merge cells with one number "44" give me sum "70"

Expected Results:
4 merge cells with one number "44" should give me sum "44"


Reproducible: Always


User Profile Reset: Yes

Additional Info:
fix this pls :)
Comment 1 m_a_riosv 2023-02-07 12:52:03 UTC
Please attach a sample file.
Comment 2 Roman Kuznetsov 2023-02-07 13:50:19 UTC
>I use function =sum(A:1)

Are you sure? I got the #NAME? error when I tried to use this strange (and wrong) function
Comment 3 m_a_riosv 2023-02-07 18:03:39 UTC
Created attachment 185188 [details]
Sample file from reporter

Please attach documents and add your comments here, don't send private emails, except if it is essential.

By unmerging A9:A12 you can see that all cells have data, SUM(A10:A12)=49 just your difference.

When merging cells, LO ask about how to manage the content of hidden cells.

No bug.
Comment 4 m_a_riosv 2023-02-07 18:05:54 UTC
Please in the future if you have questions like this one, post it on the forum, 
https://ask.libreoffice.org/c/english/5, it is available in several languages.