Bug 148347 - In logical operators AND + OR blanks are inserted when cells are addressed.
Summary: In logical operators AND + OR blanks are inserted when cells are addressed.
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.4 all versions
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-04 08:06 UTC by tumann2002
Modified: 2022-11-02 03:35 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tumann2002 2022-04-04 08:06:21 UTC
Description:
The content of a cell: IF((A=5) AND (B=6),27,29) will as time passes change to:
IF((A=5)              AND               (B=6),27,29)

I have seen this for the operators AND and OR.
It only happens if there is at least 1 space next to the operator AND / OR.
So IF((A=5)AND(B=6),27,29) will remain as written.

Actual Results:
Write a statement with AND or OR and a blank next to the operator. Then you will see that the number of blanks is increasing. Why I do not know.

Expected Results:
It is not a bug created by any setting of my PC, it is a bug in the handling of AND and OR functions.


Reproducible: Always


User Profile Reset: No



Additional Info:
No other info available
Comment 1 Xisco Faulí 2022-04-04 08:55:41 UTC
Hello,
Thanks for reporting this issue.
Probably the space is trimmed on purpose, I don't know, but the question is, why is it an issue ? Does it makes the formula to break ?
Comment 2 m_a_riosv 2022-04-04 10:52:39 UTC
Function AND() does not work in that way, the formula should be:

IF(AND(A=5,B=6),27,29)

you also can get it without AND, using product '*' instead 'and' and '+' instead 'or', because the result of a comparison it's '1' true or '0' false,
IF((A=5)*(B=6),27,29)
Comment 3 QA Administrators 2022-10-02 03:38:46 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2022-11-02 03:35:44 UTC
Dear tumann2002,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp