Excel RIGHT Function

RIGHT returns a chosen number of characters from the end of a text value.

Use it to extract suffixes, final ID digits, file extensions, or the last part of a code when the needed text sits at the right edge.

1
Choose text The source string to read
2
Choose a length How many characters to return
3
Return the suffix The result keeps the ending characters

RIGHT syntax & arguments

Syntax

=RIGHT(text, [num_chars])
Required Optional
  1. 1

    text

    Required

    The text value, cell reference, or formula result to extract characters from.

  2. 2

    num_chars

    Optional

    The number of characters to return from the right side of text. If omitted, RIGHT returns one character.

Example

=RIGHT(A2, 3)

Return the last three characters from the text in A2.

RIGHT caveats

RIGHT is simple when the length is fixed, but it can produce misleading results when the source value is not clean text.

  • The count starts at the last character

    num_chars tells Excel how many characters to return from the right side, not where to begin.

  • Omitting the length returns one character

    If num_chars is left out, RIGHT returns only the last character of the text.

  • Negative lengths return an error

    A negative num_chars value causes a #VALUE! error.

  • Dates and numbers may not behave like display text

    RIGHT works on the underlying text representation, so formatted dates or numbers may need to be converted before extraction.

Need a variable length? Combine RIGHT with FIND when a delimiter marks where the extracted text should start.

Intro RIGHT practice problem

Solve the intro problem directly here, or open it on its own page.

Open full problem

Advanced RIGHT practice problems

Use RIGHT alongside other Excel functions in realistic, less-prescriptive challenges.