How to merge rows in Excel without losing data

The tutorial shows how to safely merge rows in Excel in 4 different ways: merge multiple rows without losing data, combine duplicate rows, repeatedly merge blocks of rows, and copy matching rows from the lookup table based on one or more common columns that you select.

Merging rows in Excel is one of the most common tasks that all of us need to perform every now and then. The problem is that Microsoft Excel does not provide a reliable tool to do this. For example, if you try to combine two or more rows in your worksheet using the Merge & Center button (Home tab > Alignment group), you will end up with the following error message:

"The selection contains multiple data values. Merging into one cell will keep the upper-left most data only."

The selection contains multiple data values. Merging into one cell will keep the upper-left most data only.

If you click OK, the merged cells will contain only the value of the top-left cell, all other data will be gone. So, obviously we need to come up with some other solution. And further on this this article you will find several methods that will let you merge multiple rows in Excel without losing any data.

How to merge rows in Excel without losing data

The task: you have a customer database where each row contains certain details such as the product name, product key, customer name and so on. What we want is to combine all the rows related to a particular order, so that the result would look similar to this:

All the rows related to a particular order are merged into one.

When it comes to merging Excel rows, there are two ways to achieve the desired result:

How to merge multiple rows using Excel formulas

Microsoft Excel provides several formulas that can help you combine data from different rows. Probably the easiest one to use the CONCATENATE function. Here are a few examples to concatenate several rows into one:

  • Merge rows and separate the values with comma: =CONCATENATE(A1,", ",A2,", ",A3)
  • Merge rows with spaces between the data: =CONCATENATE(A1," ",A2," ",A3)
  • Combine rows without spaces between the values: =CONCATENATE(A1,A2,A3)

I believe you have already deduced the general rule to write such a formula - simply enter all cells to be merged separated with commas, and then type the separator in between, e.g. ", " is a comma with a space; " " is only a space.

So, let's see how the CONCATENATE formula will work on the real data.

Rows of data to be merged

  1. Select an empty cell on the sheet and enter the formula into it. We have 9 rows of data, so the formula is going to be pretty large: =CONCATENATE(A1,", ",A2,", ",A3,", ",A4,", ",A5,", ",A6,", ",A7,", ",A8)
  2. Copy the formula across all other cells in the row, the result should look similar to this:
    Multiple rows of data merged into one row using the CONCATINATE formula.
  3. Now you have several rows of data merged into one row. But your combined rows are, in fact, formulas and if you want to convert them to values, you can simply copy / paste the merged rows to some other row in your spreadsheet. The following tutorial explains how to do this in detail: How to replace formulas with their values in Excel.

How to combine rows in Excel using the Merge Cells add-in

The Merge Cells add-in is purposed for combining various types of cells in Excel. It merges individual cells as well as combines data from entire rows or columns. This is how the Merge Cells button looks like on the Excel Ribbon:
The Merge Cells button on the Excel Ribbon

To merge two or more rows in your table, proceed with the following 4 steps:

  1. Select the rows you want to merge and click on the Merge Cells icon.
  2. The Merge Cells dialog window will open with your table or range already selected, as you can see in the screenshot below. In the upper part of the window, you specify three basic things:
    • How you want to join cells. To merge rows of data, select "column by column".
    • How to separate the merged values. There is an array of standard separators to choose from: comma, space, semicolon and even line break! If you want to use some other separator, merely type it directly in this field.
    • Where to place the merged cells. This can be either the top cell or bottom cell.

    Choose how you want to merge rows and separate the merged values.

  3. Now let's have a quick look at the lower part of the window to see if you need any aditional options:
    • Clear the content of selected cells. Select it if you want the data to remain in the merged cells only.
    • Merge all areas in the selection. This option will let you merge rows in two or more non-adjacent ranges.
    • Skip empty cells and Wrap text. These two are self-explanatory, aren't they?
    • And finally, you see the "Create a backup copy of the worksheet" option, checked by default. This is just a precaution that will keep you on the safe side and ensure that you won't lose your data in any case.

    Choose additional options for merging Excel rows.

  4. Now let us click the Merge button and see what we get as a result - perfectly merged rows of data separated with line breaks!
    Merged Excel rows separated with line breaks

You can download a fully-functional trial version of Merge Cells addin now, try it on your own data and see if it's the right tool for you. The add-in works with all versions of Excel 2016, 2013, 2010 and 2007.

How to combine duplicate rows into one (keeping unique values only)

The task: you have some Excel database with a few thousand entries. A bunch of values in one of the columns are essentially the same while data in other columns are different. What you'd like to have is combine data from duplicate rows based on a certain column, making it a comma separated list. Additionally, you may want to merge unique values only, omitting duplicates and skipping empty cells.

The screenshot below illustrates what we are trying to achieve.
Need to combine data from duplicate rows based on a column, making it a comma separated list.

Finding and merging duplicate rows in Excel may be a real nightmare and obviously everyone would like to avoid doing this work manually. In this case, another add-in, Combine Rows Wizard, may come in truly handy.
The Combine Rows Wizard add-in

As I've said, combining duplicate rows in Excel seems to be a pretty tricky task, but the Combine Rows Wizard will walk you through the process making it really simple. And again, you'll need just 4 quick steps:

  1. Select the duplicate rows you want to merge and click the Combine Rows Wizard icon on the ribbon. Make sure the "Create a backup copy" option is checked, especially if you are using this add-in for the first time.
    Select the duplicate rows and click the Combine Rows Wizard icon.
  2. Select the key column. In our example, we're selecting the "Customer" column (A) because we want to combine rows based on customer name. If you want to skip empty cells, be sure to select this option in the upper-right corner and click Next.
    Select the key column based on which you want to combine duplicate rows.
  3. Choose the columns to merge. On this step you select the columns whose data that you want to combine and specify the delimiter: semicolon, comma, space, line break or any other character(s) of your choosing. Two additional options in the upper part of the window let you:
    • Delete duplicate values while combining the rows, and
    • Skip empty cells.

    Select the columns whose data that you want to combine.

  4. Click the Finish button and you'll see the result in a moment.
    Data from duplicate rows are merged into one row.

That was pretty easy, isn't it? To make sure of this, go ahead and download the trial version of Combine Rows add-in. You can use it with any version of Excel 2016, 2013, 2010 and 2007.

Repeatedly merge blocks of rows into one row

The task: you have an Excel file with information about the recent orders and each order takes 3 lines: product name, customer name and date of purchase. What you need is to merge every three rows into one, i.e. repeatedly merge the blocks of three rows in an Excel sheet.

This is what we are looking for:
The task is to repeatedly merge blocks of three rows in an Excel worksheet.

If you have a fairly few entries to be combined, you can select each 3 rows and merge each block individually using the Merge Cells Wizard as we discussed in How to merge Excel rows without losing data. But if you have hundreds and thousands of records in your database, this is definitely not a very elegant solution. There is a quicker way to achieve the needed result:

  1. Create an additional column in your worksheet; it is column C in our example. Let's name it Block Id, or maybe you can come up with a more meaningful name : )
  2. Write the following formula to the 2nd cell of that column (C2) because most likely your table has headers: =INT((ROW(C2)-2)/3). And then copy it across the entire column.

    Now, what does this formula actually do? It adds a unique number to each block of rows to be merged, as shown in the screenshot:
    A unique number is added to each block of rows to be merged.

  3. Well, the previous step actually did the main part of the work. Now you just need to merge the rows based on column Block Id using the Combine Rows Wizard, exactly in the same way as we did in the previous example when combining duplicate rows.
    Merging blocks of rows using the Combine Rows Wizard

    And here's what we have as the result:
    Every 3 rows are merged into one.

  4. Delete the Block ID column since you don't need it any longer and you are done! Funny enough, that we've needed 4 steps again, like in two previous examples : )

Merge matching rows from 2 Excel worksheets without copying / pasting

Task: you need to merge rows from 2 tables based on a common column. The tables may be located in the same sheet, in two different spreadsheets or even in two different workbooks. For example, you have sales reports for January and February in two different worksheets and you want to combine them into one.
The task is to merge rows from 2 worksheets based on a common column.

Mind you, each workbook may have a different number of records and different order of product names, so you cannot simply copy and paste the "Feb Sales" column to the first workbook because the products won't match.

Another add-in from AbleBits will work a treat in this case - Merge Tables Wizard. This tool will find, match and merge rows from two Excel worksheets in seconds, no matter how many rows each spreadsheet contains. The design of the wizard is pretty much similar to the Combine Rows Wizard we've used in two previous examples, so it should already look familiar to you : ) Okay, to combine matching rows from 2 spreadsheets, do as follows:

  1. Select the 1st table, this is the main table that you want to update, and click the Merge Tables button on the Ribbon (Ablebits Data > Merge).
    Select the main table that and click the Merge Tables button.

    This will open the Merge Tables Wizard's dialog with your first table already selected, so simply click Next.

  2. Select the second worksheet, i.e. a lookup table where you want to search for matching rows.
    Select the second worksheet where you want to search for matching rows.
  3. Choose the column with unique values that exists in both tables, it will be used as a unique identifier. It our example, it can be either Product Name or Product ID, or both.
    Choose the column with unique values that exists in both tables.

    You can also click the Auto Detect button at the bottom left-hand corner and the wizard will find the key column(s) automatically.

  4. Choose which column(s) you want to update and which add to the end of the 1st table. Since we want to add only the "Feb sales" column, let's select it and click Next.
    Choose which columns you want to update and which add to the end of the main table.
  5. On the next step, the Merge Tables Wizard provides a few additional options, such as:
    • Add non-matching rows to the end of the table
    • Update only empty cells in the main table
    • Highlight updated rows in a color of your choosing

    Actually, there are some more options, as you can see in the screenshot below:
    Additional options provided by the Merge Tables Wizard

    If you don't need any of these options for now, you can skip this step and click the Finish button.

    However, if your second worksheet may contain some rows that do not exist in the first spreadsheet and you do want to add them, select Add non-matching rows to the end of the table.

Now click Finish, wait for a couple of seconds and as the result you have all matching rows from two Excel worksheets merged into a single table:
All matching rows from two worksheets merged into a single table.

If you are interested to try the Merge Tables Wizard, go ahead and download a trial version here. As well as the two previous tools, it support Microsoft Excel 2016 - 2007.

How do I get these merging tools for Excel?

First off, you can download 15-day fully-functional trial versions to make sure the add-ins really suite your needs, here is the download page.

If you like any of the merging tools described in this article, you have several options to get them:

  1. Buy any of the add-ins as a separate product using the order page.
  2. Get 3 merging tools in a bundle and safe over 25% off their individual prices. In other words, you pay only for 2 add-ins and get a 3rd one for free! The bundle includes Merge Cells, Combine Rows Wizard and Merge Table Wizard, and here's the order form.
  3. Have these 3 merging add-ins + 60 more tools as part of Ultimate Suite for Excel.
    Note: This is a really important note, don't disregard it : ) Before you proceed to the order page, be sure to copy the coupon code that we provide especially for our blog readers: AB14-BlogSpo. It will give you an additional 15% discount on any Ablebits product.

Hopefully, now you can merge rows in your Excel sheets exactly as you want them. If you are looking for something different and have not found the solution in this article, just leave a comment and we will try to figure out a way together. Thank you for reading!

You may also be interested in:

78 Responses to "How to merge rows in Excel without losing data"

  1. Akbar Ali says:

    Hey Friend If u are still here so please tell me how to Merge or combine two column without losing 1 have numbers in A1 and AW1,AX1 both had merged.i want copy A1 number to AW1,AX1...i Have a Very Big it Possible or i ahve to do Manually...please Reply Fast..Thanks...

  2. Gayle says:

    Can I use this tool if I need to use the contents 2 columns ?

  3. Bridget says:

    I tried out this merging tool for the past two days and I like it a lot, but I run into problems, as soon as I try to combine a sheet that just contains text and number data with a sheet that has a date column. Is there something that has to be considered when doing this? I tried every possible combination, but it just does not seem, that my merged values are ever correct...

    • Hello Bridget,

      Thank you for your interest in our merging add-in for Excel, I am really glad to know you like it!

      I'm afraid we cannot determine the exact cause of the problem without seeing your data. Can you please send me your workbook (or just a sample of data) at and describe the result you are trying to achieve? I will do my best to help.

  4. Mukesh says:

    Hi Swetlana
    I can not find the menu and i want to help you on urgent basses so kindly help me.

    Mukesh Walia

  5. Harold says:

    let's say I have 2 rows of the exact same data, except for ONE cell in each column.

    For an example, let's make the headers: a. Customer Name, b. Customer ID, c. Customer Address, and d. Amount Paid.

    Now rows 1 & 2 are the exact same customer, except in row 1 column d the dollar amount is $500, and in row 2 the dollar amount is $300.

    Is there a way to quickly consolidate into a single line, with the dollar amount in column d the sum of the previous entries? (i.e. $800)?

  6. Jeannine Rick says:

    Thank you so much for this!! I was pulling my hair out trying to merge address data into one cell so that it would be more usable in a Mail merge in Microsoft Office. You saved my day!!! Thank you, thank you, thank you!!!

  7. john says:

    I am having a 5000 customer in Column "A" and In column "A' most of the customer is repeated Now i want the formulas from which i will check the names of the customer which is present in this column.

  8. jhon says:

    I am having the list as mentioned below and i want the result which is mentioned.
    please help by provinding the solution as mentioned in name coloum is change day by day i expecting the formula from where he automaticaly give me the result name of the customer which is present in name column.

    Name code amount
    Abc 123 2
    DEF 456 3
    GHF 458 4
    KLM 741 5
    NMR 351 6
    DEF 456 7
    KLM 741 8
    MNP 3425 9
    NMR 351 10
    MNP 3425 11
    JKL 7538 12
    Abc 123 13
    DEF 456 14
    GHF 458 15
    GHF 458 16
    DEF 456 17
    DEN 753 18

    I want the Result to be like mentioned below by using the formaulas

    Name Code Amount
    Abc 123 15
    GHF 458 35
    DEF 456 41
    KLM 741 13
    NMR 351 16
    MNP 3425 20
    JKL 7538 12
    DEN 753 18

    • Alexander says:

      I believe the following solutions will work:

      Solution 1:
      - Sort your table by the Name column.
      - Go to Data > Outline and click on Subtotal.
      - Specify the following settings:
      At each change in: Name
      Use function: Sum
      Add subtotal to: Amount
      - Click OK and then press Number 2 in the upper left-hand corner of your worksheet to get the sum by name.
      For more information about using subtotals in Microsoft Excel, please see:

      Solution 2:
      - Insert a pivot table (select your table and go to Insert > Tables > PivotTable).
      - Choose to insert the PivotTable report onto a new worksheet and click OK.
      - In the PivotTable Fields pane, drag and drop the Names column to the Rows section and the Amount column to the Values section.
      You will get the same result.

      Solution 3:
      - Copy your table to another worksheet
      - Go to Data > Remove duplicates to delete duplicated names.
      - Type the following formula in the Amount column:
      =SUMIF('V3 - source'!A2:A18,A2,'V3 - source'!C2:C18)
      Where 'V3 - source'!A2:A18 is the reference to the Names column of your source data, 'V3 - source'!C2:C18 – the reference to the Amount column.

      You can download the workbook with all 3 solutions using the below link:

  9. Sumen says:

    Hi there, how to I undo the merged cells?

    • Hello Sumen,

      It depends on how the cells were merged. If you have just merged them, you can use the standard Excel Undo feature (Ctrl+Z). Our merging add-ins create a backup copy of your worksheet before merging the data. In other cases, I'm afraid, Undo is not possible.

  10. Hem says:

    Hi Svetlana,

    Hope you are doing good.
    Quick question.

    Lets say I have:

    firstname lastname email

    abc dec
    123 456

    When filling in the data, at times, the email is firstnamelastname@<
    I would like a way that when this is the case, I use a shortcut and firstnamelastname is automatically pasted in the 3rd column.
    Now this has to be a shortcut cause not always, this is the case.

    I hope you understood my query. Is this possible in any manner?

    Kind Regards,

  11. Gene says:

    Is there a way to use the combine rows and have the program actually write out all the columns instead of entering data in a column separated by semicolons or commas? I want the duplicate data actually expanded across columns:
    A B 32 25 Y N
    A C 32 22 N Y
    A B C 32 32 35 22 Y N N Y

    I love the program, it is fantastic but I need to expand the results and not sure how to do that.



  12. mike says:

    I want to merge the rows. but in the content some of the rows are blanks. i tried the concatenate formula like this(=A1&","A2) . Its not working. Tell me how to merge the rows with comma if there are blank rows inbetween the content.

  13. Sayyid says:

    Hello Svetlana,
    Is there any formula to merge multiple empty cells in a column?

    Thank you

  14. Peter says:

    Am not sure what I need is covered? I have two equal length adjacent columns, both containing text. I need to merge the text in column 1 with the text in column 2, into a single column (say 3) with no loss of data.
    For example,
    1 2 3
    A X A,X
    C Z C,Z
    . . .
    . . .

  15. Will says:

    I have a very lengthy spreadsheet, and I need to sort everything into alphabetical order by name in column "A", but each cell in column "A" has specific data in columns "B" thru "G" linked to it. Is there a way I can sort alphabetically without mixing up all the other data. My only thought was to merge each row entirely, and then sort via alphabetical order than un-merge all rows. Is there an easier way?

  16. Shana says:

    I tried INT((ROW(C2)-2/3)) to combine multiple rows in my spreadsheet and I did get a value of 1 for C2, but I cannot find the block id or combine row wizard in Excel 2007.


  17. Jon says:

    I have an online order system that gives me an excel sheet of individual items placed in an order. I want to merge the items and quantity based on each order. Is this possible with your program?


    Order Item Quantity
    100 Plates 500
    100 Shoes 2
    101 Phones 1
    101 Paper 3

    I would like it to look like this (or similar):

    Order Item
    100 Plates - 100, Shoes - 2
    101 Phones - 1, Paper - 3

  18. Sabi says:

    How do you link an excel populated data sheet(A) to another data sheet(B) but manage to keep the information lock to dates when data is combined in data sheet(B).
    Thank You

  19. Tommy says:

    I have an inventory report that shows the cost when we purchased items. It first lists the item number and description, and then on another line it shows the date, qty, cost. Some items have just one purchase date, ie one row, and others have up to 5 rows. The items with multiple rows have a subtotal, the ones with one row do not. I want to get the part number and description on the same line(s) as the purchase date information. How do I do that?

    More detail:
    cell A2 and B2 have the item# and description.
    Cell B3 C3, D3, E3 have the purchase date, item cost, and qty. and extended cost.
    But sometimes there will also be a Cell B4, C4, D4 and E4 with another purchase date, cost and qty. And then this would be followed with a subtotal of the qty and cost in row 5.
    I need to get the Item# and Description to show up on all the lines for that part.


  20. Andrew says:

    I am trying to bring an output over to another cell for a schedule that I am creating my worksheet is broken down into 15 minute intervals and I am trying to get the lunch to cover an hour

    my current formula is as follows

    I can only get the if summary to output lunch to that one 15 minute cell does anyone know how I can add it to multiple cells without changing my data table or how I can merge multiple cells with my formula

    • Alexander says:

      Hello Andrew,

      I am sorry, it is difficult to recommend you something without seeing your data. For us to be able to assist you better, please post a small sample workbook with your data on our forums. Our support team will try to help.

      • Andrew says:

        okay I will do that.. but basically what I would like to do is in my formula tell lunch to consume 4 cells instead of just one by copying over 4 times without creating an endless cycle or tell the the "lunch" to merge multiple cells when during that time slot

  21. Michael says:

    Firstly, great article and very well explained!

    Secondly, I receive client databases in excel files. However, while we want to receive the data like this:

    Column 1 Column 2 Column 3 Column 4
    John Smith 10 Smith St

    Instead we get the data like this:

    Column 1 Column 2 Column 3 Column 4
    John Smith 10 Smith St Nothing Nothing Nothing

    or this:

    Column 1 Column 2 Column 3 Column 4
    John,Smith,10 Smith St, Nothing Nothing Nothing

    Is there a way to write up a script or some way to reformat the data to get the format we want - which is the first example?

  22. Adegoke says:

    Dear All, Am trying to merge multiple rows in a particular column without affecting the contents of other columns.

    I'll appreciate if anyone have an idea on how to go about this

  23. Adegoke says:

    Can anyone help me out on how to repeatedly merge blocks of uneven rows into one row.

    I have very large data with uneven blocks of row.

    I have something like the table below
    Name Reported Date+"" Summary*"" Notes""
    Istifanus 5/4/2015 8:08 2-IT Incident Report - Hardware - Dear Team,
    Jane 5/4/2015 8:17 2-IT Incident Report - Hardware - Good morning,
    Caleb 5/4/2015 8:27 2-IT Incident Report - Hardware - Stevedores

    I want to merge the Notes into one cell against the other contents of the first row.

    Thank you for your help

  24. Isabelle says:

    Bonjour! I hope you will be able to help me! I have an Excel sheet containing column A, listing natural medicinal substances. Then columns B to AA have headers indicating the possible medicinal uses of said substances. There are 26 uses and I put "X"s in the column(s) that correspond to each substance's uses.
    To make a long story short, at first I had one excel spreadsheet for each use of my substances, and I now want to combine all the data in one larger spreadsheet. BUT, since each substance has multiple uses, I end up with, for example, 4 rows for "Tansy" (Ex. A 21, 22, 23, 24), and in each row, an X appears in the column corresponding to one use of the herb (Ex:B:21, C:22, J:23 and Y:24). What I would like to do is to combine the 4 Tansy rows into one (ex. row 21), where I would have B:32, C:21, J:21 and Y:21.
    I hope I managed to be clear, and I thank you very much in advance for any help you could provide in letting me know is your Wizards could solve my problem! IM

    • Hello Isabelle,
      It sounds like you can use Combine Rows Wizard for your task:
      - Select all your data on step 1 and choose to create a backup copy just in case;
      - Select column A with the substances on step 2;
      - Use the top check-box to select all columns with the uses on step 3, and select the options to "Delete duplicate values" and "Skip empty cells". As you have the same "X"s in all cells, it doesn't matter what delimiter you leave in the field.
      - Click Finish
      If you have any difficulties, please send a sample worksheet to, we'll do our best to assist you.

  25. Tirath gurjar Bilaspur says:

    Hi plz help me for moving data to other file without loss

  26. Tirath gurjar Bilaspur says:

    how i can change the data 03 or 4 row to one

  27. ankush says:

    I have 3 rows as AB0U-RFW-010-9012-01 AB0U-RFW-010-9012-02, AB0U-RFW-010-9012-03, AB0U-RFW-010-9012-04

    i want only one entry to show AB0U-RFW-010-9012-01~04 can you help how to getthis

  28. Guru says:

    Pls suggest how do I concatenate for 5000 cells ?

  29. Rishabh says:

    I want to merge 3 cells into 2. Please tell me if it is possible.

    Thank You

  30. Adam says:

    Hi :)
    I've read the part "Repeatedly merge blocks of rows into one row"
    How can you make it work if you don't have the first row in your example?
    So if you don't have this first row:
    | Order no. | Order details | BlockID |


    • Adam says:

      !!!!! And I have only one column which I'd like to be merged this way: Merging 1-18, Merging 19-36, Merging 37-54. (and do not delete the text: "blablabla".

      So I'd like to merge every 18 rows. (and do not delete the text: "blablabla".

      From this:


      It should be like this:

      1. |
      2. |
      3. |
      4. |
      5. |
      6. |
      7. |
      8. |
      9. blablabla |
      10. |
      11. |
      12. |
      13. |
      14. |
      15. |
      16. |
      17. |
      19. |
      20. |
      21. |
      22. |
      23. |
      24. |
      25. |
      26. |
      27. |
      28. blablabla |
      29. |
      30. |
      31. |
      32. |
      33. |
      34. |
      35. |
      37. |
      38. |
      39. |
      40. |
      41. |
      42. |
      43. |
      44. |
      45. |
      46. blablabla |
      47. |
      48. |
      49. |
      50. |
      51. |
      52. |
      53. |
      55. |
      56. |
      57. |

      and so on...

      • Hello Adam,
        Thank you for sending the example to us.
        Since formulas work with values, you can merge every n cells only with the help of VBA. One of our developers wrote the code for you, please follow these steps:
        - Open your Excel file and select the column with the values you'd like to merge (column A in your sample file);
        - Press Alt+F11 on your keyboard;
        - Double-click the sheet name in the list and paste this code:

        Sub merge()
        Dim reg As Range
        Dim start As Range
        Dim startVal As String
        Dim size As Integer

        Set reg = Application.Selection
        size = reg.Cells.Count
        startVal = reg.Cells(size, 1).Value
        Set start = reg.Cells(size, 1)
        For i = size To 1 Step -1
        If startVal <> reg.Cells(i, 1).Value Then
        Application.ActiveSheet.Cells.Range(reg.Cells(i, 1), start).merge
        If i <> 1 Then
        Set start = reg.Cells(i - 1, 1)
        startVal = reg.Cells(i - 1, 1).Value
        End If
        End If
        End Sub

        - Click Run.

        This should do the trick.

  31. Emmanuelle says:

    Hi I am interesting in doing exactly the example given in "Merge matching rows from 2 Excel worksheets without copying / pasting" ( to be brief: Product, Jan sales on 1 sheet and Product, Feb sales on another sheet.
    I download the "merge two tables" function but I do not ended up with Product, Jan sales, Feb sales as described. Step4 is actually different. So I am wondering if you guys have updated this function and more important How to do the example because it is exactly what I am looking for?
    Thanks a lot for any help

    • Hello Emmanuelle,

      Thank you for contacting us.

      You are right, we slightly changed the add-in, though it has the same functionality. The new version lets you choose the columns to update on step 4, and the columns to add on step 5. If you don't want to update any columns and your task is to add "Feb sales" to your main table, do not select anything on step 4 and click Next:
      Step 4 lets you select columns to update

      Once you get to step 5, select Feb Sales:
      Select the columns to add

      Choose the necessary additional options on the last step and click Finish to get the desired result.

  32. Swagatam Bose says:

    We need to combine the data in excel as follows:

    Original Data Expected Data
    Name value Name value Combine value for particular Row value
    aaaaa 1701 aaaaa 1701 1701,1668,1332,1474
    aaaaa 1668 aaaaa 1668 1701,1668,1332,1474
    aaaaa 1332 aaaaa 1332 1701,1668,1332,1474
    aaaaa 1474 aaaaa 1474 1701,1668,1332,1474
    bbbb 1224 bbbb 1224 1224,1758,1512,1812,1382,1234
    bbbb 1758 bbbb 1758 1224,1758,1512,1812,1382,1234
    bbbb 1512 bbbb 1512 1224,1758,1512,1812,1382,1234
    bbbb 1812 bbbb 1812 1224,1758,1512,1812,1382,1234
    bbbb 1382 bbbb 1382 1224,1758,1512,1812,1382,1234
    bbbb 1234 bbbb 1234 1224,1758,1512,1812,1382,1234
    dddd 1641 dddd 1641 1641,1537,1589,1216,1703,1277,1197,1894,1847
    dddd 1537 dddd 1537 1641,1537,1589,1216,1703,1277,1197,1894,1847
    dddd 1589 dddd 1589 1641,1537,1589,1216,1703,1277,1197,1894,1847
    dddd 1216 dddd 1216 1641,1537,1589,1216,1703,1277,1197,1894,1847
    dddd 1703 dddd 1703 1641,1537,1589,1216,1703,1277,1197,1894,1847
    dddd 1277 dddd 1277 1641,1537,1589,1216,1703,1277,1197,1894,1847
    dddd 1197 dddd 1197 1641,1537,1589,1216,1703,1277,1197,1894,1847
    dddd 1894 dddd 1894 1641,1537,1589,1216,1703,1277,1197,1894,1847
    dddd 1847 dddd 1847 1641,1537,1589,1216,1703,1277,1197,1894,1847

  33. Fitz says:

    how can I have Ablebits in my Excel?

  34. Vikram Bansal says:

    If this add-in actually does what it says, I'll most probably purchase it, but I tried the trial version to combine rows and delete duplicates in them but it did not work. I went exactly according to the tutorial above but still it didn't work. After pressing finish, a message comes which says 0 Rows combined, no duplicates found, I don't know what is the problem. Can someone help me with it?

  35. Curt Gibson says:

    I have a list of contacts to merge. Some rows are for the same person, and have different data than the other rows. One may have an email address, the other the phone number. Sometimes both rows have the same data.

    The prior comments are all interesting, but did not have this answer.

    Is there a way to merge the rows and retain the best data? I would think I need a VBA macro which allows a dialog box for me to choose the better of the two data points if there is competing data for a column.

    This may not be a strictly Excel solution, but do you have any advice for this very common scenario?

    Thank you

  36. amir74 says:

    hello dear madam
    i have a question
    i have a column in excel with many name
    and i want to know that how can i marge the same name in column


  37. Charles says:

    I have two rows, 3 columns with Col A Name, Col B expiration date and Col C email address.
    Row 1has the name and email address
    Row 2 has the name and expiration date

    I need to merge, combine, sort; to obtain the name, expiration date and email address into one row of data
    row 1 Fred fred@fred
    row 2 Fred 12/1/2017

    Need row Fred 12/1/2017 fred@fred

  38. Jim says:

    Is there a function in Excel which allows a user simply combine two sheets finding the unique data identifier in both sheets and automatically add the necessary number of additional columns so that all of the data in both sheets would be displayed on the line where the unique identifier is found on each sheet? Seems like there would be a function in Excel to do this easily and automatically without entering any formula.

  39. sree says:

    Hai Irina,
    can u please help me?
    I have alpbhabets in column A and Assigned values on column B.If I merged some albhabetic letters in C.I need to display the corresponding mergerd values in column D.Is this Poosible?If Yes How?
    A B C D
    a 1 ac 13 ..................?
    b 2
    c 3
    Thank you

  40. Jan Swart says:

    Dear Irina,

    I need to merge multiple rows in the same column with one another so that you have all text in one column, and row. Can you please help?

    Kind regards
    Jan Swart

  41. abdul azeez says:

    how to consolidate the ledger with narration detail in excel

  42. precious says:

    is there a short way l could merge rows with even gaps into one row. l am using a sheet with several line items which have different row gaps.

  43. mass says:


    I need help if i have data in multiple row and i want to combine into multiple column, is it possible in excel?

    Column_A Column_B
    AAAA A1
    AAAA A2
    AAAA A3

    The result that i want is:
    Column_A Column_B Column_C Column_D
    AAAA A1 A2 A3

    is it possible?


    Dear Sir/Mam, How to count the number of rows in merged cells by using formula and not by VBA. For Example, If range A1:A10 is merged then how to get the number of merged rows (i.e. 10) in this range by using only the formula.

  45. bilal says:

    this article is there any index so that i can search through the blog??
    p.s is there a blog on simple formatting and then formatting in more presentable ways

  46. Alexander Kountourides says:

    Hi there my question is slightly different.

    I have numbers lines within a cell, e.g.:

    Example A

    Example B

    Example C

    Example D

    However, I want them to appear as below:

    Example A
    Example B
    Example C
    Example D

    So I need to remove the blank lines between the writing but keep the writing on separate lines.

    Is there a shortcut for this?

  47. Catherine says:

    I have a lot of contact information -- the same person is listed in six rows: one of the rows has a phone number but no email, another has an email but no phone. How do I remove the duplicates and keep the phone number and email address in the final unique entry?

Post a comment

Unfortunately, due to the volume of comments received we cannot guarantee that we will be able to give you a timely response. When posting a question, please be very clear and concise. We thank you for understanding!
Ultimate Suite 2018.5 for Excel
60+ professional tools for Excel 2016-2007 to do your daily work
Incredible product, even better tech support…AbleBits totally delivers!
Deborah Bryant
Anyone who works with Excel is sure to find their work made easier
Jackie Lee
The best spent money on software I've ever spent!
Patrick Raugh
Ablebits is a fantastic product - easy to use and so efficient.
Debra Celmer
Excel is at its best now
Annie C.
I don't know how to thank you enough for your Excel add-ins
Jennifer Morningstar
Anybody who experiences it, is bound to love it!
Kumar Nepa
AbleBits suite has really helped me when I was in a crunch!
Nelda Fink
I have enjoyed every bit of it and time am using it
Christian Onyekachi Nwosu
It's the best $100 we've ever spent!
Mike Cavanagh
I love the program, and I can't imagine using Excel without it!
Robert Madsen
One word… WOW!
Dave Brown
Love the products!
David Johnston
It is like having an expert at my shoulder helping me…
Linda Shakespeare
Your software really helps make my job easier
Jeannie C.
Thanks for a terrific product that is worth every single cent!
Dianne Young
I love your product
Brad Gibson
Sheila Blanchard