+ Reply to Thread
Results 1 to 4 of 4

MEDIAN with multiple conditions

  1. #1
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    MEDIAN with multiple conditions

    Hi again,

    Just a quick question, i have this data that i need to formulate.

    What I need is MEDIAN but with multiple criteria.

    I want excel to formulate this scenario:

    Median should only accept the following conditions:

    Grade Column should only be "BA1"
    Salary Column should not include "0"
    Gender Column should only include "Male"

    anyone can help me with this? Thanks in advance!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: MEDIAN with multiple conditions

    You need to use an array formula along the lines of:

    =MEDIAN(IF(conditions,array))

    but you need to tell us where your data is, i.e. which columns are used for Grade, Salary and Gender. and how many rows of data do you have. I presume it is the Salary column that you want the conditional MEDIAN of ?

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    Re: MEDIAN with multiple conditions

    Hi Pete,

    Thanks for this, will try it.

    Yes I want to get the median of the salary column

    Grade = Column E
    Salary = Column W
    Gender = Column C

  4. #4
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    Re: MEDIAN with multiple conditions

    Hi Pete I think your suggestion works!

    =MEDIAN(IF('Tab 1 - Master'!C:C="Male",IF('Tab 1 - Master'!E:E="BA1",IF('Tab 1 - Master'!W:W<>0,'Tab 1 - Master'!W:W))))

    will try to check it manually thanks a lot!

+ 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. 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
  2. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  3. Median Indirect: Find median in range and bring back adjacent cells
    By Keelin in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-27-2014, 08:31 AM
  4. Calculating median across many columns based on conditions in first column
    By rahulconda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2013, 02:06 PM
  5. Median for Range: 2 Conditions
    By PraveshG81 in forum Excel General
    Replies: 1
    Last Post: 02-02-2013, 07:33 PM
  6. calculating MEDIAN with conditions, VBA
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-06-2012, 03:01 AM
  7. Median calculation on multi-range with conditions
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2011, 03:32 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