RIGHT
function RIGHT(arg1: string = null, arg2: number = null): string
Description
Returns the specified number of characters from the end of a text string.
Parameters
- arg1
string
null The text string that contains the characters to extract.
- arg2
number
null A number of the substring characters. If it is omitted, the function will assume it to be 1.
Returns
string
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.RIGHT("Online Office", 2));