How do I use the TEXTJOIN function in Excel?

The `TEXTJOIN` function in Excel is used to join multiple text strings into one text string. Here's how you can use the `TEXTJOIN` function:

1. Syntax:
The syntax of the `TEXTJOIN` function is:


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



- `delimiter`: This is the delimiter you want to use to separate the text strings.
- `ignore_empty`: This argument determines whether to ignore empty cells or not. Use `TRUE` to ignore empty cells and `FALSE` to include them.
- `text1`, `[text2]`, ...: These are the text strings you want to join together.

2. Example:
Let's say you have text strings in cells A1, A2, and A3, and you want to join them together with a comma as the delimiter. You can use the following formula:


=TEXTJOIN(",", TRUE, A1, A2, A3)



This formula will join the text strings in cells A1, A2, and A3 with a comma between each text, ignoring empty cells.

3. Notes:
- The `TEXTJOIN` function can handle up to 252 text arguments.
- If a range of cells contains the text you want to join, you can reference the range instead of individual cells in the formula.
- Ensure that the delimiter is enclosed in double quotes if it is a text string (e.g., `","` for a comma).

By following these steps, you can effectively use the `TEXTJOIN` function in Excel to concatenate text strings with the desired delimiter.
How do I use the TEXTJOIN function in Excel?

Related Questions