Concatenate Two, Three or More Than Three Columns in Google Sheets

Published on

I can suggest you different functions to concatenate columns in Google Sheets. It include CONCAT, QUERY and the Ampersand Sign. Of course, the CONCATENATE function is not on the list as it’s not for concatenating columns.

Read: Google Sheets Functions Guide.

Let’s start with concatenate two columns first. But before proceeding further lean how to use the CONCAT function in Google Sheets.

How to Use the CONCAT Function in Google Sheets

Syntax:

CONCAT(value1, value2)

Concat Formula Example:

=concat("info","inspired")

The above CONCAT formula will return the string “infoinspired”. Type “info” in cell A1 and “inspired” in cell B1. Then the formula will be as follows.

=CONCAT(A1,B1)

How to Concatenate Two Columns in Google Sheets

When you want to concatenate two columns use the ArrayFormula with Concat as below.

Concatenate columns in Google Sheets using CONCAT

Actually, the function CONCAT in Google Sheets is ‘equal’ to the Ampersand sign usage. Then how to concatenate two columns in Google Sheets Using the Ampersand?

Here I am replacing the just above Concat formula with the Ampersand.

=ArrayFormula(A2:A9&B2:B9)

How to Concatenate Morethan Two Columns in Google Sheets

To concatenate more than two columns, you can use the Ampersand or Query. The Concat function won’t support concatenating of more than two columns.

The Ampersand is easy to use to concatenate more than two columns but there is a draw-back. First, see how to concatenate three + columns using the Ampersand symbol.

Concatenate 4 columns

Most of the cases, you can use the ampersand to concatenate more than two columns in Google Sheets. There is two drawbacks of this formula.

  1. If the number of columns is large, as with the same case of many other formulas, you may find it tough to code the formula without any typo.
  2. Insert one column between the columns already concatenated. To include that column in the formula, you must edit the formula. For example, in the above sample data, insert a new column between B and C. Enter values in that column. Now you must edit the formula to include that column.

Query helps us to overcome this limitation.

Concatenate a Large Number of Columns Using Query in Google Sheets

Formula:

Query to concatenate columns in Sheets

You can use this Query to concatenate a large number of columns in Google Docs Sheets. You only need to change the range in the above formula on your Sheets.

=transpose(Query(transpose(A2:D9),,9^9))

The above formula concatenate four adjoining columns, i.e, column A, B, C, and D.

What about non-adjacent columns?

In such cases, I recommend using the ampersand. But if you are so much particular, you can use Query too.

I mean if first few columns are adjoining and there are some other non-adjacent columns, you can consider Query.

concatenate non-adjacent columns

How you could learn how to Concatenate Columns in Google Sheets. Enjoy!

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Marking Case-Sensitive Unique Values in Excel

Marking case-sensitive unique values provides several benefits compared to merely extracting them in an...

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Compare Two Tables for Differences in Excel

To compare two tables with similar data for differences, you can use the XLOOKUP...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

More like this

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

4 COMMENTS

  1. So I’m not trying to extract the string from another line in the same cell I am trying to make a list separated by a line break from strings in separate cells

    Right now I am doing the following:

    =Sheet 1!E:E&" "&Sheet 2!E:E&" "&Sheet 3!E:E

    Which will give me whatever is entered into the E column of that cell in each sheet into a single cell separated by spaces. Eg: if I enter A in Sheet 1 B in Sheet 2 and C in Sheet 3 it will output A B C in the target cell.

    Is there a way to insert a linebreak where I currently have my spaces so that the list would read

    A
    B
    C

    Within the same cell

    As opposed to
    A B C ?

    Thanks!

    • Hi, Adam,

      Thanks for the clarification.

      The character that represents the new line can be generated using the CHAR function as below.

      =CHAR(10)

      You can use this formula instead of ” ” in your formula as below.

      ="Info"&char(10)&"inspired"

      So your formula will be like;

      =ArrayFormula('Sheet 1'!E:E&char(10)&'Sheet 2'!E:E&char(10)&'Sheet 3'!E:E)

      Hope this helps.

  2. I’m trying to find a way to concatenate a string from a cell with a string from another cell that starts on the next line within the same cell. Is there a way to move to the next line within a formula?

    • Hi, Adam,

      To extract the string after the first line in the same cell, you can use the below formula.

      =mid(D4,find(char(10),D4)+1,len(D4))

      Please replace D4 with the cell that contains your string.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.