Combining two columns into a third is a standard data-cleanup task: you take values from column A and column B and produce a single string in column C, such as joining a first name and a last name, a city and a postal code, or a product code and a batch number. The result can be a plain concatenation (no separator) or a joined value with a space, comma, hyphen, or line break between the parts. This guide covers the main spreadsheet methods, the correct syntax, and what to check when the output looks wrong.
What You'll Need
- A spreadsheet application such as Microsoft Excel, Google Sheets, LibreOffice Calc, or Apple Numbers.
- Two populated columns in the same sheet, ideally with a header row so you can label the new column.
- A free destination column (the third column) for the combined result.
- Basic familiarity with typing formulas and dragging a fill handle.
- Optional: a helper column if you want to combine more than two columns or add conditional separators.
Step-by-Step
- Inspect both source columns. Check for leading or trailing spaces, inconsistent capitalization, numbers stored as text, and blank cells. Trim spaces first (for example with the TRIM function) because extra spaces will carry into the combined result and break lookups or matching later.
- Insert a new column for the result. Right-click the column header to the right of your data and choose Insert. Give it a clear header such as Combined Name. Keeping the result in a separate column preserves the originals, which is safer than overwriting either source.
- Choose your method. For a live formula that updates when the sources change, use a concatenation formula. For a one-time static result, use a built-in merge or text-join feature. The formula approach is the most portable across Excel, Google Sheets, and LibreOffice Calc.
- Write the formula in the first data row. In Excel and Google Sheets, the ampersand operator joins values:
=A2&" "&B2puts a space between the two cells. The CONCATENATE function does the same:=CONCATENATE(A2," ",B2). The newer TEXTJOIN function handles many cells and a delimiter in one call:=TEXTJOIN(" ",TRUE,A2,B2). In Google Sheets, the equivalent is=JOIN(" ",A2,B2)or=TEXTJOIN(" ",TRUE,A2,B2). - Include the separator explicitly. A space, comma, hyphen, or slash must be typed as a text string inside quotation marks. Without it,
=A2&B2produces JohnSmith rather than John Smith. For a comma plus space, use", "; for a line break, useCHAR(10)in Excel orCHAR(10)in Google Sheets, then enable text wrapping in the cell. - Press Enter and verify the first result. Compare it character by character with what you expect. If the output shows a formula as text instead of a value, the cell is formatted as text; reformat it as General and re-enter the formula.
- Fill the formula down. Drag the small square at the bottom-right of the cell (the fill handle) down to the last row, or double-click it to auto-fill to the end of the adjacent data. Relative references adjust automatically, so row 3 uses A3 and B3, and so on.
- Convert formulas to values if needed. If you plan to delete the source columns or share the file with software that does not recalculate formulas, copy the result column and use Paste Special > Values (Excel) or Paste special > Values only (Google Sheets) to replace formulas with static text.
- Check the whole column for errors. Look for #VALUE!, #NAME?, or blank results. These usually mean a referenced cell contains an error, a function name is misspelled, or a number is stored as text in a way the formula cannot handle.
- Label and format the new column. Add a header, set column width, and apply text wrapping if line breaks were used. Save a copy of the workbook before deleting any original data.
Common Mistakes
- Forgetting the separator. Writing
=A2&B2without a space or punctuation produces run-together text that is hard to read and often unusable for matching. - Leaving stray spaces in the source cells. A trailing space in column A becomes a double space in the result. Use TRIM on the source cells or wrap each reference:
=TRIM(A2)&" "&TRIM(B2). - Mixing text and numbers without conversion. Concatenation converts numbers to text automatically, which can strip leading zeros from postal codes or ID numbers. Format those cells as text before combining, or use TEXT to preserve the format.
- Overwriting a source column. Combining into column A destroys the original data. Always write the result to a new column first.
- Dragging the formula without checking references. Absolute references (with $ signs) will not adjust down the column, so every row may show the same result.
- Assuming merged cells behave like normal cells. Merged cells can cause formulas to reference only the top-left value and return blanks for the rest.
Tips
- Use TEXTJOIN when combining three or more columns; it accepts a delimiter and can ignore empty cells with the TRUE argument.
- To combine an entire range quickly in Google Sheets, ARRAYFORMULA can fill a whole column with one formula:
=ARRAYFORMULA(A2:A&" "&B2:B). - If you need the combined value to sort or filter correctly, convert it to values after combining so the sort order is stable.
- Keep a backup of the original columns in a separate sheet or file until you have verified the combined output.
- For addresses, combine with a comma and space, then use TRIM to remove any double spaces caused by missing apartment numbers or suite fields.
Troubleshooting
- The formula shows as text. The cell is formatted as Text. Change the format to General, then re-enter the formula (editing alone may not trigger recalculation).
- Result is blank. One or both referenced cells are empty, or the formula points to the wrong row. Check the cell references and confirm the source cells contain visible values.
- #VALUE! error. A referenced cell contains an error value or incompatible data. Trace the source cell and correct it, or wrap the reference in IFERROR to handle it gracefully.
- Numbers lose leading zeros. The source column is formatted as Number. Reformat it as Text before combining, or use TEXT(A2,"00000") to force a fixed width.
- Line breaks do not appear. CHAR(10) inserts a line break, but the cell must have Wrap Text enabled to display it.
- Fill handle copies the same value. The references are absolute. Remove the $ signs or rewrite the formula with relative references.
Frequently Asked Questions
Can I combine two columns without a formula?
Yes. In Excel, use Data > Merge Cells or the Flash Fill feature (Ctrl+E) after typing an example. In Google Sheets, you can use the split text to columns feature in reverse only manually; Flash Fill is not available, so a formula is the reliable method.
What is the difference between CONCATENATE and TEXTJOIN?
CONCATENATE joins individual cell references and requires you to type separators between each one. TEXTJOIN accepts a delimiter once and a range of cells, and can skip empty cells, making it better for combining many columns.
How do I add a space between the combined values?
Include a space inside quotation marks between the cell references: =A2&" "&B2. For a comma and space, use ", ".
Will the combined column update if I change the source cells?
Yes, as long as the result is a live formula. If you convert the formulas to values, the combined column becomes static and will not update.
Can I combine more than two columns?
Yes. Chain the ampersand operator: =A2&" "&B2&" "&C2, or use TEXTJOIN with a range such as =TEXTJOIN(" ",TRUE,A2:C2).
Why does my combined result show a date as a number?
Dates are stored as serial numbers. Concatenation converts the date to its underlying number. Wrap the date reference in TEXT with a date format, for example =TEXT(A2,"yyyy-mm-dd")&" "&B2.