How to Combine Two Columns in Excel (First and Last Name)
Names, cities and codes are often split across two columns. Joining them into one is a common task, for example first name and last name into a full name.
Way 1: The ampersand
=A2&" "&B2 joins A2 and B2 with a space between them. Fill the formula down the column.
Way 2: CONCAT or TEXTJOIN
=CONCAT(A2," ",B2) does the same. =TEXTJOIN(" ",TRUE,A2,B2) skips empty cells, so you do not get a stray space when one part is blank.
Way 3: Flash Fill
Type the first result by hand, for example "Asha Sharma". Start the next row and press Ctrl+E. Excel copies the pattern down the column.
Way 4: In your browser, without formulas
Upload your file to DataGenius BI and open Fix a Column. Pick the first column, choose Join two columns into one, pick the second column, type a separator such as a space or a comma, and click Apply. The new column appears right after the second one. Blank parts are skipped, so there are no stray separators. You can give the new column a name, or use Restore original to undo.
Tip
If you use formulas, copy the new column and paste it as values before you delete the original columns. Otherwise the joined column will break.
Common questions
How do I add a space or comma between the two values?
In a formula, put it in quotes between the cells, such as =A2&", "&B2. In the browser tool, type it in the separator box.
Why does my joined column break when I delete the original columns?
A formula depends on the cells it points to. Copy the new column and paste it as values before you delete the originals.
How do I avoid a stray space when one part is empty?
Use TEXTJOIN with TRUE, which ignores empty cells. The browser tool skips empty parts on its own.
Related guides
Check its quality score and clean it in your browser. Free, no signup, and your file is never uploaded.
Try DataGenius BI