Text function

Google Sheets RIGHT function

Returns a number of characters from the end of a piece of text.

Syntax

=RIGHT(string, [number_of_characters])
stringThe text to take characters from.
number_of_charactersOptional. How many characters to return (default 1).

Try it

Edit the formula and the result updates instantly. Click a cell to add its reference.

▦ Customer import
fx
Result: A
ABC
1Name (raw)Order codeCity
2 jane DOE NY-2041-ANew York
3MARK smithCA-1187-BFresno
4ana lopezTX-3302-CAustin
5li weiWA-0459-ASeattle
6 OMAR faroukFL-7720-BTampa
7sara KIMNY-5521-CBuffalo

Examples

These use the sample sheet above.

→ A

The class letter at the end of the code.

→ sno

The last three letters of the city.

Tips & common mistakes

Related functions