How to add hyphen between words in Excel?
Add hyphen between words by Text to Column and formula
Add hyphen between words by Find and Replace
Add hyphen between words by Kutools for Excel
The Text to Column function can separate the words into column based on space, and then you can use a formula to combine them with hyphen again.
1. Select the data list you want to add hyphens, and click Data > Text to Columns. See screenshot:
2. In the first step of Convert Text to Columns wizard, check Delimited option, and click Next > to step 2 of the Wizard, and check Space option under Delimiters section. See screenshot:
3. Click Next > to go the last step of the Wizard, select a cell to place the split data in Destination textbox. See screenshot:
4. Click Finish. Now the data list has been split into columns, and select a blank cell next to the split data, and enter this formula =C1&"-"&D1 (C1 and D1 is the split data), and then drag auto fill handle down to over the cell needed to apply this formula. See screenshot:
Actually, the Find and Replace function also can quickly replace spaces with hyphen.
1. Select the data you want to add hyphen symbols, and press Ctrl + H keys simultaneously to open the Find and Replace dialog.
2. In the Find and Replace dialog, under Replace tab, enter a space by space bar to the Find what textbox, and type a hyphen symbol to the Replace with textbox. See screenshot:
3. Click Replace All. A dialog pops out to remind you how many cells have been replaced successfully, please click the OK to close it. So far, all spaces have been replaced with hyphen in the selection. See screenshot:
4. Close the Find and Replace dialog.
If in some times, there is nothing to separate the words, how can you quickly add hyphen between words?
|Kutools for Excel, with more than 300 handy functions, makes your jobs more easier.|
With Kutools for Excel, you can use its Add Text to add hyphen symbol to the front of every uppercase character, and then apply the Remove by Position to remove first hyphen.
After free installing Kutools for Excel, please do as below:
1. Select the data you want to add hyphen, and click Kutools > Text > Add Text. See screenshot:
2. In the Add Text dialog, enter – into Text box, and then check Only add to option, and select Before uppercase letters from the drop down list. See screenshot:
3. Click Ok, and the front of each uppercase character has been added hyphen symbol, and click Kutools > Text > Remove by Position. See screenshot:
4. In the Remove by Position dialog, enter 1 into Numbers textbox, and check From left under Position section. See screenshot:
5. Click Ok, now the hyphen only be added between Words.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
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!