Bug 169415 - FILEOPEN XLS IF function default return value is shown as number (0) instead of boolean (FALSE)
Summary: FILEOPEN XLS IF function default return value is shown as number (0) instead ...
Status: RESOLVED DUPLICATE of bug 156861
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: XLS
  Show dependency treegraph
 
Reported: 2025-11-13 11:23 UTC by Gabor Kelemen (Collabora)
Modified: 2025-11-13 13:59 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Excel 2016 (25.50 KB, application/vnd.ms-excel)
2025-11-13 11:23 UTC, Gabor Kelemen (Collabora)
Details
The example file saved in Excel as XLSX (8.37 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2025-11-13 11:23 UTC, Gabor Kelemen (Collabora)
Details
The xls example in Excel, Calc and the XLSX example in Calc (91.58 KB, image/png)
2025-11-13 11:24 UTC, Gabor Kelemen (Collabora)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (Collabora) 2025-11-13 11:23:16 UTC
Created attachment 203945 [details]
Example file from Excel 2016

Attached XLS example file has a simple IF function, which returns with a FALSE value, as the condition is not met and there is no alternative value specified.

This is displayed as 0, instead of FALSE boolean value. If the file is saved as XLSX in Excel, then the display in Calc is correct.

1. Open attached file
-> Values in B4:B5 are 0 instead of FALSE

2. Open the second attachment
-> Values in B4:B5 are FALSE like in Excel

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 16; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

The xlsx version seems to look good since 7.3 commit:

commit e4f76cd9a4814ce6cc4795e5e1a5c74d54cb7513
Author: Justin Luth <justin_luth@sil.org>
Date:   Wed Feb 23 10:34:29 2022 +0200

    tdf#122098 xlsx im/export: let formulas guess their number format
Comment 1 Gabor Kelemen (Collabora) 2025-11-13 11:23:34 UTC
Created attachment 203946 [details]
The example file saved in Excel as XLSX
Comment 2 Gabor Kelemen (Collabora) 2025-11-13 11:24:10 UTC
Created attachment 203947 [details]
The xls example in Excel, Calc and the XLSX example in Calc
Comment 3 Justin L 2025-11-13 13:59:39 UTC

*** This bug has been marked as a duplicate of bug 156861 ***