<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:miguelangelrv@libreoffice.org" title="m.a.riosv <miguelangelrv@libreoffice.org>"> <span class="fn">m.a.riosv</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - ISNUMBER is treating the value provided by LEFT as text instead of as a number."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=117002">bug 117002</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>UNCONFIRMED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>miguelangelrv@libreoffice.org
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>NOTABUG
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - ISNUMBER is treating the value provided by LEFT as text instead of as a number."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=117002#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - ISNUMBER is treating the value provided by LEFT as text instead of as a number."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=117002">bug 117002</a>
from <span class="vcard"><a class="email" href="mailto:miguelangelrv@libreoffice.org" title="m.a.riosv <miguelangelrv@libreoffice.org>"> <span class="fn">m.a.riosv</span></a>
</span></b>
<pre>(In reply to simm.emanem from <a href="show_bug.cgi?id=117002#c0">comment #0</a>)
<span class="quote">> .............
> 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.</span >
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.
<a href="https://help.libreoffice.org/6.0/en-US/text/scalc/01/04060104.html?System=WIN&DbPAR=CALC#bm_id3153786">https://help.libreoffice.org/6.0/en-US/text/scalc/01/04060104.html?System=WIN&DbPAR=CALC#bm_id3153786</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>