Skip to content
ArumSoft Learning
KO

    Text

    RIGHT function playground

    Returns the last characters of a text value.

    The playground runs in your browser. Nothing you type is sent anywhere.

    How RIGHT works

    RIGHT counts back from the end of the text and returns that many characters.

    To get everything after a symbol, subtract its position from the length: =RIGHT(E2,LEN(E2)-FIND("@",E2)).

    Syntax

    =RIGHT(text, [num_chars])
    ArgumentWhat it means
    textrequiredThe text or cell to take characters from.
    num_charsoptionalHow many characters to return from the end. Default 1.

    Examples

    FormulaWhat it doesResult
    =RIGHT(A2,4)The 4-digit serial at the end of the code.0042 · 0187 · 0005 · 1120 …
    =RIGHT(E2,LEN(E2)-FIND("@",E2))The email domain.example.com · example.com · example.org · example.net …
    =VALUE(RIGHT(A2,4))Turn the serial into a real number.42 · 187 · 5 · 1120 …

    Common mistakes

    Trailing spacesA space at the end becomes one of the returned characters. Use TRIM.
    Text resultRIGHT returns text, even for digits.

    Learn more

    Download the example workbook (.xlsx)

    The workbook has the same sample data and formulas, plus a practice sheet.

    Read the full tutorial →