+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Automatic Sorting, Duplicate Removal

  1. #1
    Registered User
    Join Date
    10-07-2009
    Location
    Portland, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Automatic Sorting, Duplicate Removal

    I am looking for a solution to a sorting problem with a large amount of duplication. The data is coming from an SQL database, and the information of concern is the Location ID, Updated Date, Ticket Number (Unique), and the Location Count (a count of how many times the location appears in the table).

    This data comes in an export and I am looking for a way to sort it automatically in a seperate sheet so that the original raw export is still viewable. I am used to sorting a lot of data like this by formula, the problem I am running into is the duplicate removal.

    I need to remove all duplicate entries, keeping only the most recent (by updated date), and display the ticket number and count besides the location is. The count has to be the original value of how many times the location ID showed up, since we are removing the other entries. Finally, any entries with less than 3 counts needs to be removed.

    I have attached a book with two sheets, one sheet for a raw export example, a second with what it should look like. For size, I skipped the last step (removing less than 3 counts) but that part is simple enough. Any help is much appreciated =)
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Automatic Sorting, Duplicate Removal

    You asked a question along similar lines last week re: Pivot Table creation (now locked)... I wonder then if that remains your aim and this is question is a means to that end ? If so attached is an approach that should allow you to generate your PT.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-07-2009
    Location
    Portland, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Automatic Sorting, Duplicate Removal

    It was a similar goal, but you have actually given me a solution to both issues. Thank you!

  4. #4
    Registered User
    Join Date
    10-07-2009
    Location
    Portland, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Automatic Sorting, Duplicate Removal

    Actually, I did have one more problem. The intent is to view the locations by count, but only those with more than 3 for the count (if they have less than 3, we don't want them on the PT).

    I'm not very experienced with PT, but I can't find a way to make it filter the PT by the count without removing that column from the table itself.

  5. #5
    Registered User
    Join Date
    10-07-2009
    Location
    Portland, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Automatic Sorting, Duplicate Removal

    Nevermind, I figured it out. Still, thank you for the help =)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1