TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.1K subscribers
Post #2258 3.22K
๐Ÿ“Š Excel Basics #27 โ€“ CONCAT() & TEXTJOIN() Functions

Sometimes your data is split across multiple columns, but you need to combine it into a single value.

For example:

First Name + Last Name โ†’ Full Name

City + State โ†’ Location

Product Code + Year โ†’ Complete Code

That's where CONCAT() and TEXTJOIN() are useful.

๐Ÿ“Œ 1. CONCAT() Function

CONCAT() combines text from multiple cells or text values into one string.

Syntax:

=CONCAT(text1, [text2], ...)


Example:

First Name Last Name

Rahul Sharma

Formula:

=CONCAT(A2," ",B2)


Result:

Rahul Sharma

The " " adds a space between the two names.

๐Ÿ“Œ Example โ€“ Combine Product Information

Product Code Year

Laptop LAP 2026

Formula:

=CONCAT(A2,"-",B2,"-",C2)


Result:

Laptop-LAP-2026

๐Ÿ“Œ 2. TEXTJOIN() Function

TEXTJOIN() combines multiple text values and allows you to specify a delimiter between them.

Syntax:

=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)


Example:

=TEXTJOIN(", ",TRUE,A2:A5)


If the cells contain:

โ€ข SQL

โ€ข Python

โ€ข Excel

โ€ข Power BI

Result:

SQL, Python, Excel, Power BI

๐Ÿ“Œ What Does TRUE Mean?

The second argument controls whether empty cells should be ignored.

TRUE โ†’ Ignore empty cells

FALSE โ†’ Include empty cells

Example:

=TEXTJOIN(", ",TRUE,A2:A5)


This is particularly useful when some cells may be blank.

๐Ÿ“Œ CONCAT() vs TEXTJOIN()

CONCAT():

โ€ข Combines text.

โ€ข Does not provide a delimiter argument.

โ€ข Useful when you want precise control over separators.

TEXTJOIN():

โ€ข Combines multiple values.

โ€ข Allows you to specify a delimiter.

โ€ข Can automatically ignore empty cells.

โ€ข Great for combining lists.

๐Ÿ“Œ Real-World Example

Suppose you have:

First Name Last Name City

Rahul Sharma Pune

Create a complete profile:

=TEXTJOIN(" - ",TRUE,A2:C2)


Result:

Rahul Sharma - Pune

๐Ÿ“Œ Common Mistakes

โŒ Forgetting to add a delimiter when needed.

โŒ Using FALSE when blank cells should be ignored.

โŒ Adding unnecessary spaces inside the formula.

๐Ÿ“Œ Real-World Uses

โ€ข Combine first and last names.

โ€ข Create unique IDs.

โ€ข Combine address components.

โ€ข Build product codes.

โ€ข Create comma-separated lists.

โ€ข Prepare data for reports and dashboards.

โœ… Quick Tip

Remember:

CONCAT() โ†’ Combine text

TEXTJOIN() โ†’ Combine text + choose a separator + ignore blanks

๐Ÿ’ก For modern Excel, TEXTJOIN() is especially useful when you need to combine an entire range rather than manually joining each cell.

Double Tap โค๏ธ For More
  • โค 9
More from @excel_analyst
  1. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
  2. Oct 7, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 5 This part focuses on Tables, Filters & Data Analysis shortcutsโ€ฆ
  3. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  4. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  5. Sep 29, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 3 This part focuses on Formatting Shortcuts โ€” quickly format celโ€ฆ
  6. Sep 29, 2026๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐—ง๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐—”๐—œ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿš€ โ€‹ Explore 6 free resourceโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’