# RIGHT

The **RIGHT** function returns the last character or characters in a text string, based on the number of characters you specify. When used with a number, the resultant value is stored as text.

### Syntax

```javascript
right(text/number, [num_chars])
```

### Arguments

text/number - Required. The text string containing the characters you want to extract.

num\_chars - Required. Specifies the number of characters you want RIGHT to extract.

### Example

```javascript
right([Full Name],6)
//When the field Full Name has the value Johny Rivers, this will return Rivers
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FCuayM0XjoyNLkqmZVDAO%2Fimage.png?alt=media&#x26;token=2fc17996-fce1-4470-a878-9e74fa9fa07c" alt=""><figcaption><p>Right function</p></figcaption></figure>

### **Excel equivalent**

[RIGHT](https://support.microsoft.com/en-us/office/right-rightb-functions-240267ee-9afa-4639-a02b-f19e1786cf2f)
