ReferenceFunctionsText Functions
LEFT
Returns the leftmost characters from a text value.
Summary
Returns the leftmost characters from a text value.
Remarks
num_charsdefaults to1when omitted.- Negative
num_charsreturns#VALUE!. - If
num_charsexceeds length, the full text is returned. - Non-text values are coerced to text before slicing.
Examples
Take first two characters
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
Fo
Default count is one
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
D
Related functions
FAQ
What if num_chars is negative?
LEFT returns #VALUE! when num_chars is below zero.
Runtime metadata
Category
Text
Signature
LEFT(arg1…: Any)This function accepts a repeating argument pattern (min args: 1).
Arity
min 1, max variadic
Arguments
arg1Any · Scalar
Caps
PURE
Source