Syntax
=RIGHT(text, [num_chars])
| Argument | What it means |
|---|---|
text | The text or cell. |
num_chars | How 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)The last four characters
Stock levels (fictional)
| Row | A | B | C | D | E |
|---|---|---|---|---|---|
| 1 | SKU | Item | On hand | Reorder level | Unit cost |
| 2 | A-100 | Hinge 40 mm | 120 | 50 | 0.8 |
| 3 | A-110 | Bracket set | 18 | 30 | 4.2 |
| 4 | A-120 | Oak board | 6 | 10 | 22 |
| 5 | A-130 | Zinc pin | 300 | 100 | 0.15 |
| 6 | A-140 | Door handle | 9 | 12 | 7.5 |
=RIGHT(A2,3)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.
Data: Customer invoices (fictional)=RIGHT(A2,4) - Operations
Pull the numeric part of a SKU.
Data: Stock levels (fictional)=VALUE(RIGHT(A3,3))
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.
Need Something Different? Let’s Talk.
Looking for different features or something built around your workflow? Share your idea with us.