How to create space after comma in Excel
When we copy data and Excel tables from the internet, we often encounter formatting errors, errors in displaying excess spacing in Excel, and missing spaces after the comma, causing the words to stick together and look quite confusing. With a simple table with little data, you can adjust it manually, but in reality this is not feasible because it is quite manual. To create a space after a comma in Excel, you can use a function or immediately use an available tool to do it, with a quick and very simple method. The article below will guide you to add spaces after commas in Excel.
1. Create space after comma using Excel function
To create space after the comma, we will combine the TRIM function with the SUBSTITUTE function. In the first cell, enter the formula =TRIM(SUBSTITUTE(B22,",",", ")) and then press Enter.
You will then get the results of characters with extra spaces after the comma. Drag the first cell results down to the remaining cells to complete the table.
2. Create space after comma using Find and Replace Excel
In addition to using the Excel function above, we can also immediately use the Find and Replace tool in Excel to change characters in the Excel data table.
First, highlight the data area you want to change and then press Ctrl + H to open the Find and Replace tool.
In the new interface that appears, click on the Replace tab . In the Find what section , enter a comma , and in Replace with , enter a comma and a space . Click Replace All to replace everything.
You will now see a notification about the number of positions that need to be replaced, click OK to complete. The resulting data has been separated by commas.
You should read it
- How to use the function to delete spaces in Excel
- Instructions on how to count words in cells in Excel
- Basic Excel functions that anyone must know
- Save time with these text formatting functions in Microsoft Excel
- Difference between REPLACE and SUBSTITUTE in Microsoft Excel
- SUBSTITUTE function - The function replaces text strings in Excel
- How to use Hlookup function on Excel
- How to use the SUM function to calculate totals in Excel
- How to use the LEN function in Excel
- How to fix the SUM function doesn't add up in Excel
- How to use the MOD function and QUOTIENT function in Excel
- How to use MID functions to get strings in Excel