=RIGHT(text, [num_chars])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
Need more than a single RIGHT formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.
text:
The text string from which you want to extract the rightmost characters. This can be a text string, a cell reference, or a formula that returns a text string.
num_chars:
The number of characters you want to extract from the right side of the text. This must be a positive integer. If omitted, the default value is 1.
The RIGHT function in Excel is a text manipulation tool that allows you to extract a specified number of characters from the end of a text string. This function is particularly useful when you need to retrieve a portion of text that is located at the end of a string, making it easier to analyze or format data.
In simpler terms, the RIGHT function helps you pull out specific characters from the right side of a text string, which can be helpful in various data processing tasks.
Imagine you have a list of product codes in an Excel spreadsheet, and you want to extract the last three characters from each code to identify the product type.
| Product Code |
|---|
| ABC123 |
| DEF456 |
| GHI789 |
| JKL012 |
| MNO345 |
You want to extract the last three characters from each product code.
To extract the last three characters from the product codes, you would use the RIGHT formula as follows:
=RIGHT(A2, 3)When you apply the formula to each product code, it will return the following results:
| Product Code | Extracted Characters |
|---|---|
| ABC123 | 123 |
| DEF456 | 456 |
| GHI789 | 789 |
| JKL012 | 012 |
| MNO345 | 345 |
Here, the extracted characters are the last three digits of each product code.
The RIGHT function is particularly useful when you need to manipulate text data, such as extracting specific identifiers, suffixes, or codes from a larger string. It allows you to streamline data processing and enhance your data analysis capabilities.
Understanding how to use the RIGHT function can significantly enhance your data manipulation skills in Excel, enabling you to work more efficiently with text data.
Happy extracting!
You have a table where Column A contains product codes, and you want to extract the last three characters of each product code to identify the product category. You can use the RIGHT function to achieve this, allowing for easy categorization and analysis of products based on their codes. This simplifies inventory management and aids in reporting without the need for more complex text manipulation functions.
Beyond the RIGHT function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.
Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.
Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.
Browse our complete library of Excel formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.