LEFT and RIGHT functions are returning incorrect results #959
Replies: 2 comments 1 reply
-
Hi @dksingla thanks for your report. This behaviour is caused by interpreting string Try this:
I see that this behaviour is not documented in our docs, so I'm creating an issue to do so: #960 Unit tests that demonstrate this: hyperformula/test/CellContentParser.spec.ts Lines 128 to 135 in fd0a405 |
Beta Was this translation helpful? Give feedback.
-
@dksingla We've just released the new version of the documentation with a detailed description of how to force a string value type. |
Beta Was this translation helpful? Give feedback.
-
Description
Below is an example of the LEFT formula
[["0003", "=LEFT(A1,2)"]];
It returns 3, instead, it should return 00 as LEFT takes the first argument of the typed string.
Beta Was this translation helpful? Give feedback.
All reactions