+ Reply to Thread
Results 1 to 3 of 3

Multiple MAX results - find average?

  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Portsmouth, UK
    MS-Off Ver
    2010, 2013
    Posts
    44

    Multiple MAX results - find average?

    Hi there
    I have a spreadsheet and in there I have the following formula
    =INDEX($B$32:$F$32,0,MATCH(MAX($B33:$H33),$B33:$H33,0))
    This only gives the result of the first instance of a max. (In this particular line on my spreadsheet B33, C33 and D33 all contain the same max result.

    Is it possible to adapt the formula so that if there are multiple results of the same max, the formula will then add them all up and divide by how many there are.

    At present it presents 0 as that is the first occurrence, however when there are more as below it finds ALL instances of the highest value (ie 2, it then adds up all the header values where it occurs, in example below 0, 1 and 2. It recognises there are 3 occurrences so would produce 0+1+2 = (3) / 3 lots, so 3/3 = 1.

    So it would return 1 as the answer?

    ie.
    --Col-B---|--Col-C--|--Col-D-|--Col-E-|--Col-F--|
    --Row32--|----0----|----1----|----2----|----3----|
    --Row33--|----2----|----2----|----2----|----1----|

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Multiple MAX results - find average?

    Hi,

    You might use
    =AVERAGEIF(C33:F33,MAX(C33:F33),C32:F32)
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    08-13-2015
    Location
    Portsmouth, UK
    MS-Off Ver
    2010, 2013
    Posts
    44

    Re: Multiple MAX results - find average?

    Many thanks, works like a treat
    Quote Originally Posted by xlnitwit View Post
    Hi,

    You might use
    =AVERAGEIF(C33:F33,MAX(C33:F33),C32:F32)

+ 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: 1
    Last Post: 02-15-2016, 04:35 PM
  2. Trying to find median & average for multiple columns with multiple criteria
    By help-meplease in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2016, 06:59 PM
  3. Find multiple values in multiple ranges and produce results in a list
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2014, 02:11 AM
  4. [SOLVED] Average results based on multiple conditions and by month
    By Tanya_ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-14-2013, 06:41 PM
  5. How to average lookups with multiple results
    By martinpe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2008, 08:55 PM
  6. [SOLVED] find multiple results
    By Larry Banach in forum Excel General
    Replies: 8
    Last Post: 12-21-2005, 06:10 PM
  7. [SOLVED] find multiple results
    By Larry Banach in forum Excel General
    Replies: 0
    Last Post: 12-20-2005, 06:25 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