Excel Concatenate: Master Text Merges in Excel

Learn how to concatenate in Excel using CONCAT, CONCATENATE, and TEXTJOIN with practical examples, best practices, and tips to handle blanks and ranges for cleaner data.

XLS Library
XLS Library Team
·5 min read
Excel Concatenate Guide - XLS Library
Photo by GeekImaginationvia Pixabay
Quick AnswerSteps

By the end of this guide you will be able to combine text from multiple cells in Excel using CONCAT, CONCATENATE, or TEXTJOIN, including delimiting with spaces, commas, or custom characters. You’ll learn when to choose each function, handle blanks gracefully, and apply these techniques to real-world data cleaning tasks. Practical examples and a step-by-step approach help you get results fast.

Understanding the basics of string concatenation in Excel

String concatenation is the process of joining text from multiple cells into a single cell. In Excel, this can be done using ancient functions like CONCATENATE, newer functions like CONCAT, and the highly flexible TEXTJOIN. The goal is to produce a clean, readable output—whether you’re creating full names, addresses, or combined IDs. When you start, think about three questions: What should be joined? In what order? And what delimiter should separate each piece? The keyword you’ll see throughout this guide is excel concatenate, a foundational technique for data preparation, reporting, and automation tasks. As you practice, you’ll recognize patterns you can reuse across projects, from simple one-off joins to complex multi-cell merges. The key truth is that the right tool depends on your version of Excel and the data structure you’re working with. According to XLS Library, practical mastering of text consolidation is a core skill for data-cleaning workflows.

Choosing the right function: CONCATENATE vs CONCAT vs TEXTJOIN

Excel provides several ways to combine strings. CONCATENATE is the legacy function that still works in older workbooks, but CONCAT is its modern, shorter alternative. TEXTJOIN, introduced more recently, adds a delimiter and an option to ignore empty cells. If you want to join a few pieces with a fixed separator, CONCAT or the & operator works well. If you need to join many cells, rows, or non-contiguous ranges with a single delimiter, TEXTJOIN is the most efficient choice. In practice, excel concatenate decisions hinge on version compatibility and the needs of your data: simple merges -> CONCAT/&, multi-field joins with blanks -> TEXTJOIN. This section will help you decide which path to follow for your situation, including how to verify results across large datasets.

Basic examples: simple joins with CONCAT and & operator

A classic use case is combining first and last names. In Excel, you can write =CONCATENATE(A2, " ", B2) or the shorter =A2 & " " & B2. Both yield the same result, but CONCAT supports multiple arguments more cleanly: =CONCAT(A2, " ", B2). For numbers, you can convert them to text with TEXT or TEXTJOIN without explicit conversion, depending on your needs. When working with a uniform delimiter, TEXTJOIN shines: =TEXTJOIN(" ", TRUE, A2, B2, C2) will skip empty cells if you enable the ignore_empty parameter. Remember to adjust references as you fill down rows.

Delimiters and ignoring blanks with TEXTJOIN

TEXTJOIN is your friend when you need a consistent delimiter across many cells. The syntax is =TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...). The ignore_empty argument is powerful; setting it to TRUE ensures you don’t get stray delimiters from blank cells. For example, =TEXTJOIN(", ", TRUE, A2:C2) concatenates the three cells in the row with commas, silently skipping blanks. This is especially useful for assembling full addresses or lists from a table where some fields may be optional.

Working with ranges and arrays: across rows and columns

TEXTJOIN can handle multiple ranges and even arrays, making it ideal for row-wise and column-wise joins. For a single row across several columns, you can use: =TEXTJOIN(", ", TRUE, A2:C2). For non-contiguous or scattered fields, you can pass multiple ranges or cells in sequence: =TEXTJOIN(", ", TRUE, A2, C2, E2). If you need a vertical join across rows, drag the formula down and Excel will adjust the references automatically. In all cases, the delimiter should be chosen to improve readability, not to confuse the output.

Practical applications: cleaning names and addresses

A typical clean-up task involves merging title, first name, and last name into one display name: =TEXTJOIN(" ", TRUE, D2, E2, F2). You can also build full addresses by concatenating street, city, state, and ZIP: =TEXTJOIN(", ", TRUE, Street2, City2, State2, ZIP2). When data is missing, TEXTJOIN keeps output tidy by ignoring blanks, preventing extra separators. If you only need a one-time join, CONCAT works; for ongoing data workflows, TEXTJOIN is often the more robust choice because of its ability to handle dynamic ranges and blanks consistently.

Common pitfalls and troubleshooting

A frequent pitfall is using CONCATENATE with too many arguments or mixing operators and functions, which can produce inconsistent results. Another issue is forgetting to convert non-text values, which can yield unexpected formatting. TEXTJOIN may not be available in older Excel versions; in those cases, you’ll rely on CONCAT or the & operator. If you see #VALUE! or #NAME? errors, check that you’re using the correct function name and that all referenced cells contain text or are coerced to text when needed. Finally, mixed data types (numbers and text) can lead to misalignment in results; use TEXT() to format numbers when combining.

Advanced techniques: dynamic arrays, LET, and LAMBDA

Modern Excel supports dynamic arrays, LET, and LAMBDA to make concatenation even more powerful. LET lets you name intermediate results, reducing repetition: =LET(full, TEXTJOIN(", ", TRUE, A2:C2), full). LAMBDA enables user-defined functions, so you can create a reusable concatenation pattern across workbooks. For example, you can define a function that concatenates with a specific delimiter and an ignore_empty rule, then reuse it across sheets. If you’re on Excel 365, these features can simplify complex data-cleaning pipelines and support scalable reporting.

Best practices for data preparation before concatenation

Before concatenating, clean your data to ensure consistent results. Use TRIM to remove leading and trailing spaces, PROPER to standardize case when needed, and remove unwanted characters with CLEAN. Normalize data types so numbers don’t accidentally become text, especially when concatenating with identifiers. Consider creating a dedicated helper column to test formulas before applying them to large ranges. Finally, replace formulas with values where appropriate to preserve results in shared workbooks.

Tools & Materials

  • Microsoft Excel (365/2021 or compatible)(Ensure TEXTJOIN is available (Excel 2019+ or Microsoft 365).)
  • Sample workbook with data(Include columns to join (e.g., FirstName, LastName, City).)
  • Delimiter preference(Decide on a delimiter (comma, space, semicolon, custom).)
  • Optional: Google Sheets for quick comparison(The syntax differs slightly; use this for cross-checks.)

Steps

Estimated time: 25-35 minutes

  1. 1

    Define the desired output

    Decide which cells to join and the delimiter you want. This clarifies whether to use CONCAT, CONCATENATE, or TEXTJOIN.

    Tip: Write down the target output format to avoid missing fields.
  2. 2

    Choose the right function

    For simple joins with a fixed delimiter, CONCAT or the & operator is enough. For flexible joins with blanks ignored, TEXTJOIN is best.

    Tip: If your workbook might be opened in older Excel, test CONCATENATE first.
  3. 3

    Build a basic formula

    Start with a simple example such as =CONCAT(A2, " ", B2) or =A2 & " " & B2 to combine first and last names.

    Tip: Use parentheses or ampersands consistently to avoid operator precedence issues.
  4. 4

    Add a delimiter with TEXTJOIN

    Create a robust join across ranges with =TEXTJOIN(", ", TRUE, A2:C2). The ignore_empty flag helps handle blanks gracefully.

    Tip: Test on a row with missing fields to confirm blanks are ignored.
  5. 5

    Extend to ranges or multiple fields

    Extend to ranges or multiple text arguments: =TEXTJOIN(", ", TRUE, A2:A2, B2:B2, D2:D2) or =TEXTJOIN(", ", TRUE, A2:C2).

    Tip: Avoid non-text values by wrapping with TEXT() where appropriate.
  6. 6

    Validate results

    Check several rows to ensure consistent formatting and delimiter placement. Look for stray delimiters from blanks.

    Tip: Copy results as values for final usage in reports.
Pro Tip: Use TEXTJOIN with ignore_empty = TRUE to keep outputs clean when some cells are blank.
Warning: TEXTJOIN is not available in very old Excel versions; use CONCAT or CONCATENATE in those cases.
Note: When concatenating numbers, format them as text when needed to control appearance.
Pro Tip: Create a small helper column to test multiple scenarios before applying to the entire dataset.

People Also Ask

What is the difference between CONCAT, CONCATENATE, and TEXTJOIN?

CONCATENATE is the older function for joining text. CONCAT is its modern replacement with simplified syntax, while TEXTJOIN allows a delimiter and can ignore blanks, making it more versatile for complex joins.

CONCATENATE is old-school; CONCAT is the newer version, and TEXTJOIN adds delimiters and ignores blanks for easier multi-cell joins.

When should I use the & operator instead of a function?

The & operator is a quick way to join a few pieces when you don’t need the extra features of TEXTJOIN. It’s handy for simple, one-off joins, but lacks the flexibility of TEXTJOIN for handling multiple ranges or blanks.

Use & for simple joins; TEXTJOIN is better for bigger, more flexible joins with blanks.

Can TEXTJOIN ignore blank cells?

Yes. TEXTJOIN has an ignore_empty argument. Setting it to TRUE skips blanks and prevents extra delimiters in your result.

Yes—set ignore_empty to TRUE to skip blanks.

What if I need to concatenate across non-contiguous columns?

You can pass multiple ranges or cells to TEXTJOIN, such as =TEXTJOIN(", ", TRUE, A2, C2, E2). For more complex patterns, consider helper columns or dynamic array methods.

Use multiple ranges in TEXTJOIN, or helper columns for complex patterns.

Is TEXTJOIN available in older Excel versions?

TEXTJOIN is not available in Excel 2013 and earlier. In those versions, rely on CONCATENATE or the & operator.

TEXTJOIN isn’t in older Excel; use CONCATENATE or & instead.

How can I preserve formatting when concatenating numbers and text?

Use the TEXT function to format numbers during concatenation, for example TEXT(A2, "0.00") & " units".

Format numbers with TEXT during concatenation to control appearance.

Watch Video

The Essentials

  • Master the three main methods: CONCAT/CONCATENATE, &, and TEXTJOIN.
  • TEXTJOIN is the most powerful for multi-cell joins with a delimiter.
  • Ignore blanks to keep outputs tidy and avoid extra punctuation.
  • Validate results across rows to ensure consistency.
  • Use helper columns to test formulas before applying to large datasets.
Infographic showing a 3-step process for Excel concatenate
3-step process to concatenate in Excel

Related Articles