How to Use the LEFT and RIGHT Functions in Microsoft Excel
See Microsoft Excel: Tips and Tricks for similar articles.The LEFT
and 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 LEFT
and 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 LEFT
and 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
LEFT
function 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
RIGHT
function 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
LEFT
function to return the four digits representing the product or theRIGHT
function to return the three digits representing the store the product was sold from).
Related Articles
- Use Excel 365 to create a Sorting Hat and House Point Scoreboard
- How to Use the VLOOKUP Function in Microsoft Excel
- How to Group and Ungroup Data in a List in Microsoft Excel
- How to Use the Fill Handle in Microsoft Excel
- How to Record a Macro in Microsoft Excel
- How to Use the Quick Analysis Tool in Microsoft Excel
- How to Format Numbers in Microsoft Excel
- How to Add Shapes in Microsoft Excel
- How to Quickly Name Multiple Single Cells in Microsoft Excel
- How to Insert a Slicer in a Pivot Table in Microsoft Excel
- How to Create a Pivot Table Timeline in Microsoft Excel
- How to Insert a Chart in Microsoft Excel
- How to Set Locale in Microsoft Excel
- How to Convert a List to a Table in Microsoft Excel
- How to Use the LEFT and RIGHT Functions in Microsoft Excel (this article)
- How to Add a Macro to the Quick Access Toolbar in Microsoft Excel
- How to Insert Clip Art in a Microsoft Excel Worksheet
- How to Select a Range of Cells in Microsoft Excel
- How to Use Smart Lookup in Microsoft Excel
- How to Split the Worksheet Window in Microsoft Excel
- Microsoft Excel 2016 Isn't Much Different from Excel 2013 or Excel 2010
- How to Accept and Reject Changes in Microsoft Excel
- How to Insert a Pivot Table in Microsoft Excel
- How to Use Ink Equations in Microsoft Excel
- How to Create a Formula That Spans Multiple Microsoft Excel Worksheets
- How to Use the CONCATENATE Function in Microsoft Excel
- How to Set Tracking Options in Microsoft Excel
- How to List Day Names in Excel without Dates
- How to Freeze Panes in Microsoft Excel