How to Combine and Split Text in Excel Using Formulas
Question details
The user needs to efficiently combine separate city and state values into one column, and split full two-word names into separate columns across a dataset containing thousands of rows using formulas.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Formatting and managing large datasets where text data like names and locations need to be merged or separated systematically.
- Observed behavior
- The desired outcome is correctly merged text with spaces and accurately separated first and last names across the entire column.
Ensure your text data has consistent separators, such as a single space between words, and remove any leading or trailing spaces to avoid formula errors.
Use Text Formulas to Combine and Split Data
Utilize CONCAT to join text strings together, and a combination of LEFT, MID, and SEARCH functions to extract specific parts of a text string.
The CONCAT function is a straightforward way to join text from multiple cells, allowing you to insert spaces or punctuation between them. To split text, combining the SEARCH function with LEFT or MID helps Excel pinpoint exactly where a word ends based on a specific character, like a space.
Assuming the City is in A3 and the State is in B3, click on cell C3 and enter the formula =CONCAT(A3," ",B3) to join the two cells with a space in between.
To split a two-word value located in A3, select the destination cell for the first word and type the formula =LEFT(A3,SEARCH(" ",A3)-1). This finds the space and pulls all text before it.
In the adjacent cell for the second word, type the formula =MID(A3,SEARCH(" ",A3)+1,99). This finds the space and extracts the remaining characters after it.
Select the cell(s) containing your new formulas. Hover your cursor over the bottom-right corner until it turns into a plus sign, then double-click the fill handle or drag it down to apply the formulas to all required rows.

Manage Text Data Seamlessly with WPS Spreadsheet
WPS Spreadsheet provides robust support for all standard data functions, making it incredibly easy to combine or split text across thousands of rows. Experience powerful data manipulation tools in a familiar interface.
- 1. Open Your Data File: Launch WPS Spreadsheet and open the document containing the names or locations you want to modify.
- 2. Enter the Formula: Click on the destination cell and enter your preferred text formula, such as =CONCAT(A3," ",B3).
- 3. Apply to the Entire Column: Press Enter, then double-click the fill handle at the bottom right corner of the cell to instantly apply the formula to the rest of your dataset.

Frequently Asked Questions
Why does my LEFT and SEARCH formula return a #VALUE! error?
This error usually occurs if the SEARCH function cannot find a space in the referenced text cell. Ensure the cell actually contains two words separated by a space, or wrap your formula in an IFERROR function to handle single-word entries.
Can I combine more than two columns using the CONCAT formula?
Yes, you can combine as many columns as you need. Just add them into the formula separated by commas, along with your delimiters, for example: =CONCAT(A3, " ", B3, " ", C3).
Is there a way to split text without using complex formulas?
Yes. You can use the 'Text to Columns' tool. Select the column you want to split, go to the Data tab on the ribbon, click 'Text to Columns', choose 'Delimited', and select 'Space' as your delimiter to automatically separate the words into new columns.




