How to extract text before or after dash from cells in Excel?
Most of us may like to use the dash separator to separate the contents within a cell, but, sometimes, we need to extract the text string before or after the dash for some purpose as following screenshot shown. How could you extract the text before or after the dash from cells at once in Excel?
![]() |
Extract text before or after dash with formulas Extract text before or after dash with Text to Columns feature |
Extract text before or after dash with formulas
To extract the text string before or after a dash, the following simple formulas may help you.
Extract text before dash:
Please enter this formula: =LEFT(A2,FIND("-",A2)-1) into a blank cell besides your data, see screenshot:
And then drag the fill handle down to the cells that you want to apply this formula, you can see all text before the dash has been extracted from the cell:
Extract text after dash:
Type this formula: =REPLACE(A2,1,FIND("-",A2),"") into a blank cell, then drag the fill handle to the range of cells that you want to contain this formula, and all the text after the dash has been extracted as follows:
![]() |
![]() |
![]() |
Tips: In above formulas, A2 is the cell you need to extract text from, you can change it as you need.
Extract text before or after dash with Text to Columns feature
In Excel, the Text to Columns feature also can help you to split the cell content from one cell into two cells separately by the dash.
1. Select the data range that you want to split by dash.
2. Click Data > Text to Columns, see screenshot:
3. In step 1 of the Convert Text to Columns Wizard, select Delimited option, see screenshot:
4. And then click Next button, in step2 of this wizard, check Other option under Delimiters section, and enter the dash (-) symbol into the text box, see screenshot:
5. And then click Finish button, the selected cells have been split into two columns by the dash. See screenshots:
![]() |
![]() |
![]() |
Extract text before or after dash with Kutools for Excel
Kutools for Excel’s Split Cells feature may help you split the cell contents into multiple columns or rows by any separators, such as comma, dash, carriage return, etc. See below demo. Click to download Kutools for Excel!
After installing Kutols for Excel, please do as follows:
1. Select the data range that you want to extract the values before or after the dash.
2. Then click Kutools > Merge & Split > Split Cells, see screenshot:
3. In the Split Cells dialog box, select Split to Columns under the Type section, and then enter the dash – into the Other text box under the Specify a separator, see screenshot:
4. Then click Ok button, and another prompt box will pop out to remind you select a cell where you want to put the result, see screenshot:
5. And then click OK, the cell values in cells have been split into two columns by dash. See screenshot:
Download and free trial Kutools for Excel Now !
Demo: Extract text before or after dash with Kutools for Excel
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
- Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!







