How to add spaces after commas in Excel?
When you copy or import some data from other applications, you may get the data which contains commas but not have spaces after them. But now, you want to add a space after every comma to make the text string more clearly and standard as following screenshot shown. Do you have any good ideas to deal with this job?
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2021 and 365; Supports all languages; Easy deploying in your enterprise or organization.
To add the spaces after commas in your worksheet, you can apply the following simple formula, please do as these:
1. Next to your data, please enter this formula =TRIM(SUBSTITUTE(A2,",",", ")), (A2 contains the data that you want to add spaces), see screenshot:
2. Then drag the fill handle over to the cells which you want to apply this formula, and all the text strings have been inserted a space after every comma, see screenshot:
In Excel, you can also use the Find and Replace function to replace the comma by comma + space, you can do as following steps:
1. Select the data range that you want to add spaces after commas.
2. Then click Home > Find & Select > Replace or you can press Ctrl + H keys to open the Find and Replace dialog box.
3. In the opened Find and Replace dialog, enter a comma into the Find what text box, and type a comma and a space into the Replace with text box, see screenshot:
4. And then click Replace All button, the spaces have been inserted after the commas.