Excel RIGHT function🔤 Right characters
The RIGHT function: Right characters. Last digits of a code. This page shows the syntax, a worked example with its result and how the formula reads.
What does RIGHT do?
Right characters. Last digits of a code
RIGHT syntax
=RIGHT(text, [num_chars])
Arguments in square brackets [ ] are optional · argument names follow Microsoft's documentation
RIGHT example with the result
=********
👑 Ready-to-use example formula for VIP supporters only · Become VIP
Formula in cell B2 Yellow cells = result
| A | B | |
|---|---|---|
| 1 | Product code | Last 4 |
| 2 | BKK-0451 | 0451 |
How it reads: Takes the last 4 characters
Frequently asked questions about RIGHT
What does RIGHT do?
Right characters. Last digits of a code
What does the RIGHT example return?
The example formula in cell B2 gives 0451.
Which Excel versions have RIGHT?
It has been in Excel for many versions and works in the versions in common use today, including Excel for Microsoft 365.
🕸️ More text formulas and related ones
Source: support.microsoft.com
Checked 17 November 2026 · by Black Sheep Barn · example results are calculated by the app's example engine, for learning