EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips RIGHT Formula in Excel
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (35+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

RIGHT Formula in Excel

By Madhuri ThakurMadhuri Thakur

RIGHT formula in excel

RIGHT Formula in Excel (Table of Contents)

  • Excel RIGHT Formula
  • How to Use RIGHT Formula in Excel?

Excel RIGHT Formula

Excel RIGHT function is a built-in function that is categorized under text/string function, which can be used to extract the specified number of substrings from a string starting from the rightmost letter or from the end of your string.

Syntax

right formula syntax

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

An argument in RIGHT Formula

  • text – Required argument which specifies the text/string or the cell containing the string you wanted to extract the substring from.
  • num_chars – This is an optional argument that specifies the number of characters extracted from the given string from the left-hand side or the start of the string.
  • If num_chars is omitted, by default value, 1 will be considered, which means the last character of your string will be published as a result.
  • If num_chars is greater than the length of your string (or a total number of characters in your string), the RIGHT formula will publish the entire string as an output.
  • If num_chars is negative, the RIGHT formula will give the #Value! error.

How to Use RIGHT Formula in Excel?

RIGHT Formula Excel is very simple and easy. Let’s understand how to use the RIGHT Formula in Excel with some examples.

You can download this RIGHT Formula Excel Template here – RIGHT Formula Excel Template

Example #1 – Extract Substring from a String

Suppose you have a string as shown in the cell given below.

right formula example 1-1

In Cell B1, start typing the formula for the RIGHT formula as shown below.

right formula example 1-2

The first argument for the RIGHT function is the text value from which we need to extract the substring. Mention A2 as the first argument for the Right Formula.

right formula example 1-3

Add numeric value 6 as a text specifier, which specifies the number of substrings you wanted to extract from the main string through the right-hand side.

right formula example 1-4

Press Enter Key to see the output. You’ll see an output as below.

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,725 ratings)

right formula example 1-5

This is how the excel Right function can be used. It just simply extracts the substring from the right of your string based on the number of characters argument you specify.

Example #2 – Extract Substring after a Specific Character

Suppose we have data like below, which has State Code along with Postal Code details.

right formula example 2-1

What if we need to extract the postal code details from this combined text? We can achieve this result with the combination of excel RIGHT, LENTH, and SEARCH functions together. Let’s see this step by step.

Start typing excel RIGHT Formula under Cell B2.

right formula example 2-2

You have to give the first argument as the string out of which you want to extract the substring. In this case, you can give A2 as a first argument because it contains the text value you want to extract the substring from.

right formula example 2-3

Use the LEN function to get the length of the cell containing the string.

right formula example 2-4

As the function will extract the data from the right, it should know the exact length of the text so that it can search the specific delimiter and return the substring expected.

Now, use the SEARCH function to find out the specific delimiter in the cell containing text and subtract it from the length of text in A2.

right formula example 2-5

Well, don’t get confused, though; it seems somewhat confusing through naked eyes. Let us try to evaluate the logic behind this.

  • SEARCH function gives the position at which the delimiter value occurs in our cell (3rd position). That position value is getting subtracted from the total length of cell A2 (length of cell A2 is 9, which includes 7 character letters, one comma, and one space). So, after the subtraction (9 – 3 = 6) we get 6 as a num_chars argument of RIGHT function. Thus, the RIGHT function extracts 6 characters from the right of the string.

Press Enter Key and drag the formula till row B6 to see the output of this formula.

right formula example 2-6

Here, one obvious question comes to our mind: why can’t we directly provide the num_chars argument in this formula. The reason is that not every time the delimiter would be at exactly the same position. Sometimes, it might be a different position (for example, in the case of full name). It would be difficult to provide the num_chars argument every time manually. Therefore we better automate things using formulas.

Example #3 – Store the Number Values Only

As we have discussed at the start of this article, the RIGHT formula is categorized under the text formula in excel. If you extract any numerical value, it will be stored as text. However, you might be in need to get those values as numbers only. Let’s see how we can do this.

Suppose we have data that contains the employee’s first name along with the employee code, which is a numeric value. We need to store this employee code as a number for further data calculations.

Values as Number

Start typing VALUE Formula in Cell B2 (We are doing this so that the value we are extracting can be stored as a number in excel).

Extracting Value

Use excel RIGHT as an argument under the VALUE function. It will take that formula as an argument because the RIGHT formula is for text manipulation, and the VALUE function can be used to convert a text value into a numerical value.

ext value into a numerical value

Give A2 as an argument to the RIGHT formula as it contains the string from which we need to extract the substring.

extract the substring

You can see that the employee ID is of length 4 from the right-hand side of the string for all the cells (It can also be manipulated using the LEN-SEARCH formula as we did in the previous example). Therefore, use 4 as a num_chars argument.

Argument Value

Press Enter key and Drag the Formula till Cell B6 to see the output.

Drag the Formula

You can see the output as in the screenshot above. The values from Cell B2 to B6 are aligned in column B. Therefore, you can say that those are being converted into numbers.

This is it from the article. Let’s wrap things up with some points to be remembered.

Things to Remember About RIGHT Formula in Excel

  • The default value for the num_chars argument is 1. It extracts the first character string from the right of the string.
  • The num_chars value should always be greater than or equal to 1. If it’s less than 1 (or negative in that case), it gives #VALUE! Error.
  • If the num_chars value is greater than the length of the entire string, the RIGHT formula gives an entire string as an output.

Recommended Articles

This is a guide to RIGHT Formula in Excel. Here we discuss How to use RIGHT Formula in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. VBA Right
  2. RIGHT Excel Function
  3. LEFT Formula in Excel
  4. Write Formula in Excel
Popular Course in this category
All in One Excel VBA Bundle (120+ Courses)
  120+ Online Courses |  500+ Hours |  Verifiable Certificates |  Lifetime Access
4.9
Price

View Course

Related Courses

Excel Training (23 Courses, 9+ Projects)4.9
Excel Data Analysis Training (17 Courses, 8+ Projects)4.8
Excel for Finance Training (18 Courses, 7+ Projects)4.7
1 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download RIGHT Formula Excel Template

EDUCBA

Download RIGHT Formula Excel Template

EDUCBA

डाउनलोड RIGHT Formula Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more