Combining cells in Excel usually means joining them (like using CONCATENATE or the & operator). But if you need to split data from one cell into multiple cells and then recombine it in a different order or format, the split function (Text to Columns or Flash Fill) is what you actually need. This guide shows you how to split cell contents by a delimiter (like a comma or space) and then combine the resulting pieces in a new way—without retyping anything.
What You'll Need
- Microsoft Excel (2013 or later for most steps; Flash Fill is available in 2016 and later).
- A worksheet with the data you want to split and recombine. The original data should be in one column, with each cell containing text that has a consistent delimiter (e.g., "Lastname, Firstname" or "Product-Category").
- Enough empty columns to the right of your data to hold the split pieces (if you use Text to Columns).
Step-by-Step
Method 1: Text to Columns + CONCATENATE (for any Excel version)
- Prepare your worksheet: Make sure there are at least 2–3 empty columns to the right of your data column. For example, if your data is in column A, leave columns B and C empty.
- Select the data: Click on the letter at the top of the column that contains your data (e.g., column A). If your data is not contiguous, select the specific cells you want to split.
- Open Text to Columns: Go to the Data tab on the ribbon. In the Data Tools group, click Text to Columns. This opens the Convert Text to Columns Wizard.
- Choose the file type: In step 1 of the wizard, select Delimited (if your text is separated by commas, spaces, tabs, etc.) and click Next.
- Set the delimiter: In step 2, check the box next to your delimiter (e.g., Comma, Space, or Tab). You can also type a custom delimiter in the "Other" box (e.g., a hyphen). You should see a preview of how your data will be split at the bottom. Click Next.
- Choose the destination: In step 3, under "Destination," click the small selector icon and then click on the first empty cell to the right of your original data (e.g., cell B1). This tells Excel where to put the split pieces. Click Finish. Your text will now be split into separate columns.
- Combine the split pieces: Now that you have the pieces in separate columns, you can combine them in any order using the CONCATENATE function or the & operator. For example, if you split "Doe, John" into B1 (Doe) and C1 (John), and you want to combine as "John Doe", type in cell D1:
=C1 & " " & B1and press Enter. Or use=CONCATENATE(C1, " ", B1). - Copy the formula down: If you have multiple rows, drag the fill handle (the small square at the bottom-right of the cell) down to apply the formula to all rows.
Method 2: Flash Fill (Excel 2016 and later)
- Prepare your data: In the column next to your original data, type the desired result for the first row manually. For example, if A1 is "Doe, John", type "John Doe" in B1.
- Start Flash Fill: With B1 selected, go to the Data tab and click Flash Fill (or press Ctrl+E). Excel will automatically fill the rest of the column based on the pattern it detects from your example.
- Adjust if needed: If Flash Fill doesn't get it right, you can type another example in the next row, and then press Ctrl+E again to retrain it.
Method 3: Using SPLIT in Excel 365 (Dynamic Arrays)
If you have Excel 365, you can use the newer TEXTSPLIT function (note: it's TEXTSPLIT, not SPLIT) to split text into an array, and then use TEXTJOIN or CONCAT to recombine. This is more advanced and requires understanding of dynamic arrays. For most users, Text to Columns or Flash Fill is simpler.
Common Mistakes
- Not leaving empty columns: If you use Text to Columns and there is data in the columns to the right, Excel will overwrite it with the split pieces. Always ensure you have enough empty columns.
- Choosing the wrong delimiter: If your data uses a comma and a space (e.g., "Doe, John"), selecting only "Comma" will leave a leading space in the second piece. To fix this, check both "Comma" and "Space" as delimiters, or use the "Treat consecutive delimiters as one" option.
- Overwriting original data: When using Text to Columns, if you don't change the "Destination" field, Excel will overwrite the original column with the first piece. Always set the destination to a different column.
- Using CONCATENATE with a range incorrectly: CONCATENATE only takes individual cell references, not a range like A1:A3. Use CONCAT (in Excel 2016+) or TEXTJOIN for ranges.
Tips
- Use the & operator for simple joins: It's shorter and faster than typing CONCATENATE. For example,
=B1 & ", " & C1. - Use TEXTJOIN for multiple pieces: If you split a cell into many pieces and want to combine them with a separator, TEXTJOIN is perfect. For example,
=TEXTJOIN("-", TRUE, B1:D1)joins cells B1 to D1 with a hyphen, ignoring empty cells. - Clean up extra spaces: After splitting, you might have leading or trailing spaces. Use the TRIM function to remove them:
=TRIM(B1). - Use Flash Fill for complex patterns: Flash Fill can handle patterns that are hard to define with delimiters, like extracting initials or rearranging names. Just type a couple of examples and let it do the work.
- Keep original data safe: Always keep a copy of your original data on a separate sheet or in a backup column before doing any split/combine operations.
Troubleshooting
- Text to Columns didn't split anything: Check that you selected "Delimited" and that the correct delimiter is checked. If your data uses a custom delimiter (like a semicolon), type it in the "Other" box.
- The split pieces have extra spaces: This happens when the delimiter appears with spaces (e.g., "Doe, John" with a comma+space). Either check both "Comma" and "Space" as delimiters, or use the TRIM function on the resulting cells.
- Flash Fill didn't work: Flash Fill needs a clear pattern. Try typing the result for the first two rows manually, then press Ctrl+E. Also, make sure Flash Fill is enabled (File > Options > Advanced > check "Automatically Flash Fill").
- CONCATENATE returns #VALUE! error: This usually means you have a formula error, like referencing a cell that contains text with a quote mark. Check your formula for typos and ensure all cell references are correct.
- Data is overwritten: If you accidentally overwrote data, press Ctrl+Z immediately to undo. For future, always set the destination to a new column.
Frequently Asked Questions
Can I split and combine cells without using formulas?
Yes, you can use Flash Fill, which doesn't require formulas. Just type the desired result for the first row and press Ctrl+E. Excel will fill the rest.
What if my data has multiple delimiters (e.g., commas and semicolons)?
In Text to Columns, you can check multiple delimiter boxes. For example, check both "Comma" and "Semicolon". Excel will split on either one.
How do I split a cell into rows instead of columns?
Text to Columns splits into columns. To split into rows, you can use the TRANSPOSE function after splitting, or use Power Query (Get & Transform) to split into rows.
Can I split a cell by a fixed width (e.g., first 5 characters)?
Yes, in Text to Columns, choose "Fixed width" instead of "Delimited". Then set break lines in the preview to indicate where to split.
Does the SPLIT function exist in Excel?
No, Excel doesn't have a SPLIT function. The closest are TEXTSPLIT (in Excel 365) and Text to Columns. In Google Sheets, there is a SPLIT function, but not in Excel.
Why does my CONCATENATE formula show the formula text instead of the result?
This usually happens if the cell is formatted as Text. Change the cell format to General, then re-enter the formula.