Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to concatenate range/cells with comma, space, line break in Excel?

This article is talking about concatenating a row/column into one cell with separating by comma or space, as well as concatenating a range into one row/ column/cell with separating each cell content by any kind of separators, such as comma, space, line break, etc. in Excel.

Concatenate a row with comma/space by formula

Concatenate a column with comma/space by formula

Concatenate a range/row/column with comma/space/line break

Batch combine multiple cells/rows/columns without losing data and date/number format in Excel

Normally when merging cells with the Merge feature in Excel, it will remove all cell contents except the first cell content. However, with Kutools for Excel's Combine (Rows & Columns)utility, you can easily batch combine multiple cells/rows/columns without losing data. What's more, this utility also supports remaining original date format and number formats in the combination results. Full Feature Free Trial 60-day!

ad combine rows columns keep formatting



For example you have a row of names as below screenshot shown, and you need to concatenate this row into one cell and separate cell contents with comma or space. You can apply the CONCATENATE function as follows:

doc concatenate range with comma space linebreak 0

1. Select a blank cell you will place the concatenation result in, and enter the formula =CONCATENATE(B1:J1&",") into it.

2. Highlight the B1:J1&"," in the formula and press F9 key to replace cell references with cell contents.

3. Remove the curly braces { and } from the formula, and press the Enter key. See screenshot:

doc concatenate range with comma space linebreak 1

Note: In above formula, B1:J1 is the row you will concatenate, and "," means you will separate each cell content by comma. For separating by space, please replace the "," with “ “ in the formula.


Supposing you have a column of names as below screenshot shown, you can also apply the CONCATENATE function to combine this column/list into one cell and separate each cell content by comma or space in Excel.

doc concatenate range with comma space linebreak 3

1. Select a blank cell you will place the concatenation result in, and enter the formula =CONCATENATE(TRANSPOSE(A2:A16)&",") into it.

2. Highlight the TRANSPOSE(A2:A16)&"," in the formula, and press the F9 key to replace cell reference with cell contents.

3. Remove curly braces { and } from the formula, and press the Enter key. See above screenshot:

Note: In above formula, A2:A16 is the column/list you will concatenate, and "," means you will separate each cell content by comma. For separating by space, please replace the "," with “ “ in the formula.


For example, you have a range as below screenshot shown, you can concatenate this range into one column, one row, or one cell easily with Kutools for Excel’s Combine utility.

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

1. Select the range you will concatenate, and click Kutools > Combine. See screenshot:

doc concatenate range with comma space linebreak 4

2. In the opening Combine Columns or Rows dialog box, please do as follows:

doc concatenate range with comma space linebreak 5

(1) In the To combine selected cells according to following options section, specify a combination option based on your need. In our case, we check the Combine Columns option;

(2) In the Specify a separator section, check a separator as you need. In our case, we check the New line option;

(3) Specify an option from the Place the results to drop down list. In our case, we select the Left Cell.

(4) In the Options section please check the Delete contents of combined cells option. See screenshot:

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!

3. Click the Ok button.

And then you will see selected columns are merged into one column, and cells in each row are concatenated into the first cell of this row. See screenshot:

doc concatenate range with comma space linebreak 6

Select Combine rows option in the To combine selected cells according to following option section:

doc concatenate range with comma space linebreak 7

Select Combine into single cell option in the To combine selected cells according to following option section:

doc concatenate range with comma space linebreak 9


In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!



Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.