How to Concatenate in Google Sheets (Combine Cells without Losing Data)

Written by Coursera Staff • Updated on

Learn how to use CONCATENATE to combine cells in Google Sheets without losing data.

[Featured image] Students learn how to concatenate in Google Sheets.

The term concatenate means to link things together in a chain or series. In Google Sheets, CONCATENATE is a function that combines the data from two or more individual cells into one new cell. For example, you may want to combine a column of first names with a column of last names to form a singular column with first and last names.

By the end of this tutorial, you will be able to use the CONCATENATE function to combine cells without losing data.

Do you need to merge cells instead?

Merging cells creates one cell where there would normally be several cells. Read step-by-step instructions in How to Merge Cells in Google Sheets.

Placeholder

CONCATENATE syntax

Syntax is the set of rules that defines the structure of a language. Writing your formula with the correct syntax ensures that the program understands your commands. The syntax for the CONCATENATE function is:

=CONCATENATE(string1, [string2, ...])

The strings refer to the information that you want to combine. They can be an individual cell, a range, or specified text. Any string beyond the first string is optional.

CONCATENATE vs. CONCAT

The CONCAT function is a shortened version of the CONCATENATE function, and its syntax is similar: =CONCAT(value1, value2)

However, there are two main differences: (1) CONCATENATE can handle strings, and CONCAT values are limited to text and cells, and (2) CONCATENATE can join several strings, and CONCAT can only join two values.

Essentially, CONCAT is a limited version of CONCATENATE.

Placeholder

How to concatenate in Google Sheets 

Here, we'll show you how to combine two columns of data. You can also use the CONCATENATE function across rows of data by creating rows where we suggest creating columns.

Ready to deepen your knowledge of Google Sheets?

To begin, you'll need your tab open to your spreadsheet. If you want to follow along with our examples, make a copy of this practice sheet to get started.

Placeholder

1. Create a new column to the right or left of the cells you want to combine. 

To create a new column, right-click on a row, column, or cell and select + Insert 1 column (left or right) from the drop-down menu. 

Alt text: Google Sheets screencap displaying a highlighted column with the drop-down menu for inserting a new column

We'll write our CONCATENATE function in this column, so by the end of this tutorial, your combined results will populate in this new column. 

2. Write the function in the first cell in your new column.

Select the first cell in your new column and begin typing your function, =CONCATENATE(.

Alt text: screencap displaying the concatenate function typed into the fx bar in Google Sheets

Your strings represent the information that you want to combine. You can select a specific cell to pull the data from that cell, use text in quotation marks ("), or specify a range of cells. In this case, let’s combine A1 with B1 so that the restaurant is in the same cell as its corresponding phone number. Remember to separate your strings with commas:

=CONCATENATE(A1,B1)

Alt text: Screencap displaying the concatenate function with an example formula typed into the fx bar in Google Sheets.

In the example above, you’ll notice that a preview of the results appears above the function. You can use this to ensure you’re concatenating the right strings. Press the enter key to formulate your results in the new column:

Alt text: Screencap displaying the results of a concatenate function in a new column in Google Sheets.

3. Copy and paste the function throughout the column to concatenate other cells.

You can replicate the function throughout your column by copying and pasting your function throughout the column, or by clicking on the cell with the function and dragging the bottom right corner. 

Google Sheets may also suggest the autofill function, which will automatically populate your column with your function. You can double-check the formula by clicking on the 'Show formula' hyperlink in the autofill suggestion box:

Alt text: Screencap displaying the suggested autofill formula message in Google Sheets

How to concatenate entire columns in Google Sheets

If you want to concatenate multiple strings, you can replace your comma with a colon to specify a range of cells. For example, =CONCATENATE(A1:B4) will produce the same result as =CONCATENATE(A1, B1, A2, B2, A3, B3, A4, B4). When working with ranges of cells, they are adjoined across rows then down columns.

Let’s try concatenating two single columns (column A and column B) from the example above:

 

Alt text: Screencap displaying the fx bar in Google sheets with an example formula concatenating two columns

When you begin typing the range, Google Sheets will highlight the cells that you’ve included. Close the parentheses and hit enter to combine the columns into a new cell:

Alt text: Screencap displaying the results of an example formula concatenating two columns in Google Sheets

How to add space in CONCATENATE

The cells you concatenate are not formatted automatically. This lack of formatting can affect the readability of your data. You can combine cells with spaces in between by including an empty string in your formula. To create an empty string, add a single space enclosed in quotation marks:

=CONCATENATE(A1," ",B1)

You’ll need to include an empty string in between each string that requires a space. 

Concatenating dates and times in Google Sheets

If you’re trying to concatenate cells containing dates and times in Google Sheets, you’ll need to take a different approach. There are two ways to join cells with dates and times. The one you’ll use depends on how you formatted your dates.

1. mm/dd/yyyy format

You can join this format using a formula. First, select your cell to the right or left of the ones you’d like to combine. Then, type an equal sign into the function (fx) bar followed by the cells you want to combine. Instead of separating them with a comma, you’ll need to separate them with a plus sign (+), like this: =A1+B1

Alt text: Screencap displaying the preview of a concatenate formula with a date cell and a time cell in Google Sheets

A preview of your resulting cell will appear above the formula bar the same way it would if you were using the concatenate function. 

2. mm.dd.yyyy format

Joining cells with this type of date format requires you to use two TEXT functions:

=TEXT(number, format)&TEXT(number, format)

Here, the number is the date or time and the format is how you want the date or time formatted, written inside quotation marks (").

For example, to combine a date in A1 with a time in A2, you may write:

=TEXT(A1,"mm.dd.yyyy")&TEXT(A2,"hh:mm")

Here,

  • A1 is your date cell

  • "mm.dd.yyyy" is your date format

  • & tells Google Sheets to combine the two text functions

  • A2 is your time cell

  • "hh:mm" is your time format

Alt text: Screencap displaying a correctly formatted date and time concatenation in the Google Sheets fx bar

Keep learning with Coursera

Continue mastering data analysis tools like Google Sheets while earning a certificate for your resume by enrolling in the Google Data Analytics Professional Certificate

Keep reading

Updated on
Written by:

Editorial Team

Coursera’s editorial team is comprised of highly experienced professional editors, writers, and fact...

This content has been made available for informational purposes only. Learners are advised to conduct additional research to ensure that courses and other credentials pursued meet their personal, professional, and financial goals.