[]
This function returns the specified rightmost characters from a text value.
RIGHT(text, num_chars)
This function has these arguments:
Argument | Description |
---|---|
text | Text string from which you want to return characters |
num_chars | [Optional] Number of characters to return; if omitted, calculation uses one (1); if not an integer, the number is truncated |
The text argument can be a string, a formula that returns a string, or a reference to a cell containing a string.
The num_chars argument has these rules:
The num_chars argument must be greater than or equal to zero.
If the num_chars argument is greater than the length of text, this function returns all text.
Accepts string data for the text argument and numeric data for the num_chars argument. Returns string data.
RIGHT(""Total Sales"",5)
gives the result Sales
RIGHT(""Collie dog"")
gives the result g