The RIGHT function

Returns the last characters of a text. The result is text, even when it looks like a number.

Syntax

RIGHT(text, [num_chars])
text
The text to take characters from.
num_chars (optional)
How many characters to return. Default 1.

Examples

C1=RIGHT(A2,4)
ABC
1Code2100
2DK-2100

In plain words: Take the last 4 characters of the code in A2.

C1=RIGHT(A2)
ABC
1Code0
2DK-2100

Practice RIGHT

Read the guide

Related functions