How to Combine Text from Two Cells in Excel
In this article
To combine text from two cells in Excel, use the ampersand operator: click an empty cell, type =A1&" "&B1 (where A1 and B1 are your source cells), and press Enter. The space in quotes adds a separator between the values. You can also use the CONCATENATE or TEXTJOIN functions, or the Flash Fill feature for a quick, formula-free result. All methods work in Excel for Microsoft 365, Excel 2019, Excel 2021, and Excel for Mac; the exact ribbon labels can differ slightly by version and region.
What You'll Need
- Excel installed on Windows or Mac (the steps below use the desktop app; Excel for the web works the same way for formulas).
- Your source data already entered in two adjacent or non-adjacent cells.
- An empty cell or column where the combined result will appear.
- Optional: a separator character (space, comma, dash) if you want readable output.
Step-by-Step
- Identify your source cells. Note the exact cell references, for example A2 for the first name and B2 for the last name. If the cells are not adjacent, that is fine; the formula handles any layout.
- Click an empty cell where you want the combined text to appear, such as C2.
- Type the ampersand formula. Start with
=, then the first cell reference, then&, then a separator in double quotes if needed, then&again, then the second cell reference. For example:=A2&" "&B2. This joins the two values with a single space between them. - Press Enter. The cell now shows the combined text, for example "Jane Doe" if A2 contained Jane and B2 contained Doe.
- Copy the formula down. Drag the fill handle (the small square at the bottom-right of the selected cell) down the column to apply the same formula to the rows below. Excel adjusts the cell references automatically.
- Convert formulas to values if needed. If you want to delete the original columns, first select the combined column, press Ctrl+C (Cmd+C on Mac), then right-click and choose Paste Special > Values. This replaces the formulas with plain text so the results do not break when the source cells are removed.
- Alternative: use TEXTJOIN. In a cell, type
=TEXTJOIN(" ", TRUE, A2, B2). The first argument is the delimiter, the second tells Excel to ignore empty cells, and the rest are the cells to join. TEXTJOIN is available in Excel 2019 and later, and in Microsoft 365. - Alternative: use Flash Fill. Type the combined result manually in the first row of an empty column (for example, type "Jane Doe" in C2). Then select C3 and press Ctrl+E (Cmd+E on Mac), or go to Data > Flash Fill. Excel fills the rest of the column based on your example. Flash Fill works best when the pattern is consistent.
Common Mistakes
- Forgetting the separator. Using
=A2&B2produces "JaneDoe" with no space. Add" "between the ampersands. - Using curly quotes. Excel requires straight double quotes (
"). Curly quotes from Word or a phone keyboard cause a #NAME? error. - Mixing text and numbers without formatting. If one cell contains a date or a number with leading zeros, the combined result may lose formatting. Use the TEXT function, for example
=A2&" "&TEXT(B2,"0"), to preserve it. - Not locking references when needed. If you copy the formula to another location and want to keep one cell fixed, use absolute references like
$A$2. - Deleting source columns too early. If you delete the original cells before converting formulas to values, the combined column shows #REF! errors.
Tips
- Use
CHAR(10)inside the formula to insert a line break between values, then turn on Wrap Text on the Home tab to see both lines. - For three or more cells, TEXTJOIN is cleaner than chaining ampersands:
=TEXTJOIN(", ", TRUE, A2, B2, C2). - If you only need a one-off result, Flash Fill is faster than writing a formula and leaves no formula behind.
- Keep a backup copy of your sheet before converting formulas to values, in case you need to adjust the combination later.
- Name your columns clearly before combining, so you can tell which source column each part came from.
Troubleshooting
- The result shows #NAME? Check for curly quotes, a misspelled function name, or a missing comma between arguments.
- The result shows #VALUE! One of the referenced cells may contain an error value. Fix the source cell first.
- The result is blank. Confirm the cell references point to the correct cells and that the source cells are not empty.
- The formula copied down shows the same result in every row. You likely used absolute references (
$A$2) where relative references were needed. Remove the dollar signs. - Flash Fill does not fill correctly. Make sure the example you typed matches the pattern exactly, and that there are no blank rows interrupting the data. You can also try selecting the entire range before pressing Ctrl+E.
- Dates or numbers look wrong after combining. Wrap the numeric cell in the TEXT function with the format you want, such as
TEXT(B2,"mm/dd/yyyy").
Frequently Asked Questions
Can I combine text from two cells without a formula?
Yes. Type the combined result in the first cell of an empty column, then use Flash Fill (Ctrl+E on Windows, Cmd+E on Mac) or Data > Flash Fill to fill the rest. This works when the pattern is consistent.
What is the difference between CONCATENATE and TEXTJOIN?
CONCATENATE joins values but requires you to type each separator manually. TEXTJOIN lets you set one delimiter for all items and can ignore empty cells. TEXTJOIN is available in Excel 2019 and later and in Microsoft 365; CONCATENATE is older but still supported.
How do I add a space or comma between the combined values?
Include the separator in double quotes between ampersands, for example =A2&", "&B2 for a comma and space, or use it as the first argument in TEXTJOIN.
Can I combine more than two cells?
Yes. Chain additional ampersands and cell references, or use TEXTJOIN with a range or list of cells. For example, =A2&" "&B2&" "&C2 joins three cells.
Will the combined text update if I change the original cells?
Yes, as long as the result is still a formula. If you converted the formula to values with Paste Special > Values, it becomes static text and will not update.
Why does my combined text show a date as a number?
Excel stores dates as serial numbers. Wrap the date cell in the TEXT function with the desired format, such as TEXT(B2,"mm/dd/yyyy"), to display it as a readable date.