Summarize Duplicates in Range and Keep All Column Headings

2Ruff4U

New Member
Joined
May 27, 2004
Messages
31
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a range of data that has, among other things, sales in a transaction and an Account ID. I am trying to keep this list with the same column headings but if there are duplicates in the Account ID (because that account had more than one transaction) I want to keep the column headings, just keep the one Account ID with the sum total of all the instances of that Account ID and remove the duplicates. The result will be a list with the same column headings, unique Account IDs and the total for all transactions if there is more than one for that Account ID. I tried Subtotals but I lose the column heading and a Pivot Table doesn't seem to keep them either.
Thank you
 

Attachments

  • Sheet Image.jpg
    Sheet Image.jpg
    54 KB · Views: 29
With Power Query you can summarize you data as you wish very quickly. If you repost your data using XL2BB, then I will provide you with a solution. Cannot manipulate data in a picture. Since you are running 365, PQ is an integral part of your version and does not require any addins.
Thank you for responding. I will investigate Power Query, didn't know about it and sounds promising. For now I had to move on from this issue but I greatly appreciate your suggestion.
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Appreciated the reply, I did find the cause when I researched the error 6 and saw, as you asked, that it could be in the number length. I found a few data types formatted as "custom", with the ### in the field. Corrected that and all was well!
Happy you have figured it out 👍
 
Upvote 0
If you are truly interested in Power Query, then I suggest you get this book found on the Mr Bookstore
 
Upvote 1

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top