Join first and last names (CONCAT)

Easy Text
Description
Hints 0/4
Solutions 2
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

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)
The exercise data, as a table
ABC
1 First nameLast nameFull name
2 AliceWang
3 BobLi
4 CaraChen
5 DanWu

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.

  1. Target cells are C2:C5 — start in C2, then fill down
  2. Join three pieces: A2, a space, then B2
  3. A literal space in a formula is written " " — quotes included
  4. Either the & operator or the CONCAT function 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

Related practice

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.