# RIGHT

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## 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* | 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.

## Data Types

Accepts string data for the *text* argument and numeric data for the *num\_chars* argument. Returns string data.

## Examples

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

## Version Available

This function is available in product version 1.0 or later.

## See Also

[LEFT](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsFtoK/FunctionLEFT) \| [MID](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsMtoQ/FunctionMID) \| [Text Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functstext)