+ Reply to Thread
Results 1 to 6 of 6

Formula to find the highest & second highest value in a range of cells

Hybrid View

  1. #1
    Registered User
    Join Date
    08-03-2023
    Location
    Melbourne Australia
    MS-Off Ver
    Excel for Mac
    Posts
    2

    Formula to find the highest & second highest value in a range of cells

    G'day Everyone,

    I need help to find a formula that will give me the highest & second highest value in a range of cells.

    ie. Say the values are 50, 50, 40, 30, 10. I need a formula that will give me 50, and 40.

    I have used the LARGE formula to find the highest, and the second highest number. ie =LARGE(range,1) & =LARGE(range,2)

    This works fine if there are two distinct values as highest and second highest value. However when there are two values of 50 in the list of values, the formulas return 50 & 50.

    Does anyone know a way to achieve this?

    Cheers,

    Jezza

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,028

    Re: Formula to find the highest & second highest value in a range of cells

    If you data in A1:A10, try this

    =LARGE(A1:A10,COUNTIF(A1:A10,MAX(A1:A10))+1)

  3. #3
    Registered User
    Join Date
    08-03-2023
    Location
    Melbourne Australia
    MS-Off Ver
    Excel for Mac
    Posts
    2

    Re: Formula to find the highest & second highest value in a range of cells

    Thanks very much, windknife! That seems to work.

    Cheers

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Formula to find the highest & second highest value in a range of cells

    If your data is in A1:A10 and you have Excel 365, please try this:

    Formula: copy to clipboard
    =TAKE(UNIQUE(SORT(A1:A10,,-1)),2)

  5. #5
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,299

    Re: Formula to find the highest & second highest value in a range of cells

    Formula
    Formula: copy to clipboard
    =IFERROR(AGGREGATE(14;6;A$2:A$3500/(COUNTIF(D$1:D1;A$2:A$3500)=0);1);"")
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,028

    Re: Formula to find the highest & second highest value in a range of cells

    You are welcome.
    --------------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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: 6
    Last Post: 01-09-2019, 05:33 AM
  2. Replies: 3
    Last Post: 06-09-2016, 12:51 PM
  3. [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
  4. [SOLVED] MAX IF formula to find various highest values between a range of dates
    By Smudge.Smith in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-23-2013, 04:04 AM
  5. [SOLVED] Formula to select the highest number, and the lowest and find out the range
    By Nero_slk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-14-2013, 07:56 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: 2
    Last Post: 09-19-2008, 10:22 AM

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