Bug 130458 - Cannot evaluate a cell with an empty result from a !string / text! formula, result: #VALUE!
Summary: Cannot evaluate a cell with an empty result from a !string / text! formula, r...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.3.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-05 13:46 UTC by moyanocasco.franciscom
Modified: 2020-08-07 07:42 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 moyanocasco.franciscom 2020-02-05 13:46:24 UTC
Description:
Hello,
    I'm trying to do an simple IF sentence on a cell. For Example:
    On C2, I put this formula
       =IF(B2;1;0)
    Normally, if B2 has some value, will return 1, on the other cases (FALSE,0,empty cell) will return 0.

    Now, if B2 is the result from a formula, lets say =MID(A2;1;10), and A2 is empty, B2 will be empty, BUT, C2 will not give me any result from the if (not 1, not 0)

Steps to Reproduce:
1.Make A2 empty
2.Put on B2 =MID(A2;1;10)
3.Put on C2 =IF(B2;1;0)

Actual Results:
Not 1 or 0 result on C2

Expected Results:
It should be 0


Reproducible: Always


User Profile Reset: No



Additional Info:
Versión: 6.3.3.2.0+
Id. de compilación: 30(Build:2)
Subprocs. CPU: 4; SO: Linux 4.12; Repres. IU: predet.; VCL: kde5; 
Configuración regional: es-ES (es_ES.UTF-8); Idioma de IU: es-ES
Calc: threaded
Comment 1 Oliver Brinzing 2020-02-05 19:42:48 UTC
I can't reproduce it.

To be certain the reported issue is not
related to corruption in the user profile, could you please reset your
Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and
re-test?

If the problem still persists, please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the issue is still present
Comment 2 m_a_riosv 2020-02-06 23:03:49 UTC
Please test it the option in Menu/Tools/Options/LibreOffice calc/Formula - Detailed calculation settings - Treat empty string as zero, solve your issue.
Comment 3 QA Administrators 2020-08-05 04:56:14 UTC Comment hidden (obsolete)
Comment 4 b. 2020-08-07 07:42:18 UTC
(In reply to m.a.riosv from comment #2)
> Please test it the option in Menu/Tools/Options/LibreOffice calc/Formula -
> Detailed calculation settings - Treat empty string as zero, solve your issue.

issue and solution confirmed, without this option an empty result of a string operation in B2 produces #VALUE! in B3, with the option checked the result is '0',

as well in 6.1.6.3 (winx64) as in actual 7.1.0.0 dev (winx64), 

thus 'notabug' 

the option is in [tools - options - libreoffice calc - formula - detailed calculation settings - **custom (conversion of text to numbers and more): details** - treat empty string as zero]