ExcelFlux

RIGHTB function

the rightmost characters from a text value.

Text · Guided Excel example

Where can you use it?

Data preparation and reporting teams. Use this group to clean, split or reformat IDs, names and descriptions before using them in reports.

Scenario in the workbook

Take two ending bytes. For multibyte text, check where a byte boundary falls.

A worked example from the workbook

RowA
6Code
7ABC-X
8AB-42
9SKU-X
Record 1
=RIGHTB(A7,2)

Illustrative output-X

See the inputs and instructions for all 3 examples

Worked examples

Take two ending bytes. For multibyte text, check where a byte boundary falls.

Column F provides expressions as text. Satisfy the stated requirements, then paste into an empty Excel cell and compare with column G. The result was not verified in desktop Excel here.

Row A
6 Code
7 ABC-X
8 AB-42
9 SKU-X
Trial Expression Sample output
Record 1 =RIGHTB(A7,2) -X
Record 2 =RIGHTB(A8,2) 42
Record 3 =RIGHTB(A9,2) -X
Microsoft Excel reference