Introduction
Excel often stores related information in separate cells, such as first name and last name, city and state, product code and product name, or multiple phone numbers. CONCAT, CONCATENATE, and TEXTJOIN help combine this information into a single cell. In this chapter, you will practice these functions with names, addresses, product codes, employee details, email information, and other practical examples. CONCAT, CONCATENATE and TEXTJOIN Practice questions with solutions to help you understand the concepts.
Question 1: Combine First Name and Last Name Using CONCAT
Problem Statement
Combine the first name and last name into one full name.
Excel Data
| First Name | Last Name | Full Name |
|---|---|---|
| Rahul | Sharma | |
| Priya | Verma | |
| Amit | Kumar | |
| Neha | Kapoor | |
| Arjun | Singh |
Solution
In C2, enter:
=CONCAT(A2," ",B2)
Copy the formula down.
Expected Output
| First Name | Last Name | Full Name |
|---|---|---|
| Rahul | Sharma | Rahul Sharma |
| Priya | Verma | Priya Verma |
| Amit | Kumar | Amit Kumar |
| Neha | Kapoor | Neha Kapoor |
| Arjun | Singh | Arjun Singh |
The " " adds a space between the first and last names.
Question 2: Combine Employee ID and Department
Problem Statement
Create a single employee reference using the employee ID and department.
Excel Data
| Employee ID | Department | Employee Reference |
|---|---|---|
| 101 | IT | |
| 102 | HR | |
| 103 | Sales | |
| 104 | Finance | |
| 105 | Marketing |
The required format is:
101-IT
Solution
In C2, enter:
=CONCAT(A2,"-",B2)
Copy down.
Expected Output
| Employee ID | Department | Employee Reference |
|---|---|---|
| 101 | IT | 101-IT |
| 102 | HR | 102-HR |
| 103 | Sales | 103-Sales |
| 104 | Finance | 104-Finance |
| 105 | Marketing | 105-Marketing |
Question 3: Combine Text Using CONCATENATE
Problem Statement
Create a complete sentence using the student’s name, course, and score.
Excel Data
| Student | Course | Score | Result |
|---|---|---|---|
| Rahul | Excel | 85 | |
| Priya | Excel | 92 | |
| Amit | Excel | 76 | |
| Neha | Excel | 88 | |
| Arjun | Excel | 69 |
Required Format
Rahul scored 85 in Excel.
Solution
In D2, enter:
=CONCATENATE(A2," scored ",C2," in ",B2,".")
Copy down.
Expected Output
| Student | Course | Score | Result |
|---|---|---|---|
| Rahul | Excel | 85 | Rahul scored 85 in Excel. |
| Priya | Excel | 92 | Priya scored 92 in Excel. |
| Amit | Excel | 76 | Amit scored 76 in Excel. |
| Neha | Excel | 88 | Neha scored 88 in Excel. |
| Arjun | Excel | 69 | Arjun scored 69 in Excel. |
CONCATENATE is an older Excel function. In newer Excel versions, CONCAT or TEXTJOIN is generally more flexible.
Question 4: Combine Address Components Using TEXTJOIN
Problem Statement
Combine the house number, street, city, state, and PIN code into one complete address.
Excel Data
| House No. | Street | City | State | PIN | Full Address |
|---|---|---|---|---|---|
| 12 | MG Road | Delhi | Delhi | 110001 | |
| 25 | Sector 7 | Noida | UP | 201301 | |
| 18 | Main Road | Jaipur | Rajasthan | 302001 | |
| 42 | Park Street | Kolkata | West Bengal | 700016 | |
| 9 | FC Road | Pune | Maharashtra | 411004 |
Solution
In F2, enter:
=TEXTJOIN(", ",TRUE,A2:E2)
Copy down.
Expected Output
| House No. | Street | City | State | PIN | Full Address |
|---|---|---|---|---|---|
| 12 | MG Road | Delhi | Delhi | 110001 | 12, MG Road, Delhi, Delhi, 110001 |
| 25 | Sector 7 | Noida | UP | 201301 | 25, Sector 7, Noida, UP, 201301 |
| 18 | Main Road | Jaipur | Rajasthan | 302001 | 18, Main Road, Jaipur, Rajasthan, 302001 |
| 42 | Park Street | Kolkata | West Bengal | 700016 | 42, Park Street, Kolkata, West Bengal, 700016 |
| 9 | FC Road | Pune | Maharashtra | 411004 | 9, FC Road, Pune, Maharashtra, 411004 |
TEXTJOIN is especially useful when you want to combine several cells using the same separator.
Question 5: Combine Multiple Skills Using TEXTJOIN
Problem Statement
An employee has several skills stored in separate columns. Combine all skills into one cell, separated by commas.
Excel Data
| Employee | Skill 1 | Skill 2 | Skill 3 | Skills |
|---|---|---|---|---|
| Rahul | Excel | SQL | Python | |
| Priya | Excel | Power BI | SQL | |
| Amit | Excel | VBA | PowerPoint | |
| Neha | SQL | Python | Tableau | |
| Arjun | Excel | Word | PowerPoint |
Solution
In E2, enter:
=TEXTJOIN(", ",TRUE,B2:D2)
Copy down.
Expected Output
| Employee | Skill 1 | Skill 2 | Skill 3 | Skills |
|---|---|---|---|---|
| Rahul | Excel | SQL | Python | Excel, SQL, Python |
| Priya | Excel | Power BI | SQL | Excel, Power BI, SQL |
| Amit | Excel | VBA | PowerPoint | Excel, VBA, PowerPoint |
| Neha | SQL | Python | Tableau | SQL, Python, Tableau |
| Arjun | Excel | Word | PowerPoint | Excel, Word, PowerPoint |
Question 6: TEXTJOIN with Blank Cells
Problem Statement
Some employees have only two skills while others have three. Combine the available skills without creating extra separators for blank cells.
Excel Data
| Employee | Skill 1 | Skill 2 | Skill 3 | All Skills |
|---|---|---|---|---|
| Rahul | Excel | SQL | Python | |
| Priya | Excel | Power BI | ||
| Amit | Excel | VBA | ||
| Neha | SQL | Python | Tableau | |
| Arjun | Excel |
Solution
In E2, enter:
=TEXTJOIN(", ",TRUE,B2:D2)
Copy down.
Expected Output
| Employee | Skill 1 | Skill 2 | Skill 3 | All Skills |
|---|---|---|---|---|
| Rahul | Excel | SQL | Python | Excel, SQL, Python |
| Priya | Excel | Power BI | Excel, Power BI | |
| Amit | Excel | VBA | Excel, VBA | |
| Neha | SQL | Python | Tableau | SQL, Python, Tableau |
| Arjun | Excel | Excel |
The TRUE argument tells TEXTJOIN to ignore empty cells.
Question 7: Create a Product Code Using CONCAT
Problem Statement
A product code should contain:
- Category
- Product number
- Year
Required format:
ELEC-101-2026
Excel Data
| Category | Product No. | Year | Product Code |
|---|---|---|---|
| ELEC | 101 | 2026 | |
| COMP | 102 | 2026 | |
| HOME | 103 | 2026 | |
| ELEC | 104 | 2026 | |
| COMP | 105 | 2026 |
Solution
In D2, enter:
=CONCAT(A2,"-",B2,"-",C2)
Copy down.
Expected Output
| Category | Product No. | Year | Product Code |
|---|---|---|---|
| ELEC | 101 | 2026 | ELEC-101-2026 |
| COMP | 102 | 2026 | COMP-102-2026 |
| HOME | 103 | 2026 | HOME-103-2026 |
| ELEC | 104 | 2026 | ELEC-104-2026 |
| COMP | 105 | 2026 | COMP-105-2026 |
Question 8: Create a Customer Information Sentence
Problem Statement
Combine the customer name, city, membership type, and purchase amount into a readable sentence.
Excel Data
| Customer | City | Membership | Purchase | Information |
|---|---|---|---|---|
| Rahul | Delhi | Premium | 15000 | |
| Priya | Noida | Regular | 8500 | |
| Amit | Jaipur | Premium | 22000 | |
| Neha | Pune | Regular | 7000 | |
| Arjun | Mumbai | Premium | 18000 |
Required Format
Rahul is a Premium customer from Delhi with a purchase of ₹15000.
Solution
In E2, enter:
=CONCAT(A2," is a ",C2," customer from ",B2," with a purchase of ₹",D2,".")
Copy down.
Expected Output
| Customer | City | Membership | Purchase | Information |
|---|---|---|---|---|
| Rahul | Delhi | Premium | 15000 | Rahul is a Premium customer from Delhi with a purchase of ₹15000. |
| Priya | Noida | Regular | 8500 | Priya is a Regular customer from Noida with a purchase of ₹8500. |
| Amit | Jaipur | Premium | 22000 | Amit is a Premium customer from Jaipur with a purchase of ₹22000. |
| Neha | Pune | Regular | 7000 | Neha is a Regular customer from Pune with a purchase of ₹7000. |
| Arjun | Mumbai | Premium | 18000 | Arjun is a Premium customer from Mumbai with a purchase of ₹18000. |
Question 9: Combine First, Middle and Last Names
Problem Statement
Some employees have a middle name and some do not. Combine the three name columns while automatically ignoring blank cells.
Excel Data
| First Name | Middle Name | Last Name | Full Name |
|---|---|---|---|
| Rahul | Kumar | Sharma | |
| Priya | Verma | ||
| Amit | Raj | Kumar | |
| Neha | Kapoor | ||
| Arjun | Singh | Sharma |
Solution
In D2, enter:
=TEXTJOIN(" ",TRUE,A2:C2)
Copy down.
Expected Output
| First Name | Middle Name | Last Name | Full Name |
|---|---|---|---|
| Rahul | Kumar | Sharma | Rahul Kumar Sharma |
| Priya | Verma | Priya Verma | |
| Amit | Raj | Kumar | Amit Raj Kumar |
| Neha | Kapoor | Neha Kapoor | |
| Arjun | Singh | Sharma | Arjun Singh Sharma |
This is one of the practical advantages of TEXTJOIN: blank cells can be ignored automatically.
Question 10: Build a Complete Employee Profile Using TEXTJOIN
Problem Statement
Create a single employee profile using the following information:
- Employee name
- Department
- City
- Experience
- Skills
Each part should appear on a separate line inside the same cell.
Excel Data
| Employee | Department | City | Experience | Skill 1 | Skill 2 | Skill 3 |
|---|---|---|---|---|---|---|
| Rahul | IT | Delhi | 3 | Excel | SQL | Python |
| Priya | HR | Noida | 5 | Excel | Power BI | |
| Amit | Sales | Jaipur | 2 | Excel | CRM | Communication |
| Neha | Finance | Pune | 4 | Excel | SQL | Power BI |
| Arjun | Marketing | Mumbai | 3 | Excel | Canva | SEO |
Solution
In H2, enter:
=TEXTJOIN(CHAR(10),TRUE,"Name: "&A2,"Department: "&B2,"City: "&C2,"Experience: "&D2&" years","Skills: "&TEXTJOIN(", ",TRUE,E2:G2))
Copy down.
Turn on Wrap Text for column H so the lines appear properly.
Expected Output
For Rahul:
Name: Rahul
Department: IT
City: Delhi
Experience: 3 years
Skills: Excel, SQL, Python
For Priya:
Name: Priya
Department: HR
City: Noida
Experience: 5 years
Skills: Excel, Power BI
For Amit:
Name: Amit
Department: Sales
City: Jaipur
Experience: 2 years
Skills: Excel, CRM, Communication
This example combines TEXTJOIN, CHAR(10), and another TEXTJOIN to create a structured profile in a single cell.
Key Takeaways
CONCATcombines text or values from multiple cells.CONCATENATEis an older function used to join text.TEXTJOINcombines multiple values using a delimiter such as a comma, space, or hyphen.TEXTJOINcan ignore blank cells when its second argument isTRUE.CONCATis generally more flexible than the olderCONCATENATEfunction.TEXTJOINis particularly useful when combining a range of cells.- You can use
" "to add spaces between text values. - You can use
", "to create comma-separated lists. CHAR(10)can be used withTEXTJOINto place each item on a new line within a cell.- These functions are useful for creating full names, addresses, product codes, employee profiles, descriptions, and combined reports.
TEXTJOINis especially useful when some cells in the source range may be blank.
FAQs
1. What does CONCAT do in Excel?
CONCAT combines text from multiple cells or values into a single result.
=CONCAT(A2," ",B2)
2. What is CONCATENATE in Excel?
CONCATENATE is an older Excel function that joins multiple text values.
=CONCATENATE(A2," ",B2)
In newer Excel versions, CONCAT and TEXTJOIN provide more flexible options.
3. What is the difference between CONCAT and TEXTJOIN in Excel?
CONCAT joins values but does not have a delimiter argument. TEXTJOIN lets you specify a delimiter and can optionally ignore blank cells.
=TEXTJOIN(", ",TRUE,A2:C2)
4. How do I combine first and last names in Excel?
You can use CONCAT:
=CONCAT(A2," ",B2)
Or TEXTJOIN:
=TEXTJOIN(" ",TRUE,A2:B2)
5. How do I combine cells with commas?
Use TEXTJOIN:
=TEXTJOIN(", ",TRUE,A2:C2)
The first argument specifies the comma and space separator.
6. What does TRUE mean in TEXTJOIN?
The TRUE argument tells Excel to ignore empty cells.
=TEXTJOIN(", ",TRUE,A2:C2)
If one of the cells is blank, Excel does not add an unnecessary delimiter for that blank cell.
7. Can TEXTJOIN combine cells from different columns?
Yes. You can specify individual cells or ranges.
=TEXTJOIN(", ",TRUE,A2,B2,C2)
8. Can TEXTJOIN put each item on a new line?
Yes. Use CHAR(10) as the delimiter.
=TEXTJOIN(CHAR(10),TRUE,A2:C2)
You should enable Wrap Text to display the separate lines properly.
9. Which is better for combining many cells: CONCAT or TEXTJOIN?
For a simple combination, CONCAT is useful. When you need separators or want to ignore blank cells, TEXTJOIN is generally more suitable.
10. Can I combine TEXTJOIN with other Excel functions?
Yes. TEXTJOIN can be combined with functions such as IF, TRIM, UPPER, LOWER, PROPER, and other formulas to create more advanced text-processing solutions.
Written by Shubhranshu Shekhar, who has trained 20000+ students in coding.
