+ Reply to Thread
Results 1 to 5 of 5

Average of each 25% of column

  1. #1
    Registered User
    Join Date
    06-18-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    12

    Average of each 25% of column

    Bumping an old topic, cause I have the some problem.
    How do I calculate the second 25%, the third 25% and last 25% of an range in a column?
    With some trial and error I came to this:

    second 25%:
    AVERAGE(OFFSET(A1,INT(COUNT(A1:A10000)/4),0,INT(COUNT(A1:A10000)/4),1))

    third 25%:
    AVERAGE(OFFSET(A1,INT(COUNT(A1:A10000)/2),0,INT(COUNT(A1:A10000)/4),1))

    last 25%:
    dont have yet

    Is any of this good?
    Can someone plz show me the correct formulas?
    Perhaps also the formulas for first, second, third, fourth and last 20% of an range?
    Last edited by rakker; 06-18-2011 at 10:03 AM. Reason: typo

  2. #2
    Registered User
    Join Date
    06-18-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: calculating average from a percentage of cells in a column

    BUMP

    anyone?

  3. #3
    Registered User
    Join Date
    06-18-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: calculating average from a percentage of cells in a column

    Hereby a workbook with an example.
    Can someone show me the formula needed to enter in the ??? cell to give me the average of the last 25% of the range?
    Attached Files Attached Files

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,698

    Re: Average of each 25% of column

    Hello rakker, please don't hijack threads, as per forum rule 2 - start your own thread and link to any other thread you fell is relevant, thanks

    In your example I'd question the results for the first 3 formulas - what if C20 is blank? Your formulas will give you the average of C1:C4, C5:C8 and C10:C13 respectively, C9 is missed out.

    In that scenario presumably 3 of the average should average 5 cells and one of then 4 cells, how do you expect that to be split up?

    I assume there is a variable number of values, will there be any gaps?
    Audere est facere

  5. #5
    Registered User
    Join Date
    06-18-2011
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Average of each 25% of column

    Quote Originally Posted by daddylonglegs View Post
    Hello rakker, please don't hijack threads, as per forum rule 2 - start your own thread and link to any other thread you fell is relevant, thanks
    Sorry, my mistake. Im new here and thought that I could bump an old thread and add a little question, because my question is very similar to the original poster's question. That way, other people would have the answers nicely together in one thread. I now see that this is not allowed, sorry and thank you for moving my posts.

    In your example I'd question the results for the first 3 formulas - what if C20 is blank? Your formulas will give you the average of C1:C4, C5:C8 and C10:C13 respectively, C9 is missed out.
    You're right, I guess my formulas dont work when there are blank cells in the range.

    In that scenario presumably 3 of the average should average 5 cells and one of then 4 cells, how do you expect that to be split up?
    I assume there is a variable number of values, will there be any gaps?
    I dont really understand your first question.
    To your second: there are in total over 100.000 values in one column (column C). The ranges I need to calculate the averages from also vary in size. So, for example:

    - 1st, 2nd, 3rd and 4th 25% average of range C1:C480
    - 1st, 2nd, 3rd and 4th 25% average of range C481:C685
    - 1st, 2nd, 3rd and 4th 25% average of range C686:C780
    etc.

    There are no gaps or blank cells in the entire column.
    In another row I already extracted the ranges, so if I have the correct formulas, I can make all the formulas using the function CONCATENATE.
    Last edited by rakker; 06-19-2011 at 12:52 PM. Reason: typo

+ 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