+ Reply to Thread
Results 1 to 12 of 12

Average and array formula not using duplicate values

  1. #1
    Registered User
    Join Date
    09-19-2022
    Location
    scotland
    MS-Off Ver
    Microsoft 365 V2007
    Posts
    3

    Average and array formula not using duplicate values

    Hello everyone,

    This topic has come up a few times on here, and I have found those answers very useful in creating a golf handicap tracking worksheet.

    I am one formula away from perfecting this, due to the help I have found on here and other sites.

    The formula I have used to calculate the handicap uses an array to get the lowest 8 scores from the last 20 in a list which can be added to with the last 20 moving down the list as one new score is added. It then averages the 8 lowest from that array.

    The issue I have is that it ignores duplicate values and uses the 8 lowest unique values.

    Capture.JPG

    The formula should include all of the yellow numbers in the image as well as the two orange numbers, but as those are identical it ignores one and goes to the red number, the next highest, which throws out the final number in J25

    I have hit the limit of my expertise here, and would greatly appreciate it if someone with more knowledge than me could take a look at this and let me know if what i am asking is even possible and how to to it....

    Golf Handicap.xlsx

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,719

    Re: Average and array formula not using duplicate values

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-19-2022
    Location
    scotland
    MS-Off Ver
    Microsoft 365 V2007
    Posts
    3

    Re: Average and array formula not using duplicate values

    Thanks for the suggestion Fluff13.

    That throws me a #NAME? error.

    I've never used the TAKE function before (never even heard of it tbh), so don't know what this is looking at to diagnose the error.

    Probably why my formula looked so complicated compared with yours if the TAKE function works!

    Any ideas?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,719

    Re: Average and array formula not using duplicate values

    Ok, you may not have the TAKE function, especially if your on the semi annual channel.
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average and array formula not using duplicate values

    Hi.

    Is your forum profile showing the Excel version that you need this request to work with?

    The best solutions often rely on knowing WHICH version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. 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 version is for Mac, please also state this.

    The three most recent versions of Excel 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 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Cheers,

    Glenn.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: Average and array formula not using duplicate values

    A little bit different option:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average and array formula not using duplicate values

    or:

    =LET(r,A2:A32,d,G2:G32,mr,MAX(r),F,FILTER(FILTER(d,MIN(20,mr)),r>mr-MIN(mr,8)),AVERAGE(F))
    Attached Files Attached Files

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

    Re: Average and array formula not using duplicate values

    Two different other option without take:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    OR
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-19-2022
    Location
    scotland
    MS-Off Ver
    Microsoft 365 V2007
    Posts
    3

    Re: Average and array formula not using duplicate values

    Thank you everyone for the input.

    I guess my organization has an older version which stopped some of the solutions from working.... I have updated in my profile, thanks for the advise Glenn

    The two solutions from HansDouwe both worked a treat.

    Cannot thank you guys enough!!!

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

    Re: Average and array formula not using duplicate values

    I'm glad it works. You are welcome, thx for the feedback and rep .

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Average and array formula not using duplicate values

    And the other suggestions???

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

    Re: Average and array formula not using duplicate values

    @Glenn, your solution in post #7 (15.5....) differs from manual calculation: (=AVERAGE(G13:G14,G16:G17,G20,G26,G28:G29) = 13.4)

+ 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. Unique values from array then average adjacent column values
    By tomisthereason in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-24-2021, 09:12 AM
  2. [SOLVED] Sum duplicate values returned by array formula INDEX(MATCH(LARGE(IF)))
    By TFiske in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 12-02-2017, 07:18 PM
  3. Replies: 4
    Last Post: 07-25-2017, 12:26 PM
  4. [SOLVED] Average most recent 3 values excluding dashes - array formula help required
    By cricket_stoner in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-04-2017, 08:00 AM
  5. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  6. Replies: 13
    Last Post: 10-08-2014, 08:35 AM
  7. [SOLVED] Array formula for TOP 10 - how to deal with duplicate values
    By Ricardo Mass in forum Excel General
    Replies: 5
    Last Post: 02-21-2014, 11:19 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