ReferenceFunctionsText Functions
RIGHT
Returns the rightmost characters from a text value.
Summary
Returns the rightmost 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 last three characters
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
ine
Default count is one
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
c
Related functions
FAQ
If num_chars is larger than the text length, what is returned?
RIGHT returns the full text when the requested count exceeds available characters.
Runtime metadata
Category
Text
Signature
RIGHT(arg1…: Any)This function accepts a repeating argument pattern (min args: 1).
Arity
min 1, max variadic
Arguments
arg1Any · Scalar
Caps
PURE
Source