+ Reply to Thread
Results 1 to 4 of 4

Calculate Median based on multiple conditions

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    Eugene, OR
    MS-Off Ver
    2013
    Posts
    5

    Calculate Median based on multiple conditions

    Could use some help. I am trying to calculate the median age based on 2 different columns. The first column is the "Site" and the second is the "Issue Type".

    Thus, the goal would be for each site, list its median age for each issue type.

    Attached is the sample data.

    Would greatly appreciate the help!
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Calculate Median based on multiple conditions

    Here's one way:

    Copy column A and B to columns E and F. Highlight columns E:F > Data > Remove Duplicates

    G2 =MEDIAN(IF((A$2:A$19066=E2)*(B$2:B$19066=F2),C$2:C$19066)) Ctrl Shift Enter

    Drag the formula down column G.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Calculate Median based on multiple conditions

    something like this one?
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2411
    Posts
    13,587

    Re: Calculate Median based on multiple conditions

    Similar to 63falcondude's solution:

    Do the remove duplicates step.
    In G2 this formula can be committed with just Enter and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

+ 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. Calculate Median with multiple conditions
    By Masun in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-23-2017, 05:54 AM
  2. MEDIAN with multiple conditions
    By aarona in forum Excel General
    Replies: 3
    Last Post: 02-01-2017, 10:42 PM
  3. Calculate ideal body weight (IBW) based on multiple conditions
    By smaeralbazz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2016, 02:14 AM
  4. Calculate Stdev for a group of cells based on multiple conditions
    By dsgeller in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2014, 09:58 AM
  5. 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
  6. Calculate Values based on Multiple Conditions
    By creativefusion in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-24-2009, 09:27 PM
  7. Calculate Median using conditional based on dates
    By Shai-Hulud in forum Excel General
    Replies: 4
    Last Post: 01-23-2008, 12:39 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