Text + Text Excel: How to Combine Cells and Strings
In this article
To combine text from two or more cells in Excel, use the ampersand (&) symbol or the CONCAT function. For example, to join cell A1 (First Name) and B1 (Last Name) with a space, enter =A1 & " " & B1 into a new cell and press Enter. This process, known as concatenation, allows you to merge disparate data points into a single, readable string without manually typing the information again.
What You'll Need
- A computer with Microsoft Excel installed (any version from 2007 onwards) or access to Excel for the Web.
- A dataset containing at least two columns of text that you wish to merge.
- A blank column where the combined results will be displayed.
Step-by-Step
- Prepare Your Data: Ensure your text is organized in columns. For instance, Column A might contain "First Name" and Column B might contain "Last Name". Ensure there are no hidden characters or trailing spaces in your cells that might mess up the final formatting.
- Select the Target Cell: Click on the empty cell where you want the combined text to appear. This is usually the first empty cell to the right of your data (e.g., cell C2).
- Start the Formula: Type the equals sign (
=). In Excel, every formula must begin with this symbol to tell the software to perform a calculation rather than treat the entry as plain text. - Reference the First Cell: Click on the first cell you want to include (e.g., A2) or type the cell reference manually. Your formula should now look like
=A2. - Add the Ampersand: Type the ampersand symbol (
&). This symbol acts as the "glue" that tells Excel to append the next piece of data to the first. - Insert a Space or Separator: Because Excel merges text exactly as it appears, simply joining A2 and B2 would result in "JohnDoe" instead of "John Doe". To add a space, type a double quotation mark, a space, and another double quotation mark:
" ". Your formula now looks like=A2 & " ". - Add the Second Ampersand: Type another
&symbol to link the separator to the next piece of data. - Reference the Second Cell: Click on the second cell you want to include (e.g., B2). The complete formula should now read
=A2 & " " & B2. - Execute and Fill: Press the Enter key. The combined text will appear in the cell. To apply this to the rest of your list, hover your mouse over the bottom-right corner of the cell until the cursor turns into a small black cross (the fill handle). Click and drag the handle down to the bottom of your data set.
Common Mistakes
One of the most frequent errors is forgetting the double quotation marks around spaces or punctuation. Excel interprets anything inside quotes as literal text. If you type =A2 & space & B2, Excel will look for a named range called "space" and return a #NAME? error because it cannot find a cell or range with that name.
Another common mistake is neglecting to add a separator entirely. While =A2&B2 is a valid formula, it creates a continuous string of characters without breaks, which is rarely the desired outcome for names, addresses, or dates. Additionally, users often forget that the ampersand method creates a formula, not static text. If you delete the original columns (A or B) after combining them, the resulting cell in Column C will show a #REF! error because the source data it relies on is gone.
Tips
For more complex combinations, such as adding a comma between a city and a state, you can expand the formula: =A2 & ", " & B2. This results in "City, State". If you have a very large number of cells to combine (e.g., ten different columns into one), using the ampersand repeatedly becomes tedious. In these cases, use the =TEXTJOIN(", ", TRUE, A2:J2) function. The first part of the TEXTJOIN formula defines the delimiter (the comma and space), the second part (TRUE) tells Excel to ignore empty cells, and the third part defines the range of cells to merge.
If you need to combine a date or a currency value with text, a simple ampersand will often strip the formatting. For example, if A2 contains a date, ="Date: " & A2 might result in "Date: 45231" because Excel stores dates as numbers. To fix this, use the TEXT function: ="Date: " & TEXT(A2, "mm/dd/yyyy"). This forces Excel to display the number in a human-readable date format.
Troubleshooting
If your formula returns a #VALUE! error, check that you aren't trying to perform a mathematical operation (like addition) on a cell that contains text. Remember that the plus sign (+) is for numbers; the ampersand (&) is for text. If you use =A2 + B2 on two text cells, Excel will fail.
If the result looks correct but has weird spacing (e.g., "John Doe" with two spaces), the problem is likely in your source data. One of your original cells probably has a trailing space at the end. You can fix this by wrapping your references in the TRIM function: =TRIM(A2) & " " & TRIM(B2). This removes all leading and trailing spaces from the source cells before merging them.
If you want to keep the combined text but delete the original source columns, you must convert the formulas to values. Select the combined cells, copy them (Ctrl+C), right-click the same area, and select Paste Special > Values. This replaces the formula with the actual text string, allowing you to delete the original columns without breaking the data.
Frequently Asked Questions
Can I combine text from different worksheets?
Yes. Instead of clicking a cell in the same sheet, click the other worksheet tab and select the desired cell. The formula will look like =Sheet1!A2 & " " & Sheet2!A2.
What is the difference between CONCAT and CONCATENATE?
CONCATENATE is an older function. CONCAT is the newer version that allows you to select a range of cells (like A1:A10) rather than referencing every single cell individually.
How do I add a line break between two pieces of text?
Use the CHAR function for a line break. On Windows, use =A2 & CHAR(10) & B2. You must then enable "Wrap Text" in the Home tab for the line break to be visible.
Can I use the ampersand to combine numbers and text?
Yes, the ampersand converts numbers to text automatically. For example, ="Total: " & C2 will work even if C2 is a number.
Is there a way to combine text without using formulas?
Yes, you can use "Flash Fill". Type the combined version of the first two rows manually, then press Ctrl+E. Excel will detect the pattern and fill the remaining cells automatically.