+ Reply to Thread
Results 1 to 9 of 9

Counting half or 50% of a fluctuating range of cells

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    Flemington, New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    10

    Counting half or 50% of a fluctuating range of cells

    So, I'm trying to make a sheet that will calculate handicaps.

    I need no more than 20 cells across per person. But I need the formula to calculate the average of the lowest 50%.

    10 numbers in a range, I need the formula to grab the lowest 5 values then divide them by the cell count.
    Example: Grids.png


    But as numbers are added in the row that may be lower I need it to keep calculating.

    Example: 12 numbers will then take the lowest 6 values and find the average.
    17 numbers, will take the lowest 8 values.

    I think it's going to required 2 pages as a reference. In my mind I have a Find lowest n value in a range, but I need an IF formula to somehow choose how many cells to add together.
    Like if there are 10 cells, add cells 1 to 5... I don't even know it that's possible..

    any help would be great!
    Last edited by AliGW; 11-18-2019 at 09:52 AM. Reason: Irrelevant section of title removed.

  2. #2
    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
    81,224

    Re: Counting half or 50% of a fluctuating range of cells

    There are instructions in the banner up top about how to attach your workbook.
    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.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,450

    Re: Counting half or 50% of a fluctuating range of cells

    And while you are at it, are you still using XL2003? Perhaps update your profile as answers are tailored to the XL version

  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
    81,224

    Re: Counting half or 50% of a fluctuating range of cells

    Try this:

    =SUM(SMALL(A1:J1,{1,2,3,4,5}))/5

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Counting half or 50% of a fluctuating range of cells

    Try: =SUM(SMALL(A1:H1,COLUMN(INDIRECT("1:"&INT(COUNTIF(A1:H1,"<>")/2)-1))))/COUNTIF(A1:H1,"<>")
    Click the * to say thanks.

  6. #6
    Registered User
    Join Date
    04-24-2014
    Location
    Flemington, New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Counting half or 50% of a fluctuating range of cells

    Sorry, I didn't think to attach the actual file I'm working on. See attached. the first 20 rows have all the available cell count options that I'm testing. But any row at all might have 1 to 20 cells values. So I'm trying to make a formula that will adjust as the cells are filled in each week..
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: Counting half or 50% of a fluctuating range of cells

    This proposal employs 11 helper columns which may be moved and/or hidden for aesthetic purposes.
    The first helper column (X) gets a count of the number of values to be averaged using: =ROUND(COUNT(C3:V3)/2,0)
    The next ten helper columns (Y:AH) get the lowest n values using: =IF(COLUMNS($A$1:A$1)>$X3,"",SMALL($C3:$V3,COLUMNS($A$1:A$1)))
    The Handicap column is populated using: =AVERAGE(Y3:AH3)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Counting half or 50% of a fluctuating range of cells

    The attached interprets similarly to Ali's suggestion.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Counting half or 50% of a fluctuating range of cells

    Or perhaps this. It's returns are rounded up.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Iteratively cut a column in half until the number of cells in each half is less than 10...
    By LineOfBestFit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2015, 12:31 AM
  2. The formula is not adjusting to the fluctuating range automatically
    By geoffrey22 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2013, 10:05 AM
  3. [SOLVED] how to add fluctuating cells from different sheets
    By guy1985 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-20-2013, 06:22 PM
  4. Naming a fluctuating range
    By MisterPan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2009, 01:43 PM
  5. Replies: 3
    Last Post: 05-26-2006, 02:45 PM
  6. Replies: 0
    Last Post: 05-26-2006, 02:05 PM
  7. [SOLVED] complex fomula: counting cells that are blank
    By shmurphing in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2005, 06:06 PM

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