# RIGHT

## Content

This function returns the specified rightmost characters from a text value.

## Syntax

`RIGHT(text, [num_chars])`

## Arguments

This function has these arguments:

| Argument | Description |
| -------- | ----------- |
| *text* | [Required] 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.

## Examples

`RIGHT("Total Sales",5)` gives the result Sales
`RIGHT("Collie dog")` gives the result g