EXCEL SOLUTIONS

RIGHT function in Excel

Takes a number of characters from the end of some text.

BeginnerText

Syntax

=RIGHT(text, [num_chars])
Arguments of RIGHT
ArgumentWhat it means
textThe text or cell.
num_charsHow many characters. 1 if left out.

Examples with results

Every result below is calculated by the practice engine on the sample data shown, not typed in by hand.

Examples that need no data

  • =RIGHT("INV-2025-0042",4)0042

    The last four characters

Stock levels (fictional)

RowABCDE
1SKUItemOn handReorder levelUnit cost
2A-100Hinge 40 mm120500.8
3A-110Bracket set18304.2
4A-120Oak board61022
5A-130Zinc pin3001000.15
6A-140Door handle9127.5
Stock levels (fictional) Row 1 holds the headings. All data is fictional. Dates are year-month-day.

Download CSV

  • =RIGHT(A2,3)100

    The number part of a SKU

Try it yourself

Change the formula or switch to other sample data.

Press Calculate to see the result.

The practice box runs in your browser with BDK’s own calculator, which covers about 60 common functions. Cell references work as in Excel (B2, B2:B9). Your formulas are not saved or sent anywhere. For anything unusual, check the result in Excel itself.

How people use RIGHT at work

  • Administration

    The last four digits of a reference.

    =RIGHT(A2,4)1001
    Data: Customer invoices (fictional)
  • Operations

    Pull the numeric part of a SKU.

    =VALUE(RIGHT(A3,3))110
    Data: Stock levels (fictional)

Common mistakes and tips

  • If num_chars is larger than the text, you get the whole text.

Works in

All versions of Excel, and Google Sheets.

Related formulas

LEFTMIDLEN

Need Something Different? Let’s Talk.

Looking for different features or something built around your workflow? Share your idea with us.