+ Reply to Thread
Results 1 to 6 of 6

Min, Max and Average within Array

Hybrid View

  1. #1
    Registered User
    Join Date
    03-28-2017
    Location
    Durham
    MS-Off Ver
    2010
    Posts
    38

    Min, Max and Average within Array

    Hello, with reference to the attached image, I would like to calculate the minimum, maximum and average of column AF if the respective values in column AE fall between the range between A2 and B2, A3 and B3, etc. etc.

    Can anyone help with this.

    Thanks,

    Steven

    Capture.JPG

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Min, Max and Average within Array

    Welcome to the forum.

    May I suggest that you upload a real excel file so that members will not recreate your workbook.

    Regards,
    Vlady
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    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,454

    Re: Min, Max and Average within Array

    Using variants of an array formula like this one:

    =MIN(IF($G$2:$G$18>=$A2,IF($G$2:$G$18<$B2,$H$2:$H$18)))

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    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

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: Min, Max and Average within Array

    Looking at your picture it looked like you wanted all your data (avg, Min, and max) in the same cell. If that is the case i used Glenn's formula above and added the formatting formulas:

    ="MIN: "&-ROUND(MIN(IF(G2:G18>=$A2,IF($G$2:$G$18<$B2,$H$2:$H$18))),2)&CHAR(10)&"MAX: "&ROUND(MAX(IF($G$2:$G$18>=$A2,IF($G$2:$G$18<$B2,$H$2:$H$18))),2)&CHAR(10)&"AVG: "&ROUND(AVERAGE(IF($G$2:$G$18>=$A2,IF($G$2:$G$18<$B2,$H$2:$H$18))),2)

    Make sure to still enter this formula with ctrl+shift+enter as it is still an array formula

  5. #5
    Registered User
    Join Date
    03-28-2017
    Location
    Durham
    MS-Off Ver
    2010
    Posts
    38

    Re: Min, Max and Average within Array

    Excellent thanks very much, issue solved!

  6. #6
    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,454

    Re: Min, Max and Average within Array

    FWIW... putting all those values into one cell is (In my view) a bit like carving them into stone. There's not much further you can do with the numbers, without the use of horrendous formulae to unpick the concatenation...

+ 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. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  2. Array Average
    By Jockney in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2014, 06:06 AM
  3. Average array if 3 criteria are met
    By celestealexandra in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2014, 11:46 AM
  4. average if array problems
    By InderpalHothi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2013, 08:46 AM
  5. Average Array
    By sinspawn56 in forum Excel General
    Replies: 4
    Last Post: 03-23-2012, 11:18 AM
  6. Average Array Formula
    By Rachael in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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