Excel RIGHT Function
Chala mitrano — rIGHT cuts from the end. Last 4 of a phone, last 3 of an order ID.
चला मित्रांनो — RIGHT शेवटीून कापते. Phone चे शेवटचे 4, order ID चे शेवटचे 3.
चलो दोस्तों — RIGHT आखिरी से काटता है. Phone के आखिरी 4, order ID के आखिरी 3.
Purpose
Return the last (rightmost) characters from a text string — last 4 of an ID, a file extension, or masked card digits.
Return value
Text taken from the end of the original string.
Syntax
Arguments
| Argument | Required? | Description |
|---|---|---|
text | Required | The full text or cell reference. |
num_chars | Optional | How many characters from the right. Default 1. |
Version
All Excel versions. LibreOffice Calc compatible.
How to use — Why → What → How
Why: A Surat export stores ORD-2026-8841 style IDs. Finance in Manchester only wants the last 4 digits for a short voucher column. Retyping is slow and error-prone. Last-four patterns show up in support scripts and voucher keys. Pair RIGHT with LEN checks so mixed-length IDs do not silently slice the wrong tail. Prefer TEXTAFTER when a delimiter is reliable.
What: RIGHT returns N characters from the end as text. Like LEFT, the original cell stays unchanged. Read every argument in the table once before you type; each one changes the answer on purpose.
How — numbered steps:
- Select the result cell.
- Type =RIGHT(
- Click the source text cell.
- Comma, then how many characters from the end.
- Press Enter and fill down.
- Spot-check rows where source length varies.
- TRIM first when CSV imports leave trailing spaces.
- For extensions, confirm length or locate the last dot.
Ravindra Bagale's Tip
Friends, mixed .xlsx and .csv need a last-dot approach — blind RIGHT(A2,3) fails on .xlsx.
Ravindra Bagale's Tip – मराठी
मित्रांनो, .xlsx आणि .csv मिसळले तर शेवटच्या dot ची पद्धत वापरा — RIGHT(A2,3) .xlsx वर चुकते.
Ravindra Bagale's Tip – हिंदी
दोस्तों, .xlsx और .csv मिले हों तो आखिरी dot वाला तरीका अपनाओ — RIGHT(A2,3) .xlsx पर फेल होता है.
Ravindra Bagale's Tip
Friends, sleep on RIGHT and rebuild example 1 tomorrow without looking. That five-minute test beats rereading the whole page.
Ravindra Bagale's Tip – मराठी
मित्रांनो, RIGHT वर एक रात्र झोपा आणि उद्या उदाहरण 1 न पाहता पुन्हा लिहा. पाच मिनिटांची ही चाचणी पूरे पृष्ठ वाचण्यापेक्षा जास्त मदत करते.
Ravindra Bagale's Tip – हिंदी
दोस्तों, RIGHT पर एक रात सोकर कल उदाहरण 1 बिना देखे फिर लिखो. पाँच मिनट का यह टेस्ट पूरा पेज पढ़ने से ज़्यादा मदद करता है.
Ravindra Bagale's Tip
Friends, after you finish RIGHT, open yesterday’s real workbook and find one place this function would have saved ten minutes. That habit turns lessons into salary skills.
Ravindra Bagale's Tip – मराठी
मित्रांनो, RIGHT शिकून झाल्यावर कालची खरी वर्कबुक उघडा आणि शोधा जिथे हे फंक्शन दहा मिनिटे वाचवू शकले असते. ही सवय धड्यांना पगाराची कौशल्ये बनवते.
Ravindra Bagale's Tip – हिंदी
दोस्तों, RIGHT सीखने के बाद कल की असली वर्कबुक खोलो और ढूँढो जहाँ यह फ़ंक्शन दस मिनट बचा सकता था. यही आदत पाठ को सैलरी स्किल बनाती है.
Download practice file: practice-right.xlsx (includes sheet About this data, practice sheets, and Answers).
Worked examples
1) Last 4 of order ID
Surat orders.
| Order ID | Amount (₹) |
|---|---|
| ORD-2026-8841 | 12500 |
| ORD-2026-8842 | 9800 |
| ORD-2026-9001 | 15200 |
Result: 8841
What it means: Short voucher key 8841.
2) File extension letters
Manchester export list.
| File |
|---|
| sales-jan.pdf |
| sales-feb.pdf |
| summary.pdf |
Result: pdf
What it means: Extension letters without the dot.
3) Default one character
Grade at the end.
| Code |
|---|
| MATH-A |
| SCI-B |
Result: A
What it means: Last character only.
4) Masked card last4
Support desk.
| Masked |
|---|
| **** **** **** 4219 |
| **** **** **** 1002 |
Result: 4219
What it means: Customer confirmation digits.
5) With TRIM
Trailing spaces from CSV.
| Raw |
|---|
| 8841 |
| 9001 |
Result: 8841
What it means: Spaces removed before counting.
6) Dot plus extension
Keep the dot.
| File |
|---|
| q1.xlsx |
| q2.xlsx |
Result: .xlsx
What it means: Five characters from the end include the dot.
Common errors and fixes
Notes and tips
- RIGHT returns text.
- Combine with VALUE when the tail is a pure number you must calculate with.
- TEXTAFTER is cleaner when a delimiter marks the start of the tail.
- Call centres in Pune and billing teams in Leeds both ask for last-4 patterns. Teach RIGHT beside LEFT so students see the symmetry. Stress TRIM on CSV imports every time.
- RIGHT vs TEXTAFTER: TEXTAFTER splits on a delimiter without counting characters. RIGHT vs MID: MID needs a start position counted from the left.
- Fictional sample data only — practice amounts and names are made for learning.
- After the 10 tasks, re-read the errors table once.
- Say the business question in plain words before you type equals.
- Keep a scrap sheet for experiments so you do not overwrite class files.
- Fill formulas down only after the first row looks correct.
- When two answers look possible, write both on paper then test in Excel.
- Last-four patterns show up in support scripts and voucher keys. Pair RIGHT with LEN checks so mixed-length IDs do not silently slice the wrong tail. Prefer TEXTAFTER when a delimiter is reliable.
- Revisit the RIGHT errors table after the quiz — most classroom mistakes are listed there.
- Build one brand-new example on a blank sheet from memory before you close the laptop.
- If a result looks wrong, check spaces with LEN and case with exact equals before changing the formula.
- Share one tip from this page with a classmate in Marathi or Hindi — teaching locks the idea.
- Keep currency symbols consistent inside a single report column even when practice mixes ₹ $ £ € across examples.
- When Excel versions differ at home and in class, write the fallback formula under the modern one in a comment cell.
- Print the revision card for RIGHT and stick it near your monitor for one week of real worksheets.
- When helping a junior, ask them to predict the result before pressing Enter — prediction builds judgement.
- Keep a personal notebook of the one mistake you make most often with this function; review it monthly.
In real work
Call centres in Pune and billing teams in Leeds both ask for last-4 patterns. Teach RIGHT beside LEFT so students see the symmetry. Stress TRIM on CSV imports every time. Last-four patterns show up in support scripts and voucher keys. Pair RIGHT with LEN checks so mixed-length IDs do not silently slice the wrong tail. Prefer TEXTAFTER when a delimiter is reliable. Classroom drill: write three brand-new RIGHT formulas on a blank sheet using names from your own city — if you can invent them without the page open, you own the skill. Then break one formula on purpose (wrong case, wrong start, extra space) and watch the error; recovering from that break is half of interview readiness.
How it compares
RIGHT vs TEXTAFTER: TEXTAFTER splits on a delimiter without counting characters. RIGHT vs MID: MID needs a start position counted from the left.
Interview corner
- Does RIGHT return a number?
- No — text. Use VALUE if needed.
- How do you get characters after the last dash?
- TEXTAFTER with instance -1, or RIGHT with a calculated length.
- What is the default num_chars?
- 1.
Related functions
Practice tasks (10)
- Task 1. Return last 4 of ORD-2026-8841 in B2.Hint: count from the right edge.
- Task 2. Fill down for three Surat orders.Hint: relative references.
- Task 3. Get pdf from sales-jan.pdf.Hint: three letters.
- Task 4. Default RIGHT on MATH-A.Hint: omit the second argument.
- Task 5. Last 4 from a masked card string.Hint: spaces inside the mask count as characters.
- Task 6. TRIM then RIGHT 4 on a messy cell.Hint: nest TRIM.
- Task 7. Return .xlsx including the dot.Hint: five characters.
- Task 8. Note whether RIGHT result is text or number.Hint: try VALUE around it.
- Task 9. Build a last-3 helper for each Order ID.Hint: change the count only.
- Task 10. Write one sentence on when TEXTAFTER beats RIGHT.Hint: think delimiter.
Quick quiz
Answers: Q1=8841, Q2=Text, Q3=1, Q4=TRIM, Q5=Last-dot logic or TEXTAFTER (check after you try).
Revision card
Standalone card (no tip or photo strip). QR opens this lesson. Download the PNG and revise offline.