How to Add Missing Spaces Between Names and Addresses in Excel
Question details
The user needs to bulk add missing spaces to combined names and addresses in a large Excel list to improve readability.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Cleaning up imported or improperly formatted data where spaces between names and street addresses have been removed.
- Observed behavior
- Hundreds of entries are merged together without spaces, making the data difficult to read, filter, or process.
Before attempting bulk data cleaning, ensure your data has a somewhat consistent pattern (like capital letters indicating a new word or a number starting an address), and replace sensitive personal information with dummy data if sharing the file online for help.
Use Flash Fill to Automatically Add Spaces
Flash Fill is the fastest and most efficient way to split glued text by recognizing the manual pattern you type.
Excel's Flash Fill feature uses artificial intelligence to detect patterns in your data entry. By manually correcting the first row, you train Excel on where the spaces should be placed.
Right-click the column header immediately to the right of your combined name and address data, and select 'Insert' to create a blank column.
In the first cell of the new blank column, manually type the name and address exactly as it should appear, with all the proper spaces inserted, and press Enter.
Select the empty cell directly below your typed entry. Press the keyboard shortcut Ctrl + E, or go to the Data tab on the ribbon and click 'Flash Fill'. Excel will automatically populate the remaining rows based on your pattern.

Separate Text Using Power Query
If names are formatted in CamelCase or the address starts with a number, Power Query can cleanly split the columns.
Clean and Format Your Spreadsheets Easily with WPS Office
WPS Spreadsheet provides powerful and intuitive data cleaning tools like Flash Fill, Text to Columns, and an extensive library of text formulas to quickly separate merged names and addresses without complex coding.
- 1. Open your file in WPS: Launch WPS Spreadsheet and open the document containing your merged name and address data.
- 2. Use Flash Fill: Type the correctly spaced name and address format in the adjacent column, select the next empty cell, and press Ctrl+E.
- 3. Save your cleaned data: Review the automatically generated spaces to ensure accuracy, then save your file seamlessly as an .xlsx document.

Frequently Asked Questions
Why isn't Flash Fill working accurately for all my names and addresses?
Flash Fill relies on recognizable patterns. If your data lacks consistent structure—such as erratic capitalization, varying middle names, or addresses without street numbers—Excel might not accurately guess where to insert spaces. Manually correcting a few errors often helps train the tool.
Is there a formula to automatically add a space before every capital letter?
Standard Excel functions do not offer a simple single formula for this exact scenario. However, in newer versions of Excel, you can use the REGEXREPLACE function to target uppercase letters, or alternatively use a custom VBA macro to insert spaces before capital letters.
Can I use Text to Columns to add these missing spaces?
Text to Columns is generally used to split data into separate columns rather than adding spaces within a single cell. However, you can use Text to Columns with Fixed Widths to split the data if character counts are identical across rows, and then use the CONCAT or TEXTJOIN function to combine them back with spaces.




