Ravindra BagaleCourses & study guides मराठी Track your progress

5. Data Cleaning A–Z

5.9 Merging Columns

Before

Area City Platform
Baner Pune FreshGo
Tarabai Park Kolhapur MarketRush
Nirala Bazar Sambhaji Nagar FreshGo

About this data: Teaching sample for a fictional shop “Skyline Clinics”. Figures and names (e.g. Sana Sheikh) are made up for this lesson on merging columns.

After

Store Label
FreshGo – Baner, Pune
MarketRush – Tarabai Park, Kolhapur
FreshGo – Nirala Bazar, Sambhaji Nagar

About this data: Demo table only — not real customer or company data. Built to practise merging columns.

Steps in Excel

  1. =C2&" – "&A2&", "&B2
  2. Or =TEXTJOIN(", ",TRUE,A2,B2) for "Area, City" skipping blanks (Excel 2019+).
  3. Or Flash Fill: type the first label › Ctrl + E.
  4. Keep the original columns; the merged label is for display. Never use Merge & Center to "merge columns" – it keeps only the top-left value.

Ravindra Bagale's Tip

Many students think "merge" means Merge & Center – but that keeps only one cell and deletes the rest of the data! To join columns, use & or TEXTJOIN. And if you will use the merged label as a key, join the TRIMmed values, otherwise the lookup won't match.

Practice task

Create a "Store Label" column for all stores. Then create a unique key StoreID|Date for each order row, e.g. =G2&"|"&TEXT(B2,"yyyymmdd").

Loading practice tasks...

  1. Full name (Easy): Join A2 and B2 with a space.
  2. Surname first (Easy): Make "Walker, James" from row 3.
  3. Name with room (Easy): Make "Riya - 101" from A2 and C2.
  4. CONCAT (Easy): Join A4, a space and B4 with CONCAT.
  5. Name in capitals (Medium): Make "MATEO LOPEZ" from row 5.
  6. Name and country (Medium): Make "Sara Haddad (UAE)".
  7. TEXTJOIN a row (Medium): Join A2:C2 with " | ".
  8. All first names (Medium): Join A2:A6 with ", ".
  9. Booking code with date (Hard): Make "101-20261220" from C2 and D2.
  10. Arrival message (Hard): Make "Ankit Jain arrives on 24-12-2026 for 5 nights".
  11. Initials (Hard): Make "J.W." from row 3.

Quick revision cards

Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.

Revision card 1: What is Merging Columns?
Card 1: What is Merging Columns? · Download PNG
Revision card 2: Tiny example — Merging Columns
Card 2: Tiny example — Merging Columns · Download PNG
Revision card 3: Checklist — Merging Columns
Card 3: Checklist — Merging Columns · Download PNG