+ Reply to Thread
Results 1 to 3 of 3

Deleting duplicates to only get the highest value

  1. #1
    Registered User
    Join Date
    07-06-2016
    Location
    los angeles
    MS-Off Ver
    xp
    Posts
    1

    Deleting duplicates to only get the highest value

    Hi,

    I'm new at excel so macros and formulas are all new to me. I have 2,888 codes with different rates, in which some codes are duplicates. I need to have a single code with the highest value. Colum A has the codes and colum D has the rates. Please help I prefer formulas but if the macro is easier I don't mind using it.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Deleting duplicates to only get the highest value

    Hi and welcome
    Try this formula to get the unique lists of codes. I put it in cell F2 and dragged down change the 9 in the formula to the last cell in A that has code values in it

    Please Login or Register  to view this content.
    and then in G2 pout this array formula (you need to press enter and control and shift together then drag down)

    Please Login or Register  to view this content.
    I've attached a dummy sheet so yo ucan see how it woerks
    Attached Files Attached Files
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Contributor
    Join Date
    05-06-2015
    Location
    Sri Lanka
    MS-Off Ver
    2016, 2007
    Posts
    135

    Re: Deleting duplicates to only get the highest value

    I have attached a possible solution.

    This is what I did.

    I made a table with 10 Codes (you have more) and that 10 codes are repeating many times in the first column.
    in Second column (Rate) each code is given different rates.

    I made this is a TABLE. it is easy to dealt with.

    Then I inserted a pivot table. I drag code (from field list) to rows, and rates to values.
    from value field settings I chose max to display. Capture.PNG

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 06-09-2016, 12:51 PM
  2. [SOLVED] Max formula to return total of highest, second highest and third highest value
    By JonWilf in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-06-2016, 08:20 AM
  3. [SOLVED] Formula for keeping duplicate with highest value and deleting the others
    By Neico in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2013, 09:19 PM
  4. [SOLVED] Delete dubs Sheet 2 based on value in 2 Sheets
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-03-2013, 05:17 PM
  5. Formula finding highest number out of five and deleting that row
    By taichi56 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-12-2012, 10:35 AM
  6. VBA code to find highest and 2nd highest number based in criteria
    By Michael007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2011, 08:38 AM
  7. Replies: 3
    Last Post: 08-10-2006, 11:40 PM

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