---
title: "TEXTJOIN function in Excel: syntax and examples | PracticeExcel"
description: "How to use TEXTJOIN in Excel and Google Sheets: turn a column into a comma-separated list."
canonical_url: "https://practiceexcelonline.com/functions/textjoin"
locale: en
meta:
  "og:description": "How to use TEXTJOIN in Excel and Google Sheets: turn a column into a comma-separated list."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VEVYVEpPSU4gZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBURVhUSk9JTiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogdHVybiBhIGNvbHVtbiBpbnRvIGEgY29tbWEtc2VwYXJhdGVkIGxpc3Qu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VEVYVEpPSU4oZGVsaW1pdGVyLCBpZ25vcmVfZW1wdHksIHRleHQxLCBbdGV4dDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvdGV4dGpvaW4i%2Cs_K2P7udRoh6X8jwY4.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "TEXTJOIN function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VEVYVEpPSU4gZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBURVhUSk9JTiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogdHVybiBhIGNvbHVtbiBpbnRvIGEgY29tbWEtc2VwYXJhdGVkIGxpc3Qu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VEVYVEpPSU4oZGVsaW1pdGVyLCBpZ25vcmVfZW1wdHksIHRleHQxLCBbdGV4dDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvdGV4dGpvaW4i%2Cs_K2P7udRoh6X8jwY4.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The TEXTJOIN function**

Joins texts with a delimiter between them, and can skip empty cells.

=

TEXTJOIN(

## **Syntax**

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

<dl><dt>**delimiter **</dt>
<dd>The text to put between items, such as ", ".</dd>
<dt>**ignore_empty **</dt>
<dd>TRUE to skip empty cells.</dd>
<dt>**text1 **</dt>
<dd>The first text, cell or range.</dd>
<dt>**text2 **(optional)</dt>
<dd>More texts or ranges.</dd></dl>

## **Examples**

D1`=TEXTJOIN(<sup>1</sup>", ",<sup>2</sup>TRUE,<sup>3</sup>A2:A4)`

|  | A | B | C | D |
| --- | --- | --- | --- | --- |
| 1 | Fruit | Price |  | **Apple, Pear, Plum** |
| 2 | Apple | 4 |  | |
| 3 | Pear | 6 |  | |
| 4 | Plum | 5 |  | |

**In plain words:** Join <sup>3</sup>the fruit in A2:A4 with <sup>1</sup>a comma and a space between them, <sup>2</sup>skipping empty cells.

D1=TEXTJOIN("-",TRUE,"DK","","2100")

|  | A | B | C | D |
| --- | --- | --- | --- | --- |
| 1 | Fruit | Price |  | **DK-2100** |
| 2 | Apple | 4 |  | |
| 3 | Pear | 6 |  | |
| 4 | Plum | 5 |  | |

## **Read the guide**

- [**How to clean data in Excel with formulas**](https://practiceexcelonline.com/learn/clean-data-in-excel)
- [**How to merge cells in Excel, and what to use instead**](https://practiceexcelonline.com/learn/merge-cells-excel)

## **Related functions**

- [**CONCAT**](https://practiceexcelonline.com/functions/concat)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/textjoin#webpage","@type":"WebPage","description":"How to use TEXTJOIN in Excel and Google Sheets: turn a column into a comma-separated list.","name":"TEXTJOIN function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/textjoin","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/textjoin#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/textjoin"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/textjoin#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"TEXTJOIN function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/textjoin#article","description":"How to use TEXTJOIN in Excel and Google Sheets: turn a column into a comma-separated list.","headline":"TEXTJOIN function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VEVYVEpPSU4gZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBURVhUSk9JTiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogdHVybiBhIGNvbHVtbiBpbnRvIGEgY29tbWEtc2VwYXJhdGVkIGxpc3Qu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VEVYVEpPSU4oZGVsaW1pdGVyLCBpZ25vcmVfZW1wdHksIHRleHQxLCBbdGV4dDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvdGV4dGpvaW4i%2Cs_K2P7udRoh6X8jwY4.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/textjoin#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/textjoin#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VEVYVEpPSU4gZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBURVhUSk9JTiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogdHVybiBhIGNvbHVtbiBpbnRvIGEgY29tbWEtc2VwYXJhdGVkIGxpc3Qu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VEVYVEpPSU4oZGVsaW1pdGVyLCBpZ25vcmVfZW1wdHksIHRleHQxLCBbdGV4dDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvdGV4dGpvaW4i%2Cs_K2P7udRoh6X8jwY4.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VEVYVEpPSU4gZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBURVhUSk9JTiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogdHVybiBhIGNvbHVtbiBpbnRvIGEgY29tbWEtc2VwYXJhdGVkIGxpc3Qu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VEVYVEpPSU4oZGVsaW1pdGVyLCBpZ25vcmVfZW1wdHksIHRleHQxLCBbdGV4dDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvdGV4dGpvaW4i%2Cs_K2P7udRoh6X8jwY4.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
