Bug 120002 - If you use the ISNUMBER() function above a row of data, you get different results to using it next to a row of data
Summary: If you use the ISNUMBER() function above a row of data, you get different res...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-20 08:02 UTC by zacky47222
Modified: 2018-09-20 09:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example of bug (7.46 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-09-20 08:05 UTC, zacky47222
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zacky47222 2018-09-20 08:02:57 UTC
Description:
ISNUMBER() seems to fail on rows of data in a really unusual way.

Steps to Reproduce:
1. Make a row of numbers, say from A2:E2 from 1 to 5
2. In cell B1, put "=ISNUMBER(A2:E2)". This returns TRUE for me.
3. In cell F2, put "=ISNUMBER(A2:E2)". This returns FALSE for me.

Actual Results:
The row-wise function said false.

Expected Results:
They should have both said true.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 zacky47222 2018-09-20 08:05:21 UTC
Created attachment 145052 [details]
Example of bug
Comment 2 Julien Nabet 2018-09-20 08:27:50 UTC
5.1.6 is EOL
Please give a try to a recent LO version, either 6.0.6 or brand new 6.1.1
Comment 3 Mike Kaganski 2018-09-20 08:31:56 UTC
This is not a bug. ISNUMBER() takes a value, which may be, among others, a scalar or a range. In case of formula in F2 in your sample file, evaluator passes a value "by intersection" (= in the same row or in the same column; the latter being used in this case) - so ISNUMBER operates on a single cell F3, which holds a number; thus the function result is TRUE.

In case of formula in M3, the intersection gives not a single cell, but a range (the whole A3:L3). The range value is *not* a number, but an array (of numbers). An array's type isn't a number => rightfully it's FALSE.
Comment 4 zacky47222 2018-09-20 09:01:13 UTC
Thanks for the clarification, sorry to waste your time.