Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Combine 2 Columns into 1 in Excel: Step-by-Step

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To combine two columns into one in Excel, you have three reliable options: use a formula such as =A2&" "&B2 to join values with a separator, use the CONCAT or TEXTJOIN functions for more control, or use Power Query to merge columns without formulas. For a one-off job, the ampersand formula is fastest; for repeatable work, Power Query is cleaner. Below is the full process, including how to turn the results into plain text and what to do when numbers or dates come out wrong.

What You'll Need

  • Excel for Microsoft 365, Excel 2021, 2019, or 2016 on Windows or Mac. The steps below use the desktop app; the web version supports the same formulas but not Power Query.
  • Your two columns of data, ideally with a header row and no blank rows in the middle.
  • A spare column to the right of your data for the combined result.
  • Optional: a separator you want between the values, such as a space, comma, or hyphen.

Menu labels and formula names can differ slightly by Excel version and region, but the core functions below are stable across modern releases.

Step-by-Step

  1. Insert a helper column. Click the column letter to the right of your second data column, right-click, and choose Insert. This gives the combined values their own space without overwriting anything. If your data is in A and B, insert a new column C.
  2. Write the joining formula. In the first empty cell of the helper column (for example C2), type =A2&" "&B2 and press Enter. The ampersand joins the two cells, and the quoted space adds a separator. To use a comma instead, type =A2&", "&B2. If you want no separator, use =A2&B2.
  3. Fill the formula down. Select the cell with the formula, hover over the small square at its bottom-right corner until the cursor becomes a black cross, then double-click or drag down to the last row of your data. Every row now has a combined value.
  4. Check a few results. Look at rows where one column is blank or where values contain leading zeros, dates, or phone numbers. The formula joins what is stored, so a blank cell may leave a stray separator, and a date may appear as a serial number.
  5. Convert formulas to values (recommended). Select the whole helper column, press Ctrl+C (Cmd+C on Mac), then right-click the same selection and choose Paste Special > Values. This replaces the formulas with plain text so the result no longer depends on the original columns. You can then delete columns A and B if you no longer need them.
  6. Optional: use TEXTJOIN for many columns or to skip blanks. In a cell, type =TEXTJOIN(" ", TRUE, A2:B2). The first argument is the separator, the second tells Excel to ignore empty cells, and the range lists the columns to join. This is useful when one of the two columns is sometimes blank.
  7. Optional: use Power Query for repeatable merges. Select your data range, go to the Data tab, and choose From Table/Range. In the Power Query Editor, hold Ctrl and click the two column headers, then right-click and choose Merge Columns. Pick a separator and a new column name, then choose Close & Load to send the result to a worksheet. This approach is best when new data arrives regularly.

Common Mistakes

  • Forgetting the separator. Writing =A2&B2 when you meant =A2&" "&B2 produces run-together text such as "JohnSmith" instead of "John Smith". Always include the quoted separator when you need one.
  • Leaving stray spaces. If one column is blank, the formula still inserts the separator, giving a trailing space or comma. Use TEXTJOIN with the ignore-empty option, or wrap the formula in TRIM.
  • Losing leading zeros. When Excel treats a value as a number, joining it drops leading zeros. Format the source column as Text before combining, or use TEXT(A2,"00000") to force the format.
  • Dates turning into numbers. A date joined with text can appear as a five-digit serial number. Wrap the date cell in TEXT(A2,"mm/dd/yyyy") to keep it readable.
  • Pasting formulas as links. Copying the helper column and pasting normally keeps references to the original cells. Use Paste Special > Values if you plan to delete the source columns.
  • Merging cells instead of values. The Merge & Center button combines cells visually but keeps only the top-left value. It is not the same as joining text and will destroy data if used on a full column.

Tips

  • Use CONCAT (or CONCATENATE in older versions) when you prefer a function over the ampersand: =CONCAT(A2," ",B2).
  • Add line breaks inside the result with CHAR(10) and turn on Wrap Text on the Home tab.
  • Keep the original columns until you have checked the combined output; deleting them first makes errors harder to trace.
  • If you combine names for mail merges, put the separator in quotes exactly as you want it, including any comma and space.
  • For large datasets, Power Query avoids thousands of formulas and keeps the workbook lighter.

Troubleshooting

  • The formula shows as text. The cell is probably formatted as Text. Select it, set the format to General, then press F2 and Enter to re-evaluate. On Windows you can also use Data > Text to Columns and finish immediately to refresh the format.
  • You see #VALUE! errors. One of the referenced cells may contain an error or an unsupported value. Check the source cells and correct them, or wrap the formula in IFERROR.
  • Numbers lose formatting. Use the TEXT function around the numeric cell, for example =TEXT(A2,"0.00")&" "&B2, to keep decimals or leading zeros.
  • Only the first row fills. The fill handle may not have been dragged to the end, or the sheet is in manual calculation mode. Set calculation to Automatic under Formulas > Calculation Options.
  • Power Query merge is greyed out. Make sure exactly two columns are selected and that the range has headers. If the query is still loading, wait for it to finish before merging.
  • Results look correct but sort wrongly. The combined column is text, so numbers sort alphabetically. Convert the result to values and, if needed, split it again with Data > Text to Columns.

Frequently Asked Questions

Can I combine two columns without a formula?

Yes. Use Power Query's Merge Columns command, or type the first result manually and use Flash Fill (Ctrl+E) to fill the rest. Flash Fill works best when the pattern is obvious and consistent.

How do I combine columns and keep a space between the values?

Include a quoted space in the formula: =A2&" "&B2. For a comma and space, use =A2&", "&B2.

Why did my leading zeros disappear?

Excel treated the value as a number. Format the source column as Text before combining, or use TEXT to force the display format.

Can I combine more than two columns?

Yes. Add more references with ampersands, or use TEXTJOIN with a range such as A2:C2.

Does combining columns delete the originals?

No. Formulas only display the result. The original columns remain until you delete them, which is why pasting as values first is safer.

Will this work in Excel for the web?

The ampersand, CONCAT, and TEXTJOIN formulas work in Excel for the web. Power Query is not available there, so use formulas instead.