+ Reply to Thread
Results 1 to 3 of 3

using large function with duplicates

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2010
    Posts
    62

    using large function with duplicates

    Hello...

    apple pear peach grape cherry
    1 0 1 0 0

    Crappy example, I know. I am trying to return the "fruit name" of the highest 3 values over zero in row 1 by using the Large function and index/match in three seperate cells. My problem is when there are duplicates. I need to return "apple" in f1, and "peach" in f2 and nothing in f3 if the rest are zero. I there is a third number greater than zero, I need that returned, or if there is only 1 greater that zero, then that name, with f2 and f3 empty. Here is my attempt:
    =IF(LARGE(A2:E2,1)=0,"",INDEX($R$6:$Y$6,MATCH(LARGE(A2:E2,1),A2:E2,0))) IN F1
    =IF(LARGE(A2:E2,2)=0,"",INDEX($R$6:$Y$6,MATCH(LARGE(A2:E2,2),A2:E2,0))) IN F3
    =IF(LARGE(A2:E2,3)=0,"",INDEX($R$6:$Y$6,MATCH(LARGE(A2:E2,3),A2:E2,0))) IN F3
    But of course..this doesnt work with duplicates.

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: using large function with duplicates

    I think this should help you.
    Attached Files Attached Files
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: using large function with duplicates

    Here's an alternative using a "helper" column taken from an old ddl post which i have stored.

    Using the setup in the previous attachment, insert a new column A to the left of your names and use this formula in A1 copied down to give a unique rank

    =RANK(C1,C$1:C$16)+COUNTIF(C$1:C1,C1)-1

    then in G1 copied down to list the names in order

    =VLOOKUP(ROWS(G$1:G1),A$1:B$16,2,0)

+ 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