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 merge and combine rows without losing data in Excel?

Excel only keeps the data in the upper-left most cell, if you apply "Merge & Center" command (Home tab > Merge & Center on the Alignment panel) to merge rows of data in Excel. Users have to use another method to merge multiple rows of data into one row without deleting data. This tutorial is going to present you the method of how to merge rows of data into one row.

  1. Merge Rows of data into one cell with Clipboard
  2. Merge rows of data into one row with formula
  3. Merge rows of data into one row with formula 2
  4. Merge rows of data into one row with Kutools for Excel  
  5. Merge rows of data with same value in certain column

   Combine multiple columns / rows without losing data and 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

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


 Merge Rows of data into one cell with Clipboard

With the Clipboard, you can easily merge the rows of data into a single cell in Excel. Please do as follows:

1. Click the anchor  at the bottom-right corner of the Clipboard group on the Home tab to enable the Clipboard left the working area. See screenshot:

2. Select the Rows of data, and press Ctrl + C keys to copy them. Then the copied data is added into the Clipboard.
Note: You can also click Home > Copy to copy the selected rows of data.

3. Double click into a blank cell, and click the copied data in the Clipboard. Then the copied rows of data are inserted into the cell at once. See screenshot above.


  Merge rows of data into one row with formula 1


For example, you have some data in Excel, and now you need to merge rows into one row and get the following result, how could you do?Here are some formulas can help you to merge the data in multiple rows into one row.

Merge rows of data without spaces between the data: =A1&A2&A3&A4&…
Merge rows of data with spaces between the data: =A1&" "&A2&" "&A3&" "&A4&…

1. In the blank Cell A9, please enter the formula =A1&A2&A3&A4&A5 or =A1&" "&A2&" "&A3&" "&A4&" "&A5.

2. Then press Enter key and select the Cell A9, drag the fill handle over the range of cells that you want to apply this formula.

Now the rows of data have been merged into one row.

Note: To remove the formulas but remain merging results, you can do as follows: select the formula cells, press Ctrl + C keys to copy them, right click the selected formula cells and click Value from the context menu. Or you can apply the To Actual feature of Kutools for Excel to remove formulas but remain merging result with only one click, Read more ...

If you have multiple rows need to be merged, this method will be complex.


 Merge rows of data into one row with formula 2

You can also combine the CONCATENATE and TRANSPOSE functions to merge multiple rows of data into one cell in Excel. Please do as follows:

1. Select a blank cell, enter the formula =CONCATENATE(TRANSPOSE(A1:A10&" ")), and highlight TRANSPOSE(A1:A10&" ") in the formula.

2. Press F9 key to convert the highlight part of formula to values.

3. Remove the curly brackets { and }, and the space behind the last value in the formula. In my case, remove {, }, and the space in “effectively ” .

4. Press Enter key.

Now the given rows of data are merged into the specified cell/row without any data lost.

Note: To remove the formula but remain the merging result, you can copy the formula cell, right click it, and select Value from the context menu.


 Merge rows of data into one row with Kutools for Excel

It is much easier to merge rows of data into one row with the the Combine feature of Kutools for Excel.

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

1. Select the range that you want to merge, and click Kutools > Combine. See screenshot:

2. In the Combine Columns & Rows dialog box, specify the options as below screenshot shown:
(1) Select Combine rows under To combine selected cells according to following options.
(2) Specify a separator for the combined data.
(3) Specify the place in the Place the results to drop down list;
(4) Specify how you want to deal with the combined cells. You can keep or delete contents from those combined cells, and you can also merge those combined cells.

3. Then click OK to combine multiple rows into one row without losing data.

(1) If the Keep contents of combined cells options is checked in above step:

(2) If the Delete contents of combined cells options is checked in above step:

(3) If the Merge the combined cells options is checked in above step:

The Combine (Columns or Rows) feature of Kutools for Excel supports more combination scenarios in Excel. Have a Free Trial!


 Merge rows of data with same value in certain column

Supposing you have a range of data as below screenshot shown. Now you may need to merge rows of data with the same value in the Fruit column. In this condition, you can apply the Advanced Combine Rows feature of Kutools for Excel to deal with it.

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

1. Select the range you will merge rows with same value, and click Kutools > ContentAdvanced Combine Rows.
doc merge rows into one kte 06

2. In the Advanced Combine Rows dialog, please set the certain column (Fruit column) as primary Key, specify combination settings for other columns, and click the Ok button.
Set Primary Key column: Click to highlight the Fruit column, and click Primary Key;
Specify combination settings: click one of the other columns, and click Combine > Nothing, Space, Semicolon, Comma, or New Line as you need.

Now all rows are merged based on the same value in the certain column. See screenshot:

Note: this Advanced Combine Rows feature not only supports to merge rows based on the same value in certain column, but also supports to calculate based on the same value in the certain column. For example, I specify the combination and calculation settings as follows:
(1) Set the Fruit column as Primary Key column;
(2) Combine Date column with comma;
(3) Get the average value in the Price column;
(4) Get Max value in the Weight column;
(5) Get summary total value in the Amount column:

Then you will see the rows are combined and calculated based on the same value in the Fruit column as follows:

The Advanced Combine Rows feature of Kutools for Excel is designed to help Excel users easily combine rows based on values in a certain column, and calculate (count, sum, max, min, etc.) based on the certain columns too. Have a Free Trial!


 Merge rows of data into one row with Kutools for Excel



Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 300 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

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.
  • To post as a guest, your comment is unpublished.
    sruthi · 1 years ago
    Good afternoon,
    I have text data in rows ,I want to merge in a single row all the data one by one
  • To post as a guest, your comment is unpublished.
    Pushpalatha R N · 1 years ago
    Hi,
    I need to get the data one by one not one next another
  • To post as a guest, your comment is unpublished.
    Walid Ahmad Nouh · 2 years ago
    Thanks a lot, Too much helpful.
  • To post as a guest, your comment is unpublished.
    SANDESHPAWAR · 5 years ago
    hi, I need to combine all my row in one , with coma "," against two word / number