+ Reply to Thread
Results 1 to 2 of 2

Filter unique records only: Want the last records, not the first

  1. #1
    Registered User
    Join Date
    04-11-2008
    Location
    Norway
    Posts
    22

    Filter unique records only: Want the last records, not the first

    Hello,
    I have a column of numbers, where some are duplicated.
    The 'filter unique records' feature gives us the first entry of a duplicate.
    Is there any way to make Excel choose the last duplicate instead?
    Thanks,
    David

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Filter unique records only: Want the last records, not the first

    insert 2 new columns(or add at end)
    assuming your numbers are in col A with a header
    in your first new column say B put in row 2 (b2)
    =COUNTIF($A$2:A2,A2) and drag down to end of list
    now in next column say C in C2 put
    =B2=MAX(($A$2:$A$1000=A2)*($B$2:$B$1000)) (change range to match length of data) and confirm with ctrl+shift+enter
    and drag down
    tyouou can now filter on TRUE

    BUT.........
    now ive said all that try instead
    in a spare column in row 2 enter 1
    in row 2 enter 3
    select both
    and drag down to end of your numbers
    so each row is numbered 1,2,3,4...........
    now select sheet and sort descending on that column
    now list will be upside down
    filter on unique will now return the last entry, job done!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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