Return a given number of characters from the end of a text string.
This function works the same in Google Sheets as it does in Excel — same syntax and arguments.
RIGHT(text, [num_chars])RIGHT extracts characters from the right of a string — handy for suffixes, last digits, or file extensions. Pair with LEN and FIND for dynamic extraction.
=RIGHT("INV-2026-0042", 4)Result: 0042
Returns the last 4 characters.
Combine RIGHT with FIND, or use TEXTAFTER in newer Excel: =TEXTAFTER(A2, ".", -1).