SheetRocks
Documentation/Formulas/RIGHT

RIGHT

Returns a substring from the right side of a given string.

Syntax

RIGHT(string, [num_chars])

Arguments

Argument Description Required
string The string from which to extract characters on the right. Required
num_chars The number of characters to extract from the right side of string. Defaults to 1. Optional

Examples

Get last character

=RIGHT("Hello World")
Result ⇒ d

Get last 5 characters

=RIGHT("Hello World", 5)
Result ⇒ World

Extract file extension

=RIGHT(A1, 3)
Result ⇒ pdf
A
1 document.pdf

Related Functions

Other Text functions:


← Back to Formula Reference