Premium Google Sheets drill · Text and regular expressions
TEXTJOIN an address and skip the blank
Practice Google Sheets TEXTJOIN with TRUE so a blank middle cell is skipped and the street joins the city.
A2 is a street and C2 is a city. B2 is blank. TEXTJOIN's second argument, TRUE, skips blanks.
In D2, join A2, B2, and C2 with a comma and a space, ignoring the empty cell.
Dataset
Starter sheet. Cells marked formula are where the formula goes.
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Street | Line 2 | City | |
| 2 | 400 Market | Austin | Formula goes in D2. formula |
Hint
The arguments are the delimiter, TRUE, then A2, B2, and C2.
Explanation
TEXTJOIN with TRUE skips B2, so the cell reads 400 Market, Austin. FALSE would have kept the empty piece and produced a doubled comma.
The interactive sheet and a worked solution are part of Formula Drills Premium. The instructions and starter data on this page are the full problem.