How to Use & in Excel: Concatenating Text and Cell Contents
The Excel `&` operator: basic syntax, including joining two cells, adding spaces and punctuation, handling numbers and dates, and how it differs from CONCAT and TEXTJOIN, so you can choose the right method for combining text.
Key Points of This Article
- & is the text concatenation operator. =A2&B2 joins the contents of two cells end to end, and the result updates automatically when the source cells change.
- When a space or punctuation is needed in between, enclose it in double quotation marks so it is joined as literal text, for example =A2&" "&B2.
- Directly concatenating numbers, dates, and codes with leading zeros is error-prone; it is safer to use TEXT to specify the format first and then concatenate.
- The result of concatenation is text and cannot be directly used in summation; convert it first when numeric calculation is needed.
- When merging multiple rows or whole columns, the & formula becomes very long; you can instead use TEXTJOIN to add a delimiter uniformly.
When organizing tables in Excel, you often run into situations like these: first and last names are in separate columns but need to be combined into one full name; province, city, and detailed address are scattered across different cells and need to be joined into one complete address; or an ID number and a description need to be put together in a new column. Typing the text cell by cell is slow and error-prone. The & symbol in Excel is designed for exactly this kind of "joining text together" task.
This is written for people who often organize data in Excel but only have a vague idea of &. After reading it, you will know the basic syntax of & in Excel, how to add spaces and punctuation, what problems come up when working with numbers and dates, and how to choose between it and functions such as CONCAT and TEXTJOIN.
What does & do in Excel? One-sentence answer
The & sign is the text concatenation operator. Write it as =A2&B2 to join the contents of two cells end to end, and the result appears as a new piece of text. Below are the recommended approaches for common scenarios.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| Connects only two or three cells, no separator needed in between | =A2&B2 | Intuitive syntax; results update automatically when the source cell changes. |
| Spaces, commas, or hyphens need to be added in the middle. | =A2&", "&B2 | The delimiter must be enclosed in double quotes so that it is joined together with the text as part of the concatenation. |
| Connecting a whole column or an entire area. | Use TEXTJOIN and other functions instead | & Writing cells one by one makes the formula very long when the range is large |
| What needs to be connected is dates, amounts, or numbers with leading zeros. Translation: What needs to be connected is dates, amounts, or numbers with leading zeros. | First use TEXT to set the format, then use & to concatenate. | When connected directly, dates may appear as a string of numbers, and leading zeros may be lost. |
| The results need to be displayed on separate lines. | Insert CHAR(10) in the middle and turn on automatic line wrap | CHAR(10) produces a line break character, but if the cell doesn't have Wrap Text turned on, you won't see the effect. |
Before You Begin: Confirm These Points
First confirm whether the content being joined is text. The result of & is always text, so even if the source cells contain numbers, the result cannot be used directly for summing or averaging. If you still need to calculate with the values, keep the original numeric column and place the concatenated result in a separate column.
Check the source data for extra spaces. Data exported from systems or copied from web pages often contains invisible spaces at the beginning and end, which leave gaps in the middle after concatenation. You can clean them up with TRIM first, then join the values.
Write the target format on paper first. For example, if you want the result "Zhang San (Sales Dept) ", decide first whether there should be spaces between the parts and whether the department should be in parentheses, then decide which cell each piece of the formula should reference. This step saves a lot of repeated revision.
Decide whether the result needs to change with the source data. Formula results update automatically when the source cells change. If you only need a fixed result, you can copy the column when you are done and paste it back as values; after that, changes to the source data will no longer affect it.
Set the number format of columns in advance. For phone numbers, employee IDs, codes starting with 0, etc., if the cell is in General format, leading zeros will be removed after you enter the content. It is recommended to first format these columns as Text, and then enter the content.
Steps to merge name and department into one column using &
- Next to your data, select an empty column, type an equals sign in the first target cell, and start writing the formula.
- Click the cell that holds the first piece of content, for example A2 (surname); the corresponding reference will appear in the formula.
- Type &, then reference the second piece of content, for example B2 (given name).
- If you want a space in between, write =A2&" "&B2; the space inside the double quotes will appear in the result exactly as typed.
- To enclose the department in parentheses, continue with &" ("&C2&") ", making sure both the left and right parentheses are placed inside the double quotes.
- Press Enter to confirm, then drag the fill handle at the bottom-right corner of the cell down to copy the formula to the remaining rows.
- Check the results against a few rows of the original data. Once you've confirmed they are correct, and if you want to fix the results, copy the column and paste it as values.
Verify item by item after completion
| Inspection items | How do you see it? | What should I do if I have a problem? |
|---|---|---|
| Spaces and punctuation | Compare a few lines and check whether there are extra or missing spaces between names and around parentheses. | Check the content inside the double quotes, and use TRIM to clean up leading and trailing spaces in the source data. |
| Numbers and Numbering | Check whether the leading zeros are still there, for example whether 007 has become 7 | Set the source column to text format and re-enter the values, or use TEXT to specify the number of digits |
| Date | Check whether a string of numbers appears in the result instead of a date. | Convert with TEXT(A2,"yyyy-mm-dd") first, then concatenate. |
| Empty cell | Does the result contain an extra separator when the source cell is empty? | Use IF to skip the separator when a value is empty, or use TEXTJOIN and ignore empty values. |
| Line break effect | Is the result still displayed as a single line? | Check whether the formula contains CHAR(10), and turn on automatic line wrapping for the cell |
📊 Core Comparison: & vs. CONCAT and TEXTJOIN
| Method | Suitable Scenarios | Points to note |
|---|---|---|
| & operator | A few cells connected end to end, written in an intuitive way | When there are many cells, each reference has to be written out one by one, so the formula gets longer. |
| CONCAT function | Multiple cells or ranges are joined directly, with no delimiter needed. | It doesn't add separators automatically; the separator needs to be written into the parameters yourself. |
| TEXTJOIN function | A row or a range of cells: add commas or other separators uniformly to all of them. | You can choose whether to ignore empty cells; older versions of Excel may not have this function, so check your version before use. |
🎯 Which Approach Suits You?
- For only a few rows of data with fixed fields to join: use &, write one formula and copy it down.
- When you need to join a whole column of names into one comma-separated sentence: prefer TEXTJOIN, which saves writing it cell by cell.
- When you need to generate fixed-format sentences like "date + amount + number": first use TEXT to standardize the format, then connect with &, so the result is more stable.
❓ Frequently Asked Questions (FAQ)
1. Is & a function?
Strictly speaking, it is an operator; it doesn't need a function name and is simply written between two pieces of content. What people casually call Excel's "& function" refers to this usage.
2. Why can't the results produced by & be summed?
Because & outputs text. If you want to calculate, you can use the VALUE function to convert it to a number, or calculate on the original numeric columns, rather than summing the concatenated result directly.
3. Can you use & to join cells from other worksheets?
Yes. You can reference it directly in a formula, for example =Sheet2!A1&Sheet2!B1. Connect the sheet name and the cell with an exclamation mark.
4. Why does the cell display the formula itself after I enter it?
This is usually because the cell has been formatted as Text, so the equals sign and formula are treated as ordinary text. After changing the format back to General, re-enter the formula.
📝 Summary
Excel's & is essentially about joining several pieces of content end to end. The syntax is simple, but watch out for a few common pitfalls: spaces, dates, leading zeros, and empty cells. Use & when there are only a few pieces of content, and switch to TEXTJOIN when there are many. Choosing along this line will make organizing tables much smoother.


