Combine a column into one cell with commas
=TEXTJOIN("; ",TRUE,B2:B8)Google Sheets · result on the sample sheet: ana@ruiz.example; raj@patel.example; kim@ortiz.example; mo@diaz.example; sam@cole.example; eve@lund.example
Describe what you need and get a working JOIN formula for Google Sheets, tested on real data before you copy it. JOIN combines the values in one or more rows or columns into a single piece of text, with a delimiter between each value.
Each formula below was calculated on its own sample sheet. Open one to see the sheet, why it works, and to try it yourself.
=TEXTJOIN("; ",TRUE,B2:B8)Google Sheets · result on the sample sheet: ana@ruiz.example; raj@patel.example; kim@ortiz.example; mo@diaz.example; sam@cole.example; eve@lund.example
=TEXTJOIN(", ",TRUE,A2:A7)Excel · result on the sample sheet: Aiko Tanaka, Ben Adams, Chidi Okafor, Dana Novak, Eli Haddad
=TEXTJOIN(", ",TRUE,SORT(TEXTSPLIT(A2,,", ")))Excel · result on the sample sheet: 5 rows (B2:B6)
=TEXTJOIN(", ",TRUE,TRIM(TEXTSPLIT(A2,",")))Excel · result on the sample sheet: 5 rows (B2:B6)
=TEXTJOIN(", ",TRUE,UNIQUE(TEXTSPLIT(A2,,", ")))Excel · result on the sample sheet: 5 rows (B2:B6)
=TEXTJOIN("",TRUE,MID(A2,SEQUENCE(LEN(A2),,LEN(A2),-1),1))Excel · result on the sample sheet: 5 rows (B2:B6)
You describe the task in plain English, and it writes the formula, using JOIN where that's the right tool, for your table or a sample one. The formula is run in our engine in Google Sheets mode before you see it, so you get its result, not just a guess.
JOIN combines the values in one or more rows or columns into a single piece of text, with a delimiter between each value.
Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the JOIN function page has a practice exercise.