The RIGHT/RIGHTB function is one of the text and data functions. Is used to extract a substring from a string starting from the right-most character, based on the specified number of characters. The RIGHT function is intended for languages that use the single-byte character set (SBCS), while RIGHTB - for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.
The RIGHT/RIGHTB function syntax is:
RIGHT(string [, number-chars])
RIGHTB(string [, number-chars])
string is a string you need to extract the substring from,
number-chars is a number of the substring characters. It is an optional argument. If it is omitted, the funcion will assume it to be 1.
The data can be entered manually or included into the cells you make reference to.
To apply the RIGHT/RIGHTB function,
- select the cell where you wish to display the result,
- click the Insert function icon situated at the top toolbar,
or right-click within a selected cell and select the Insert Function option from the menu,
or click the icon situated at the formula bar,
- select the Text and data function group from the list,
- click the RIGHT/RIGHTB function,
- enter the required arguments separating them by comma,
- press the Enter button.
The result will be displayed in the selected cell.
Return to previous page