+ Reply to Thread
Results 1 to 3 of 3

Large Table with Duplicate Values - Minimum Value Needed

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    1

    Large Table with Duplicate Values - Minimum Value Needed

    I've got a large excel sheet with duplicate values in Column A and dollar values in column B.

    I need to delete the duplicate values in column A, so that only the minimum dollar value is left in Column B.

    Example:


    A B

    1 5
    1 6
    2 6
    2 7
    3 1
    3 6
    3 5
    4 2
    4 3

    The answers should read:

    1 - 5
    2 - 6
    3 - 1
    4 - 2

    Please help!

    Thanks

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Large Table with Duplicate Values - Minimum Value Needed

    try this

    sort by col A (1st sort key) and col B (2nd sort key) both ascending

    in cell C2, type the formula

    Please Login or Register  to view this content.
    and copy down. This will identify duplicates in col A, excluding the first value

    copy and paste special the values in col C so the formulas are converted to values

    sort columns A:C on column C, and delete all rows for which the value in column C is TRUE

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Large Table with Duplicate Values - Minimum Value Needed

    Hi

    Assuming your example data is in range A1:B9
    C1: =IF(COUNTIF($A$1:A1,A1)=1,ROW(),"") Copy down to C9
    E1: =IF(ROW()>COUNT(C:C),"",INDEX(A:A,SMALL(C:C,ROW()))) Copy down to E9
    F1: =IF(E1="","",MIN(IF($A$1:$A$9=E1,$B$1:$B$9,""))) This is array entered (ctrl, shift, enter). Copy down to F9

    HTH

    rylo

+ 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