How to Use the TEXTJOIN Function to Combine Strings in Excel

When you are attempting to mathematically fuse multiple, fragmented text strings in Microsoft Excel (e.g., merging an Address, City, and Zip Code), relying on the archaic CONCATENATE function is highly dangerous. If a geometric cell in the array is blank, CONCATENATE will inject ugly, double-delimiter artifacts (e.g., “123 Main St,, 90210”). To force the Excel engine to merge strings while violently ignoring empty voids, you must deploy the TEXTJOIN function.

Understanding the Dynamic Fusion Architecture

The TEXTJOIN function (exclusive to modern Office 365 environments) is a highly intelligent string compiler. It accepts a specific delimiter (like a comma and a space), a boolean logic gate instructing it to ignore empty cells, and an array of target data. It then mathematically fuses the data, ensuring the delimiter is only injected between active payloads.

The syntax requires three absolute geometric parameters: =TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)

Executing the String Compiler Vector

Imagine your data spans the geometric array A2:C2. A2 is “123 Main St”, B2 is completely blank (no Suite number), and C2 is “Los Angeles”.

To execute the precise fusion sequence, click cell D2 and type the precise command:

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

The exact millisecond you press Enter, the Excel engine intercepts the payload.

  • It reads the first parameter: ", " (a comma followed by a space). This is the assigned delimiter.
  • It reads the second parameter: TRUE. This activates the critical logic gate instructing the engine to mathematically bypass any empty nodes in the array.
  • It moves to cell A2 and rips the string “123 Main St”.
  • It moves to cell B2. It detects absolute void. Because the logic gate is TRUE, the engine ignores the cell entirely. It does not inject a delimiter.
  • It moves to cell C2. It rips the string “Los Angeles”.
  • The engine violently fuses the active strings, injecting the delimiter exactly once, outputting the pristine payload: “123 Main St, Los Angeles”.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.