A delimiter can be more than one character, so no stray spaces are left behind.
Locations were exported as "City, Country". In B2:B5 split each so the city and country land in B and C, with no leading space on the country.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
The same formula in the other shapes it takes at work.
TEXTSPLIT breaks text at a delimiter into separate cells.
One formula per row; each spills across as many columns as there are parts.
A delimiter can be more than one character, so no stray spaces are left behind.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | C | |
|---|---|---|---|
| 1 | Location | City | Country |
| 2 | Lisbon, Portugal | ||
| 3 | Ghent, Belgium | ||
| 4 | Kraków, Poland | ||
| 5 | Porto, Portugal |
A stray leading space makes " Portugal" and "Portugal" different values, so lookups and counts quietly fail later. Splitting on the exact separator — comma and space — means there is nothing to TRIM afterwards.