+ Reply to Thread
Results 1 to 6 of 6

Thread: Calculating median value if meets condition

  1. #1
    Registered User
    Join Date
    02-05-2012
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2010
    Posts
    3

    Calculating median value if meets condition

    Hi I am kind of new to using excel and have tried to google search and use formulas people have suggested but cannot seem to get this to work. Any help would be appreciated.

    I need to calculate the median of a column G which is called Isolation (hrs). I would like to only calculate the median of the numbers whose corresponding column BB indicated that they were 'Guideline compliant.' The values in column BB is either a 0 (indicating non-compliance) or a 1 (indicated compliance).

    Thanks in advance.
    Last edited by ranmyaku; 02-05-2012 at 03:30 AM.

  2. #2
    Registered User
    Join Date
    02-05-2012
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculating median value if meets condition

    Here is a test file.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    12-14-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    986

    Re: Calculating median value if meets condition

    =MEDIAN(IF(BB2:BB74=1,G2:G74)) enter with Ctrl + Shift + Enter since it is an array formula
    To thank someone who has helped you, click on the star icon below their name.

    I hate reading

    Portfolio

    I need a job.
    I am young and incompetent

  4. #4
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,398

    Re: Calculating median value if meets condition

    Hi Ranmyaku,


    You can use the following array formula:-

    {=MEDIAN(IF($BB$2:$BB$74=1,$G$2:$G$74,""))}
    Above is array formula and need to entered with Ctrl + Shift + Enter key combination. Sample file is also attached. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey
    +919810929744
    dilipandey@gmail.com

  5. #5
    Registered User
    Join Date
    02-05-2012
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculating median value if meets condition

    Thanks so much!

  6. #6
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,398

    Re: Calculating median value if meets condition

    You are welcome ranmyaku . .

    cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +919810929744
    dilipandey@gmail.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0