Syntax
=RIGHT(text, [num_chars])Arguments
| Argument | Required | Description |
|---|---|---|
text | Required | The text |
num_chars | Optional | How many characters to take (1 when left out) |
How to use RIGHT
RIGHT takes 1 required argument and 1 optional argument. Type =RIGHT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=RIGHT("Sale Price", 5)Result =RIGHT("Stock Number")Result Related text functions
- REGEXTESTChecks whether any part of a text matches a regular expression pattern.
- REPLACEReplaces part of a text, given a start position and a number of characters, with other text.
- REPLACEBSame as REPLACE, counting bytes; without a double byte language set as default each character counts as one byte.
- REPTRepeats text a given number of times.
- RIGHTBSame as RIGHT, counting bytes; without a double byte language set as default each character counts as one byte.
- SEARCHReturns the position of one text inside another, ignoring case. Accepts the wildcards ? and *.
- SEARCHBSame as SEARCH, counting bytes; without a double byte language set as default each character counts as one byte.
- SPLITSplits text at a delimiter into a row of cells.
- SUBSTITUTEReplaces existing text with new text, everywhere or only in one occurrence.