Xtreme Pivot Tables
February 24, 2016
I am responsible for running a number of reports out of an AS-400 type system that houses our customer data. It is NOT user friendly and I have to run 3 to 4 different reports - export them into Excel and then combine the reports so that the data that is needed is on a single spreadsheet.
I believe there is a much quicker solution than what I am currently doing, but I'm not sure how to do it. I need to 1st identify duplicate account numbers (this indicates multiple services). I use the conditional formatting button and highlight duplicates. I then go back over the highlighted cells and "fill them" with a color so that when I ask for duplicates to be deleted I still know which accounts have multiple services.
After I fill the cells - and there can be as many as 50k rows; but before I click on remove duplicates, I create a copy of the spreadsheet & create a pivot table to get the actual account total. I then go to the original spreadsheet, where I highlighted the cells manually, and then click the icon to delete all duplicates.
Before I started to fill the cells manually, when I would click the icon to delete all duplicates my conditional formatting disappears, as there are no more duplicates.
In one spreadsheet I need to show that the accounts has duplicates, (without having to actually keep them on the final spreadsheet), along with the actual account total (which I put on the final spreadsheet using VLOOKUP and the pivot table.
Any and all suggestions are welcome...
June 25, 2016
Excel for Decision Making
January 29, 2015
It looks like you are completing multiple tasks to get a final result, correct? And to understand completely, you are keeping two sheets, one with the complete dataset (duplicates and all) and other with the duplicates already eliminated. Is this correct? Not sure how you need to present your results but maybe you can eliminate some steps by doing the following:
In your sheet where you need to eliminate the duplicates, I don't think you need any conditional formatting. If you press the "Remove Duplicates" icon (assuming the picture below is what you are referring to as the "Remove Duplicates Icon".
You then can compare the results with your complete dataset. If you need to show how many duplicates there are (or need to show which account numbers came up duplicate), you can simply run a pivot table and add a count values field. Sort it from largest to smallest and anything with greater than 1 will be on the top of your results. You have your list.
Does that help?
October 25, 2013
Hi Jennifer Silva,
If you wish to highlight the account numbers that are duplicate, I have used this formula successfully.
Add this to a helper column, =MATCH(C2,$C$1:$C$5,0)=ROW() It evaluates to True for the first occurrence of an item and False for subsequent occurrences.
August 7, 2015
June 27, 2016
I had a similar situation with a huge number of lines and columns of irrelevant data. I would spent about 40 minutes each time I had to knock off a report because (of course) the data kept changing.
I used to sort all the data and then extract it by cutting and pasting into another report. It was a huge time consumer.
I decided one day that there had to be a way I could do it using macros. It took me quite a while to get them to do exactly what I wanted but after a while I had something that reduced the process to 10 minutes. Because there were so many lines of macros I knew I had steps that were unnecessary in the code.
After a few months of using it I decided to rewrite my code. In the time I'd been watching it process stuff I also realized I could do things faster by using different approaches.
My rewrite could process the same information in (believe it or not!) 10 seconds.
I would urge you to consider using macros to do what you want. Mine is probably a programmers 'dogs breakfast' but it works. I no longer have to worry if I have enough time to knock off the report I'm after.
Another thing I would suggest is that elimination of data is always a bit dangerous - try extracting what you want into a separate sheet and processing it there.
Most Users Ever Online: 57
Currently Online: Max Neumann
Currently Browsing this Page:
Frans Visser: 210
mey tithveasna: 71
Anders Sehlstedt: 47
Guest Posters: 1
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea
Moderators: Genevieve Tupas