Bug 165988 - SUM function does not add-up valued found using "MID" function
Summary: SUM function does not add-up valued found using "MID" function
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.3.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-31 15:37 UTC by aykut
Modified: 2026-01-27 12:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Spreadsheet showing the bug (19.24 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-03-31 15:37 UTC, aykut
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aykut 2025-03-31 15:37:49 UTC
Created attachment 200108 [details]
Spreadsheet showing the bug

SUM function does not add-up valued found using "MID" function. I can add individual cells using A1+2+A3, but sum(A1:A3)doesn't add-up
Comment 1 raal 2025-03-31 16:21:47 UTC
=IF(MIDB(A9;5;1)="3";LEFT(A9;1);0)

Left returns text. Try 

=VALUE(IF(MIDB(A9;5;1)="3";LEFT(A9;1);0))
or
=IF(MIDB(A9;5;1)="3";VALUE(LEFT(A9;1));0)
Comment 2 aykut 2025-03-31 17:01:57 UTC
=VALUE(IF(MIDB(A9;5;1)="3";LEFT(A9;1);0)) works
=IF(MIDB(A9;5;1)="3";VALUE(LEFT(A9;1));0) doesn't work

Thank you,
Comment 3 QA Administrators 2025-11-25 15:26:16 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2025-11-25 15:38:36 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2026-01-27 12:32:16 UTC
If I understand correctly, this can be closed.