How to Combine First and Last Names in Excel Without Extra Spaces
Build a full-name column that handles blank surnames and stray spaces. Keep it linked to your contact list or save a separate copy for mailing labels.
Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.
Quick answer
With first names in column A and last names in column B, enter
=TRIM(A2&" "&B2)in C2. Press Enter and fill the formula down. The quoted space separates the names, and TRIM removes extra ordinary spaces at either end and between words.
1. Make room for the combined names
Use a blank column beside the original fields. Put First in A1, Last in B1 and Full name in C1. Enter Mina and Park in row 2, Leo and Silva in row 3, and Noor in A4 with B4 empty. The last example will tell you whether a one-part name leaves an unwanted space.
2. Join the two cells with a space
Click C2 and type =TRIM(A2&" "&B2). Use straight quotation marks with one space between them. Press Enter. The result should read Mina Park. The first ampersand attaches the space to Mina and the second attaches Park. Without that middle piece, the two names would run together.
| First and last columns | Full name |
|---|---|
| Mina and Park | Mina Park |
| Noor and a blank | Noor |
| Ana and de la Cruz | Ana de la Cruz |
3. Fill down and inspect exceptions
Select C2 and drag the small square in its lower-right corner through C4. Check that C3 shows Leo Silva. In a spare cell, type =LEN(C4). The answer should be 4 for Noor. Click C4 and check that the references have moved to A4 and B4 if you see the same name repeated.
Review names that include multiple words, apostrophes or hyphens. TRIM keeps ordinary single spaces inside a name. It also reduces repeated ordinary spaces, so skip it if that spacing is intentional.
4. Make a fixed copy for labels
Leave the formula in C if you want it to follow future corrections. For an independent list, copy C2:C4, select an empty destination such as E2 and choose Home → Paste → Values. Click E2. The formula bar should show Mina Park as plain text. Confirm the fixed copy before removing any source columns from an export.
Why does a gap remain after TRIM?
Text copied from a web page may contain a nonbreaking space. For that specific case, try =TRIM(SUBSTITUTE(A2&" "&B2,CHAR(160)," ")) in Excel for Windows. Compare the result with the original spelling before filling down.
Microsoft Support · Combine text from two or more cells
Comments
Read or join the discussion.