1. Home
  2. Functions
  3. Text
  4. RIGHTB
TextCompatibility

RIGHTB function

Same as RIGHT, counting bytes; without a double byte language set as default each character counts as one byte.

Syntax

=RIGHTB(text, [num_chars])

Arguments

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

How to use RIGHTB

RIGHTB is kept so older workbooks keep working. It calculates the same way as RIGHT, which is the name to use in new formulas.

RIGHTB takes 1 required argument and 1 optional argument. Type =RIGHTB( 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.