+ Reply to Thread
Results 1 to 2 of 2

Second largest value with Duplicates

  1. #1
    Registered User
    Join Date
    07-08-2008
    Location
    ny
    Posts
    14

    Second largest value with Duplicates

    Hi,

    I am having an issue trying to come up with a function to look for the second largest unique value in a column. I know I can use the large function to get the second largest value, but the problem is that there are duplicate values in the column.

    For example, I have a range of cells containing, 12,12,12,12,11,10,9,1,0.

    The large(a2:a9,2) function will return 12, but I want a return of 11.

    Thanks in advance.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Do you only want the 2nd largest or will you need 3rd largest, 4th largest etc?

    For the 2nd largest either use this array formula

    =MAX(IF(A2:A9<>MAX(A2:A9),A2:A9))

    confirmed with CTRL+SHIFT+ENTER

    or a non-array formula

    =LARGE(A2:A9,COUNTIF(A2:A9,MAX(A2:A9))+1)

+ 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