+ Reply to Thread
Results 1 to 11 of 11

Averaging values, excluding minimum value

  1. #1
    Registered User
    Join Date
    04-22-2011
    Location
    Antioch, California
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Averaging values, excluding minimum value

    Hello. I am having a problem coming up with a formula to average a set of numbers dropping the lowest of the numbers, then giving equal weight to the remaining 3 numbers. I am a beginning Excel user and cannot figure out how to do this. Example, A1, 95; B1, 80; C1, 70; D1, 60. The value in D1 would be dropped and (95+80+70)/3=81.7 would be the average in cell F1 that I would want calculated by a formula. I just don't seem to be able to figure this out. Any help would be so appreciated! Thank You.
    Last edited by LoriR; 04-22-2011 at 04:04 AM. Reason: To mark as solved

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Averaging values, excluding minimum value

    try this:

    =AVERAGE(LARGE(A1:A4, ROW($A$1:$A$3)))

    comfirmed with ctrl+shift+enter

  3. #3
    Registered User
    Join Date
    04-22-2011
    Location
    Antioch, California
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Averaging values, excluding minimum value

    I need the formula to drop the lowest value no matter which column the lowest value is located in. It looks like this would just average the first 3 rows. If the lowest value was in A2 I don't think it would work. Is there another way you can think of? Thanks.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Averaging values, excluding minimum value

    Did you try it?

  5. #5
    Registered User
    Join Date
    04-22-2011
    Location
    Antioch, California
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Averaging values, excluding minimum value

    Quote Originally Posted by zbor View Post
    Did you try it?
    I did try it and it came out with the number 95 which is not the average of the 3 highest values. I'm not sure why it came up with that value. Do you have any other suggestion for me to try? It is strange but when I bring up the function arguement box it displays the correct value but what displays in the cell is the largest value in the string of values. Can't figure why it displays something different than what the function arguement box says.
    Last edited by LoriR; 04-22-2011 at 02:44 AM. Reason: More information when doing Excel problem.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Averaging values, excluding minimum value

    comfirm with ctrl+shift+enter not just enter

  7. #7
    Registered User
    Join Date
    04-22-2011
    Location
    Antioch, California
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Averaging values, excluding minimum value

    That did work with the ctrl+shift+enter. Can I ask why this is how I had to enter this formula. I have never done that before. Also can you explain how that formula works. What is the LARGE and ROW designating. I have the numbers that I am averaging in rows not in columns. It did not seem to work when I put the numbers in a row. Should it work this way also? The cell references are as listed in my first post. Thank you.
    Last edited by LoriR; 04-22-2011 at 02:57 AM. Reason: additional message.

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Averaging values, excluding minimum value

    Of course it worked

    Beside of regular formula's in excel, those a called array formula: a formulas that don't work with single cells but with array of cells. usually they must be entered with ctrl+shift+enter so that curly brackets {=formula} appear around the formula. You can not enter those brackets manually.

    LARGE formula returns the k-th largest value in a data set.

    So if you have =LARGE({1,3,5, 7}, 2) it will retun number 5 because it's 2nd largest value of the numbers.

    If you put =LARGE({1, 3, 5, 7}, {1, 2}) if you put normal enter it will calculate only with 1st value of the range (7) and that's why you get 95 with normal enter.

    If you confirm with ctrl+shift+enter it takes 1st AND 2nd value (7 and 5).

    Now, in your example, if you take: =AVERAGE(LARGE(A1:A4, ROW($A$1:$A$3)))

    it will take AVERAGE of (ROW(A1:A3) will become 1,2,3) so, AVERAGE of first 3 largest values of the cells A1 to A4

    ={AVERAGE(LARGE(A1:A4, ROW($A$1:$A$3)))}
    ={AVERAGE(LARGE({95, 80, 70, 60}, {1, 2, 3}))}
    ={AVERAGE(95, 80, 70)}
    =81.7
    Last edited by zbor; 04-22-2011 at 03:06 AM.

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Averaging values, excluding minimum value

    If you put numbers in column then ROW function still must remain same because it not taking anything from ROW's it just take 1, 2, 3 etc numbers.

    But you must change your data filed from A1:A4 into A1:D1 or so.

  10. #10
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Averaging values, excluding minimum value

    If you know that the array of items required you don't need the Array entry - use an Array constant:

    Please Login or Register  to view this content.
    where the k array is variable you might revert to an Array

    Another non-array alternative here would be:

    Please Login or Register  to view this content.
    again this assumes 4 numbers at all times

    Obviously you can adjust as necessary.

  11. #11
    Registered User
    Join Date
    04-22-2011
    Location
    Antioch, California
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Averaging values, excluding minimum value

    Quote Originally Posted by DonkeyOte View Post

    Another non-array alternative here would be:

    Please Login or Register  to view this content.
    again this assumes 4 numbers at all times

    Obviously you can adjust as necessary.
    This second formula is something that I fully understand since I am just a beginner to Excel. I have not worked with arrays yet. Thank you for the simple suggestion. It worked and I don't need an explanation.

+ 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