How can I use Google Sheets to concatenate cells and separate them with a comma? 2

How can I use Google Sheets to concatenate cells and separate them with a comma?

Google Sheets is a powerful spreadsheet software that allows users to manipulate and organize data in a variety of ways. One useful function is the ability to concatenate cells, which combines the contents of multiple cells into one cell. This can be particularly helpful when working with large datasets. To concatenate cells and separate them with a comma, users can use the CONCATENATE function and include a comma within the formula. This will join the values of the selected cells together, with a comma separating each value. This feature can be used in various applications, such as creating mailing lists or organizing contact information. By using Google Sheets to concatenate cells and separate them with a comma, users can save time and improve the efficiency of their data management tasks.

Google Sheets: Concatenate Cells with a Comma


You can use the following basic formula to concatenate a range of cells with a comma in Google Sheets:

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

This particular example concatenates each cell in the range A2:C2 with a comma in between the characters of each cell.

Note: The TRUE argument specifies that blank cells in the range should be ignored.

The following example shows how to use this formula in practice.

Example: Concatenate Cells with a Comma in Google Sheets

Suppose we have the following dataset in Google Sheets that contains the first, middle and last names of various people:

We can type the following formula into cell D2 to concatenate the names in cells A2 through C2 with commas:

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

We can then copy and paste this formula down to each remaining cell in column D:

Google Sheets concatenate cells with comma

Notice that the first, middle and last names in each row have all been concatenated together in column D with commas separating each name.

Note that in the TEXTJOIN formula we intentionally added a space after each comma as well.

If you’d like, you can use the following formula to join the cells together with commas only:

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

The following screenshot shows how to use this formula in practice:

Notice that the first, middle and last names in each row have all been concatenated together with commas and no spaces.

The following tutorials explain how to perform other common tasks in Google Sheets:

Cite this article

stats writer (2024). How can I use Google Sheets to concatenate cells and separate them with a comma?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-concatenate-cells-and-separate-them-with-a-comma/

stats writer. "How can I use Google Sheets to concatenate cells and separate them with a comma?." PSYCHOLOGICAL SCALES, 23 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-concatenate-cells-and-separate-them-with-a-comma/.

stats writer. "How can I use Google Sheets to concatenate cells and separate them with a comma?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-concatenate-cells-and-separate-them-with-a-comma/.

stats writer (2024) 'How can I use Google Sheets to concatenate cells and separate them with a comma?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-google-sheets-to-concatenate-cells-and-separate-them-with-a-comma/.

[1] stats writer, "How can I use Google Sheets to concatenate cells and separate them with a comma?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How can I use Google Sheets to concatenate cells and separate them with a comma?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top