Join first and last names (CONCAT)
The problem
Problem statement
The payroll system imported first names into column A and last names into column B, but the email template needs one full-name field. In Full name, write a formula that joins A2 and B2 with a single space — C2 should read like Alice Wang. Start in C2, then fill down to C5.
Build the space inside the formula — case 3 is a compound surname, so nothing else may be trimmed or split.
Problem data
Show the sheet as a table (selectable, copyable)
| A | B | C | |
|---|---|---|---|
| 1 | First name | Last name | Full name |
| 2 | Alice | Wang | |
| 3 | Bob | Li | |
| 4 | Cara | Chen | |
| 5 | Dan | Wu |
Notes
You can glue text together two ways: the & operator (=A2&" "&B2) or the CONCAT function (=CONCAT(A2, " ", B2)). Both accept as many pieces as you need — remember that the space between names is a real string, " ", not something Excel adds for you. Google Sheets also supports CONCATENATE, which behaves the same way as CONCAT for this task.
How to approach
Your answer goes in C2:C5. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.
- Target cells are C2:C5 — start in C2, then fill down
- Join three pieces: A2, a space, then B2
- A literal space in a formula is written " " — quotes included
- Either the & operator or the
CONCATfunction works
Official solutions
Show 2 solutions — try it yourself first
Approach 1: the & operator
=A2&" "&B2
Glues first name, a single space, and last name together. The & operator is the shortest way to join text and works in both Excel and Google Sheets.
Approach 2: the CONCAT function
=CONCAT(A2, " ", B2)
Same result, spelled out as a function call — each piece is its own argument. CONCATENATE gives the identical output if your team prefers the legacy name.
Function guide
FAQ
Should I use `&` or CONCAT?
Both produce identical results here. & is shorter and loved for quick joins; CONCAT reads more clearly in long formulas. Google Sheets additionally offers CONCATENATE and TEXTJOIN for more complex separators.
Why do I need `" "` between the names?
Excel joins exactly what you give it — =A2&B2 produces AliceWang with no space. A literal space must be a quoted string: =A2&" "&B2.
Does CONCAT accept ranges?
Yes — CONCAT(A2:B2) joins the whole range left-to-right, though you lose control over separators. TEXTJOIN(" ", TRUE, A2:B2) joins a range AND inserts a separator between values.
Will the joined result update when names change?
Yes, as long as the formula references A2 and B2 instead of typed text. That is exactly what the test cases verify — switch inputs and C2 recomputes.