You can join data from multiple cells into one cell using the ampersand (&) symbol or the CONCAT function in Excel. This is useful for creating single-column lists or combining first and last names without creating blank spaces between entries.
What You'll Need
- A computer with Microsoft Excel installed (2016, 2019, 2021, or Microsoft 365) or the free Excel Online version.
- A spreadsheet containing the data you wish to combine. For the best results, the data should be in a single column (column A, for example) and the cells should be contiguous (e.g., A1, A2, A3).
- A target cell where you want the final result to appear.
Step-by-Step Method 1: Using the Ampersand (&) Operator
This is the most common and flexible method. It works in every version of Excel and allows you to add text or other characters between your data points.
- Select the target cell: Click on the empty cell where you want the concatenated text to appear. This cell should be directly below your data column or in a new section of the sheet.
- Type the equals sign: Start typing an equals sign (
=) in the target cell. This signals to Excel that you are entering a formula. - Click the first data cell: Click on the first cell in your data column (e.g., A1). The cell reference, such as
A1, will appear in your formula bar. - Type the ampersand: Press the ampersand key (
&) on your keyboard. This is the operator that tells Excel to join the contents of the current cell with whatever comes next. - Click the next data cell: Click on the second cell in your data column (e.g., A2). The reference
A2will be added to your formula. - Type the next ampersand: Press
&again. - Repeat for remaining cells: Continue this pattern until you reach the last cell you want to include. Your formula should look something like this:
=A1&A2&A3&A4. - Press Enter: Press the Enter key on your keyboard. The combined text will appear in your target cell.
Step-by-Step Method 2: Using the CONCAT Function
The CONCAT function is designed specifically for joining text. It is similar to the ampersand method but can be cleaner to write out, especially for long lists. Note that the syntax is slightly different: you list the cells inside parentheses separated by commas.
- Select the target cell: Click on the empty cell where you want the result to appear.
- Start the formula: Type
=CONCAT(into the cell. - Select the first cell: Click on the first data cell (e.g., A1). The reference appears next to the opening parenthesis.
- Enter commas: Type a comma (
,) after the cell reference. This separates the first cell from the second. - Select the next cell: Click on the second data cell (e.g., A2). The reference appears next to the comma.
- Repeat and separate: Continue adding commas and selecting the next cell in the column for each subsequent item. The final formula will look like:
=CONCAT(A1,A2,A3,A4). - Close the parentheses: Type a closing parenthesis
)to finish the function. - Press Enter: Press Enter to see the combined text.
How to Add Commas Between Items
By default, the methods above will join the text with no spaces or separators (e.g., "JohnDoeJane"). To create a readable list, you must add the comma character as its own "text item" in the formula.
- Open your completed formula: If you are editing a cell, click on it and press F2, or double-click the cell to edit the text directly in the formula bar.
- Insert the comma: Click your cursor immediately after the cell reference you want to end with. Type a comma character (
,). - Add a space (optional): To make the list look even better, type a space after the comma (
,). This creates the standard "item, item" format. - Repeat for all items: You must add a comma and a space before every cell reference except the very last one.
- Example: The formula for a list of names in cells A1 to A4 would look like this:
=A1 & ", " & A2 & ", " & A3 & ", " & A4.
Common Mistakes
- Forgetting the ampersand: A common error is typing
=A1, A2. The comma here is interpreted as a separator between arguments in a function, not a text character. Always use the&operator for concatenation. - Missing spaces: If you type
=A1 & "," & A2, the result will be "Item,Item". Always include a space character after the comma if you want a visual separation. - Not selecting the right cells: Ensure you are clicking on the correct cells in your spreadsheet. If you drag your mouse instead of clicking, you might select a range of cells, which will result in an error or unexpected behavior.
- Using text that isn't contiguous: If your data is scattered across the sheet, you must type every single cell reference manually (e.g.,
=A1 & A5 & A8). You cannot simply select the non-contiguous blocks.
Tips
- Use the Fill Handle: If you successfully concatenate a list of 5 items and want to do the same for a list of 20 items in the next column, you do not need to type a new formula. Click the bottom-right corner of the cell with your formula (the small square handle) and drag it down to the last cell. Excel will automatically adjust the cell references relative to the new row.
- Combine First and Last Names: To combine a first name in column A and a last name in column B, use the formula
=A2 & " " & B2. The quotation marks around the space create a literal space character between the two names. - Text Formatting: If your original data has extra spaces at the end of the cells (often caused by copy-pasting from the web), the final list might have double spaces (e.g., "Item, Item"). You can use the
TRIM()function on the source cells before concatenating them to remove these unwanted spaces. - Apple Numbers Users: If you are using Apple Numbers instead of Excel, the formula is slightly different. You must use the
JOINfunction. The syntax is=JOIN(", ", range_of_cells), where you select the entire range of cells you want to join at once.
Troubleshooting
If your formula does not work as expected, follow these steps to identify the issue.
The result is an error (e.g., #VALUE!, #NAME?, #REF!)
- Check for text vs number mismatch: If you try to join a number to a text string without quotes, Excel will throw a #VALUE! error. Ensure you are using the ampersand operator, not a plus sign (+). For example,
=A1 & " " & B1works for text, but=A1 + B1adds numbers, it does not join them. - Verify cell references: If you see a #REF! error, it means one of the cells you referenced no longer exists or was deleted. Check the formula to ensure all cell addresses are valid.
- Check for hidden characters: Sometimes data pasted from a website includes invisible line breaks or non-breaking spaces. Excel might treat this as an error if it cannot parse the text. Try pasting the data back into a blank sheet and re-typing it to see if the error persists.
The result is a single long string without commas
- Missing the ampersand: Double-check that you are using the
&sign between every cell reference. If you used a comma, Excel will treat it as a separator for a function argument rather than a text character. - Missing the comma character: Ensure you are typing the literal comma character (
,) inside your formula. If you are using the CONCAT function, check that you have included commas as separators between the cell arguments.
The text looks jumbled or has extra spaces
- Check for trailing spaces: If you copied a list from a website, there might be spaces at the end of each line. When you concatenate them, you get double spaces (e.g., "Item, Item"). Use the
TRIM()function on your source cells:=TRIM(A1) & ", " & TRIM(A2). - Check for line breaks: If you concatenated cells that contain manual line breaks (pressing Alt+Enter inside a cell), the result might look messy. You can replace these line breaks with commas using the
SUBSTITUTE()function if needed.
Frequently Asked Questions
How do I concatenate a list of 50 items without typing them all out?
You cannot select a non-contiguous list (e.g., A1, A5, A10) in the CONCAT or ampersand method. You must type the references manually. However, if the items are in a continuous column, you can use the TEXTJOIN function (available in Excel 2019 and newer) or simply type the first formula and use the Fill Handle to drag it down to the 50th row.
Does the CONCAT function work in older versions of Excel?
The CONCAT function was introduced in Excel 2016. In older versions (2013 and earlier), it does not exist. You must use the ampersand (&) operator or the older CONCATENATE function, which is functionally identical to CONCAT.
Can I concatenate data from different sheets?
Yes. You can reference cells from other sheets by typing the sheet name followed by an exclamation mark. For example, to concatenate cell A1 from the current sheet with cell B2 from a sheet named "Data", you would use =A1 & " " & 'Data'!B2. Note that if the sheet name contains a space, you must enclose it in single quotes.
What is the difference between CONCAT and TEXTJOIN?
The main difference is that TEXTJOIN includes a separator argument that you define. It can also accept a range of cells as an argument, allowing you to join a whole column of data with a single comma at once, without typing out every cell reference.
How do I add quotes around the final text?
You can include the quotation marks inside your formula. For example, to wrap the result in quotes, you would type =" " & A1 & " ". This will produce a result like " John " in the cell.