How to Use the LEFT and RIGHT Functions in Microsoft Excel
RIGHT functions are used to return characters from the start or end of a string. The following explains how to select these functions and some possible uses.
This feature works the same in all modern versions of Microsoft Excel: 2010, 2013, and 2016.
To use the
RIGHT functions in Excel:
- On the Formulas tab, in the Function Library group, click the Insert Function command.
- In the Insert Function dialog box:
- Search on "LEFT" or "RIGHT" or, in the Or select a category drop-down box, select Text.
- Under Select a function, select LEFT or RIGHT.
- Click OK.
- In the Function Arguments dialog box:
- In the Text field, enter the cell containing the text string from which you wish to return characters.
- In the Num_Chars field, enter the number of characters you want to return.
- Click OK.
You could use the
RIGHT functions to:
- Return the area codes from a list of phone numbers (if the phone numbers are formatted as 315-333-4444, you would use the
LEFTfunction to return the first three characters).
- Return the zip codes from a list of addresses (if the addresses are formatted as Syracuse, NY 13210, you would use the
RIGHTfunction to return the last five characters).
- Return a piece of an identifying ID (if you have a list of IDs in which the first four digits represent a product, the next six digits represent the date, and the last three digits represent the store the product was sold from, you could use the
LEFTfunction to return the four digits representing the product or the
RIGHTfunction to return the three digits representing the store the product was sold from).