+ Reply to Thread
Results 1 to 8 of 8

Extract Two Highest Values From a Range, Skipping Blank Cells

  1. #1
    Registered User
    Join Date
    03-16-2023
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 16.83 for Mac
    Posts
    3

    Extract Two Highest Values From a Range, Skipping Blank Cells

    I have a golf handicap sheet where I track scores for the league. I keep scores in rows, by dates in the columns. When a player misses a week I skip that cell. In order to calculate the handicap we use the last ten scores, but remove the 2 highest and average the remaining eight. I'd like to to list the highest in one column and the second highest score in the next column. Then I can subtract those two out and average the remaining. I have found the following array formula to find the highest score using Max, but can't figure out how to find the second highest score. In the attached sheet, the second highest value of the last ten scores would appear in column DF.

    Here is the formula I'm using to find the Max score out of the last ten scores in the range from BD5 through DA5, while skipping the blank cells.

    {=MAX(IF(COLUMN(BD5:DA5)>=LARGE(IF(ISNUMBER(BD5:DA5), COLUMN(BD5:DA5)),MIN(10,COUNT(BD5:DA5))), IF(ISNUMBER(BD5:DA5),BD5:DA5)))}

    Thanks.
    Attached Files Attached Files
    Last edited by jyurek; 04-14-2024 at 04:19 PM. Reason: Solved

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Extract Two Highest Values From a Range, Skipping Blank Cells

    Try this one:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Also an array formula but I did not show the {braces}.

    I did not try to break down your formula to see if there is a more economical way to do this. There might be.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Extract Two Highest Values From a Range, Skipping Blank Cells

    Administrative Note:

    Welcome to the forum.

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Extract Two Highest Values From a Range, Skipping Blank Cells

    If you happen to have Excel 365, then then this all-in-one formula will sift the last 10 scores, remove the top two and average the remaining eight:

    =AVERAGE(TAKE(SORT(TAKE(TRANSPOSE(FILTER(BC5:DC5,BC5:DC5<>"")),-10),,1),8))
    Attached Files Attached Files
    Last edited by AliGW; 04-14-2024 at 01:35 AM. Reason: Workbook added.

  5. #5
    Registered User
    Join Date
    03-16-2023
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 16.83 for Mac
    Posts
    3

    Re: Extract Two Highest Values From a Range, Skipping Blank Cells

    Added the braces and I believe that hit the mark; seems to be working. Thank you very much, you've made my much easier.

  6. #6
    Registered User
    Join Date
    03-16-2023
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 16.83 for Mac
    Posts
    3

    Re: Extract Two Highest Values From a Range, Skipping Blank Cells

    This one works as well, and takes it one step further. Thank you very much. I'm very grateful for folks like you who would jump in to this for non real reason than just to help someone.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Extract Two Highest Values From a Range, Skipping Blank Cells

    Please see post #3

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Extract Two Highest Values From a Range, Skipping Blank Cells

    Glad to have helped.

    Please update your forum profile.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. [SOLVED] Extract a correlated list while skipping blank rows (cells)
    By Luisftv in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2022, 01:19 AM
  2. [SOLVED] Extract (only non blank cell + highest value) data from multiple tabs
    By alitob in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2019, 04:52 PM
  3. Replies: 5
    Last Post: 03-14-2019, 05:09 PM
  4. Average of 5 highest values in the last 6 non blank cells
    By Candle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2018, 01:14 PM
  5. Skipping blank cells when copying values to another tab
    By Vitalite in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-30-2017, 06:13 AM
  6. [SOLVED] Lookup values skipping blank cells
    By mark_luke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2017, 11:55 PM
  7. Replies: 0
    Last Post: 03-05-2013, 09:22 AM

Tags for this Thread

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