+ Reply to Thread
Results 1 to 11 of 11

Array to Calc Bottom Average

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2003
    Posts
    8

    Array to Calc Bottom Average

    I have an array formula in the attached file to calculate the average of the Top 3 (cell F6). I put that same formula in cell F14 to calculate the average of the Bottom 3 (just change the "large" to "small", however it doesn't work. The result shows zero. How do I fix this?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Array to Calc Bottom Average

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


    If you use the If statement like I did it returns False when <>. The way you did the LARGE, when it multiplies the False by a number it interprets the False as a 0 (True = 1). 0 is a small number so this is why you only noticed when using the Small function and not the Large.
    Last edited by Hawkeye16; 06-10-2014 at 07:50 AM. Reason: Changed the ; to , for USA

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Array to Calc Bottom Average

    In excel 2007 you can make a pivot table of it.

    Then there is a option to calculate the top 3.

    Yould take a avarage of it.

    I don't have excel 2007 at the moment.

    I will look for it this evening, and respond back.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    04-10-2013
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Array to Calc Bottom Average

    I'm getting an error when typing the formula you suggested.

  5. #5
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Array to Calc Bottom Average

    I am sorry. You need to press CTRL + Shift + Enter as it is an array formula.
    Attached Files Attached Files

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array to Calc Bottom Average

    Quote Originally Posted by Hawkeye16 View Post
    try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you use the If statement like I did it returns False when <>. The way you did the LARGE, when it multiplies the False by a number it interprets the False as a 0 (True = 1). 0 is a small number so this is why you only noticed when using the Small function and not the Large.
    This is a good solution, though I've got the feeling that this syntax for array constants doesn't work with systems where the decimal separator is ".".

    It should, since then we'd have a universal system, but I don't believe it does, so should be:

    =AVERAGE(SMALL(IF($A$2:$A$46=E14,$B$2:$B$46),{1,2,3}))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  7. #7
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Array to Calc Bottom Average

    Yeah - So much changes I figured I would attach a workbook, excel seems to correct itself. That is good to know for the future though. Thanks XOR LX!

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array to Calc Bottom Average

    Quote Originally Posted by Hawkeye16 View Post
    Yeah - So much changes I figured I would attach a workbook, excel seems to correct itself. That is good to know for the future though. Thanks XOR LX!
    No worries! I've been on the other end of this when an OP has come back to me saying that there was an error in the formula (containing e.g. {1,2,3}), not knowing for the life of me what it was until someone pointed out this alternative syntax with "\".

    Still not sure why Microsoft don't just standardise this part of Excel...

    Cheers

  9. #9
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Array to Calc Bottom Average

    I am pretty sure it is because it started as a US program but in other parts of the world "," is a decimal point so the syntax needed to be changed. I think they would get a lot of pushback if they changed the syntax for the US versions...

  10. #10
    Registered User
    Join Date
    04-10-2013
    Location
    Green Bay, WI
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Array to Calc Bottom Average

    Thank you both for your help!

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Array to Calc Bottom Average

    Please Login or Register  to view this content.
    in #3.

    I didn't found the solution with pivot table.

+ 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. Calc average over the year
    By Davycc in forum Excel General
    Replies: 7
    Last Post: 12-20-2013, 07:34 AM
  2. Average formula which omits 0 in calc
    By Storm85 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2013, 02:39 AM
  3. calc the average difference between columns
    By Zeke43 in forum Excel General
    Replies: 9
    Last Post: 05-05-2009, 05:35 PM
  4. Looking-up Columns w/calc'd Values ONLY to Calculate Average
    By sony654 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-21-2006, 01:25 AM
  5. How to calc the average of 3 cells on all rows
    By bitmaster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2005, 06:00 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