Sunday, January 29, 2017

Combine duplicate rows and sum using values in Microsoft Excel

How to combine duplicate rows and sum the values in Excel?



doc-combine-sum1-2doc-combine-sum2
In Excel,you may always meet this problem, when you have a range of data which contains some duplicate entries, and now you want to combine the duplicate data and sum the corresponding values in another column, as following screenshots shown. How could you solve this problem?
Advanced Combine Rows:(Combine duplicate rows and sum / average corresponding values):

  • 1. Specify the key column that you want to combine other column based on;
  • 2. Choose one calculation for your combined data.

  • doc-sum-columns-one-criteria-7

    Combine duplicate rows and sum the values with Consolidate function


    The Consolidate is a useful tool for us to consolidate multiple worksheets or rows in Excel, so with this function, we can also summarize multiple rows based on the duplicates. Please do with the following steps:
    1. Click a cell where you want to locate the result in your current worksheet.
    2. Go to click Data > Consolidate, see screenshot:
    doc-combine-sum3
    3. In the Consolidate dialog box:
    • (1.) Select Sum from Function drop down list;
    • (2.) Click doc-combine-sum5 button to select the range that you want to consolidate, and then click Add button to add the reference to All references list box;
    • (3.) Check Top row and Left column from Use labels in option. See screenshot:
    doc-combine-sum4
    4. After finishing the settings, click OK, and the duplicates are combined and summed. See screenshot:
    doc-combine-sum6
    Note: If the range do not have the header row, you need uncheck Top row from the Use labels in option.

    No comments:

    Post a Comment