Merge Strings in Excel: 4 Best Ways to Combine Text
In this article
To merge strings in Excel, the fastest method is using the Ampersand (&) symbol or the CONCAT function. For example, to combine cell A1 (First Name) and B1 (Last Name) with a space between them, enter the formula =A1 & " " & B1. This process, known as concatenation, allows you to join text from multiple cells, static text strings, and numbers into a single cell, which is essential for cleaning data, creating full names, or generating unique identifiers for database management.
What You'll Need
- A computer with Microsoft Excel installed (all versions support basic concatenation, though newer versions have advanced functions like TEXTJOIN).
- A dataset with at least two columns of text or numbers that you wish to merge.
- A blank column adjacent to your data to house the resulting merged strings.
Step-by-Step
Method 1: Using the Ampersand (&) Operator
The ampersand is the most intuitive way to join text. It acts as a glue between different pieces of data.
- Click on the empty cell where you want the merged result to appear.
- Type the equals sign
=to start the formula. - Click the first cell containing the text you want to merge (e.g., cell A2).
- Type the ampersand symbol
&. - To add a space or punctuation between the strings, type a double quote, the character you want, and another double quote (e.g.,
" "for a space or", "for a comma and space). - Type another ampersand
&. - Click the second cell you want to merge (e.g., cell B2).
- Press Enter. Your result will now appear. To apply this to the rest of your list, click the small green square (fill handle) at the bottom-right of the cell and drag it down the column.
Method 2: Using the CONCAT Function
The CONCAT function is the modern replacement for the older CONCATENATE function. It is useful when you have a larger range of cells to join.
- Select the cell where the result should go.
- Type
=CONCAT(. - Select the range of cells you want to merge by clicking and dragging (e.g., A2:C2).
- Close the parenthesis
)and press Enter. - Note: CONCAT does not automatically add spaces between cells. If you need spaces, you must select each cell individually and insert the space string:
=CONCAT(A2, " ", B2).
Method 3: Using the TEXTJOIN Function (Recommended for Lists)
TEXTJOIN is the most powerful tool for merging strings because it allows you to specify a delimiter (like a comma or space) once and automatically ignore empty cells.
- Select your target cell.
- Type
=TEXTJOIN(. - Enter the delimiter inside double quotes as the first argument (e.g.,
", "). - Type a comma, then type
TRUE. This tells Excel to ignore any empty cells in your range so you don't end up with extra commas. - Type another comma and select the range of cells you want to merge (e.g., A2:E2).
- Close the parenthesis
)and press Enter.
Method 4: Using Flash Fill (No Formulas)
Flash Fill is an AI-driven feature that recognizes patterns. It is ideal for users who prefer not to write formulas.
- Ensure your data is in adjacent columns.
- In the empty column next to your data, manually type exactly how you want the first row to look. For example, if A2 is "John" and B2 is "Doe", type "John Doe" in C2.
- In cell C3, begin typing the merged version of the second row.
- Excel will likely show a light grey "ghost" list of suggestions for the remaining cells.
- Press Enter to accept the suggestions and fill the entire column. If the suggestions don't appear, press
Ctrl + Eon your keyboard to force Flash Fill to run.
Common Mistakes
One of the most frequent errors is forgetting the double quotes around static text. In Excel formulas, any text that is not a cell reference or a function name must be enclosed in quotes. For example, =A1 & space & B1 will result in a #NAME? error because Excel thinks "space" is a named range. The correct version is =A1 & " " & B1.
Another common mistake is merging cells that contain dates or currency. Because Excel stores dates as numbers, merging a date cell will result in a five-digit number (e.g., 45231) rather than "12/04/2026". To fix this, you must wrap the date cell in a TEXT function: =TEXT(A1, "mm/dd/yyyy") & " " & B1.
Users also often confuse "Merging Cells" with "Merging Strings". Merging cells (via the Home tab) physically combines two cells into one large box and deletes all data except for the top-left cell. Concatenation (merging strings) keeps the data and combines the text into a new location.
Tips
To make your merged data permanent, you should convert the formulas into static values. If you delete the original columns (A and B) while the merged column (C) still contains formulas, you will get a #REF! error. To prevent this, copy the merged column, right-click the same area, and select Paste Special > Values. This removes the formula and leaves only the text.
When merging long lists of addresses or tags, use the TEXTJOIN function with a line break. To add a line break within a cell, use CHAR(10) as your delimiter in TEXTJOIN and ensure that Wrap Text is enabled for that cell in the Home tab. This creates a clean, stacked list within a single cell.
If you are combining strings for a CSV upload, always use a delimiter that does not appear within your data. For example, if your text contains commas, use a pipe symbol | or a semicolon ; to ensure the data doesn't break when imported into another system.
Troubleshooting
If your formula returns a #VALUE! error, check for broken references or incompatible data types. Ensure that you haven't accidentally included a range where a single cell was expected, or vice versa.
If the result is a #NAME? error, it is almost always due to a typo in the function name (e.g., writing =CONCATENAT instead of =CONCAT) or missing double quotes around a text string. Double-check that every piece of manual text is wrapped in " ".
If Flash Fill is not working or is producing incorrect results, it is usually because the pattern is not clear enough. Try providing three or four manual examples instead of just one before pressing Ctrl + E. Ensure there are no empty columns between the source data and the Flash Fill column, as this can confuse the pattern recognition engine.
If your merged text looks like a number but isn't behaving like one (or vice versa), check the cell formatting. Change the cell format to "General" or "Text" via the Home tab's number format dropdown to ensure the display matches the intent.
Frequently Asked Questions
Can I merge strings from different worksheets?
Yes. When writing your formula, instead of clicking a cell in the current sheet, click the other worksheet tab and select the desired cell. The formula will look like =Sheet1!A1 & " " & Sheet2!A1.
Is there a limit to how many strings I can merge?
While there is no strict "count" limit for the ampersand method, there is a character limit per cell (32,767 characters). If your merged string exceeds this, Excel will truncate the text.
How do I merge strings and keep a specific format?
Use the TEXT function inside your merge formula. For example, ="Total: " & TEXT(A1, "$#,##0.00") will ensure the number is merged as a currency string rather than a raw decimal.
Does CONCAT work in older versions of Excel?
CONCAT was introduced in Excel 2019 and Office 365. If you are using an older version (like 2013 or 2016), you must use the CONCATENATE function or the ampersand (&) operator.
Can I merge strings based on a condition?
Yes, you can combine an IF statement with concatenation. For example: =IF(A2="Yes", A2 & " - Active", A2 & " - Inactive"). This allows you to add specific text based on the value of another cell.