To concatenate (combine) strings in Google Sheets with a comma, you can use the CONCATENATE function, the & operator, or the TEXTJOIN function.
If you're combining a few specific cells and want to insert a comma between them, you can use the CONCATENATE formula. Simply follow the steps below.
Open a Google Sheets document and input names in column A and cities in column B. For example, place "John" in A2 and "New York" in B2.
Click on the cell where you want the result (e.g., C2) and type =CONCATENATE(A2, ", ", B2) in the formula bar to concatenate the name and city with a comma.
After pressing Enter, cell C2 displays "John, New York" which shows the combined name and city.
The ‘&’ operator method is similar to the CONCATENATE function method above, but it can be quicker and easier to type for many users. Here’s how to use it:
In your Google Sheets document, ensure names are in column A and cities in column B. For example, "Jane" in A3 and "Los Angeles" in B3.
In the cell where you want the merged text (e.g., C2), enter =A3 & ", " & B3 to join the name and city with a comma.
Pressing Enter will result in "Jane, Los Angeles" in the selected cell which indicates successful concatenation.
The ‘TEXTJOIN’ function is very powerful for concatenating a range of cells with a specific delimiter, like a comma, especially if some cells might be empty and you want to ignore these. Here's how to use it:
Launch Google Sheets and fill column A with names from A2 to A5, such as "John", "Jane", "Michael", and "Emily".
In a chosen cell (e.g., C2), type =TEXTJOIN(", ", TRUE, A2:A5) to concatenate the list of names with commas, skipping any blanks.
Hit Enter to see "John, Jane, Michael, Emily" in cell C2, showcasing a comma-separated list of all names.
We hope that you now have a better understanding of how to set up Google Sheets concatenate with commas using different methods.
If you enjoyed this article, you might also like our article on how to concatenate multiple cells in Google Sheets or our article on how to set up Google Sheets to concatenate with separators.