> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# Right

> Use the Sigma Right function to return a substring from the end of a string.

The **Right** function returns a substring from the end of a string. This substring will be the last n characters of the string, where n is the argument **number**.

This is useful to extract a relevant piece of a string that is at the end with a constant length.

## Usage

`Right(text, number)`

**text** (required)- The string from which a right substring will be returned

**number** (required)- The desired length of the returned substring.‍

## Examples

`Right(“Jane Doe”, 5)`

* Returns: “e Doe”

`Right("Apartment 217",3)`

* Returns: "217"

## Related resources

* [Find](/docs/find)
* [Left](/docs/left)
* [Mid](/docs/mid)