1. Home
  2. Functions
  3. Text
  4. RIGHT

RIGHT function

Returns the last characters of a text.

Syntax

=RIGHT(text, [num_chars])

Arguments

ArgumentRequiredDescription
textRequiredThe text
num_charsOptionalHow many characters to take (1 when left out)

How to use RIGHT

RIGHT takes 1 required argument and 1 optional argument. Type =RIGHT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=RIGHT("Sale Price", 5)Result "Price"
=RIGHT("Stock Number")Result "r"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.