+ Reply to Thread
Results 1 to 6 of 6

Median and Mode with Criteria

  1. #1
    Registered User
    Join Date
    10-11-2016
    Location
    Aberdeen, Scotland
    MS-Off Ver
    2010
    Posts
    49

    Question Median and Mode with Criteria

    Hi

    I am working out some averages (Mean, Mode, Median) for a large data set.

    For mean I have used AVERAGEIFS as I have some criteria I want to check against.

    Now I want to do the same for Mode and Median but I don't see the *IFS* functionality in Excel. Is there a way round this could I create some sort of compound formula something like (mode(IFS(A:A,"x",B:B,"y")).

    thanks in advance

    Robin

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Median and Mode with Criteria

    You might want to investigate the AGGREGATE function: https://support.office.microsoft.com...ain11.chm60533
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Median and Mode with Criteria

    Try

    =MODE(IF($A:$A=x,$B:$B))

    or

    =MODE(IF(($A:$A=x)*($B:$B=y),$C:$C)

    BUT limit the range rather than whole columns.

    Enter with Ctrl+Shift+Enter

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Median and Mode with Criteria

    Mean (Average) Function: One of the most used statistical functions in Excel is Average. Simply use the Average function and select the range which needs to be averaged.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Median : Median is a function which is used to find the middle number in a given range of numbers.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Mode : Mode helps you to find out the value that occurs most number of times. When you are working on a large amount of data, this function can be a lot of help. To find the most occurring value in Excel, use the MODE function and select the range you want to find the mode.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Median and Mode with Criteria

    @AVK: read what the OP requires ...

    .... as I have some criteria I want to check against......
    Now I want to do the same for Mode and Median but I don't see the *IFS* functionality in Excel. Is there a way round this could I create some sort of compound formula something like (mode(IFS(A:A,"x",B:B,"y")).

  6. #6
    Registered User
    Join Date
    10-11-2016
    Location
    Aberdeen, Scotland
    MS-Off Ver
    2010
    Posts
    49

    Re: Median and Mode with Criteria

    Thanks everyone.

    John's method is working like a charm

+ 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. [SOLVED] formula for choosing between Mode and Median
    By orijonl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-20-2016, 11:39 AM
  2. [SOLVED] Compute Mean, Median & Mode of 1D Array
    By jewelsharma in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2016, 04:09 AM
  3. Replies: 4
    Last Post: 12-04-2014, 05:55 PM
  4. [SOLVED] Mode If and Median If help
    By bobthebofifn in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-19-2014, 01:44 PM
  5. [SOLVED] Using Median IF to calculate the median for a specific criteria
    By boynejs in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-20-2014, 01:50 AM
  6. Median and mode
    By maestrodos in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-01-2012, 10:40 PM
  7. Mean, median and mode
    By brandon in forum Excel General
    Replies: 6
    Last Post: 05-06-2008, 12:39 PM

Tags for this Thread

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