How to combine duplicate rows and sum the values in Excel?
reposted from: https://www.extendoffice.com/documents/excel/1268-excel-combine-duplicate-rows-and-sum.html
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):
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:
3. In the Consolidate dialog box:
- (1.) Select Sum from Function drop down list;
- (2.) Click 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:
4. After finishing the settings, click OK, and the duplicates are combined and summed. See screenshot:
Note: If the range do not have the header row, you need uncheck Top row from the Use labels in option.
reposted from: https://www.extendoffice.com/documents/excel/1268-excel-combine-duplicate-rows-and-sum.html
No comments:
Post a Comment