+ Reply to Thread
Results 1 to 5 of 5

Find and mark the higher value in series of duplicate entries

  1. #1
    Registered User
    Join Date
    03-19-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    37

    Find and mark the higher value in series of duplicate entries

    Hi, I have been trying for ages to figure out a better way to do this. Any help would be greatly appreciated.

    I have a approx. 70 excel sheets with thousands of entries. Within a single sheet there are some duplicate entries (based on an account number). I find the duplicate entries by using the excel 2007 conditional formating and then sort by color to only show the duplicate entries. There are often hundreds of accounts that are duplicates.

    Sometimes there are more than 2 identical account duplicates (could be 3,4 or more).

    In each entry there is a number representing the rating of said account. These numbers differ within the duplicates.

    Ie.
    A B C D
    Acct. # Name Rating W/L
    1 12a123 DOG 2
    2 12a123 DOG 1
    3 12a123 DOG 4
    4 23b234 CAT
    5 23b234 CAT 2
    6 34c345 RAT 7
    7 34c345 RAT 7
    8 34c345 RAT 7

    I am trying to find a formula that will choose a "winner" and enter a "W" based on the highest rating within the duplicate entries and then ideally assign an "L" to the loser duplicate account(s).
    Sometimes there is no rating, other times the rating could be the same in which case any account (does not matter) can be assigned a "W" and the others an "L"

    Thanks in advance. I am grateful for forums likes this and the experts who give their time to help "us" out.

    I attached an example worksheet.
    Attached Files Attached Files
    Last edited by wace; 04-07-2009 at 08:32 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Find and mark the higher value in series of duplicate entries

    Hi,

    Try this

    Please Login or Register  to view this content.
    which is confirmed with CTRL+SHIFT+ENTER not just ENTER

    adjust range b2:b9 to suit and reconfirm with CSE keys, then copy down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-19-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    37

    Re: Find and mark the higher value in series of duplicate entries

    WOW! You nailed it. I thought at first it wasn't working, but then I realized I had messed up the range.


    Thanks so much! You've saved the day!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Find and mark the higher value in series of duplicate entries

    You are welcome

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  5. #5
    Registered User
    Join Date
    04-29-2014
    Location
    Delhi, India
    MS-Off Ver
    Excel 2013
    Posts
    1

    Re: Find and mark the higher value in series of duplicate entries

    I have an excel in which I also need to assign an unique numerical id more than 30000 if they are duplicate. Like in the following set Sadar Bazaar has different cityid but different location id which means I need to assign unique ids to every instance except one.
    city_id location_id
    125 8 Bahadur Shah Zafar Marg
    125 9 Bara Hindu Rao
    125 14 Chandni Chowk
    125 17 Connaught Place
    125 18 DaryaGanj
    125 29 Janpath
    387 29 Janpath
    125 33 Karol Bagh
    125 34 Kasturba Gandhi Marg
    125 48 Pusa Road
    551 53 Sadar Bazar
    570 53 Sadar Bazar
    348 53 Sadar Bazar

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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