[Libreoffice-bugs] [Bug 117002] ISNUMBER is treating the value provided by LEFT as text instead of as a number.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Apr 14 15:36:12 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=117002
m.a.riosv <miguelangelrv at libreoffice.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |miguelangelrv at libreoffice.o
| |rg
Resolution|--- |NOTABUG
--- Comment #3 from m.a.riosv <miguelangelrv at libreoffice.org> ---
(In reply to simm.emanem from comment #0)
> .............
> I am pretty sure that the problem is with ISNUMBER, because if I add a
> number to the result of LEFT, I get a correct sum: =LEFT(G6)+1 equals 3.
>
> ISNUMBER is treating the value provided by LEFT as text instead of as a
> number.
Because there is an automatic conversion out of LEFT() that gives an string,
the + operation makes the conversion.
An easy way to have it working is involve the LEFT() with N() function
N(LEFT()), or doing an operation forcing the conversion LEFT()+0.
https://help.libreoffice.org/6.0/en-US/text/scalc/01/04060104.html?System=WIN&DbPAR=CALC#bm_id3153786
N
Returns the numeric value of the given parameter. Returns 0 if parameter is
text or FALSE.
If an error occurs the function returns the error value.
Syntax
N(Value)
Value is the parameter to be converted into a number. N() returns the numeric
value if it can. It returns the logical values TRUE and FALSE as 1 and 0
respectively. It returns text as 0.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180414/f10e3229/attachment.html>
More information about the Libreoffice-bugs
mailing list