+ Reply to Thread
Results 1 to 7 of 7

Calculate Median for only for values that meet two criteria

  1. #1
    Registered User
    Join Date
    06-10-2018
    Location
    NY, NY
    MS-Off Ver
    Excel for Mac 15.40
    Posts
    27

    Calculate Median for only for values that meet two criteria

    Greetings-

    Trying to calculate median values for a range of numbers that are higher than value in one cell but lower than value in another.

    I have the "greater than" criterion but can't figure out how to add the "less than" criterion.

    =MEDIAN(IF($D$1188:$D$1847>F1860,$F$1188:$F$1847))

    So, calculate the median for values in the range that are greater than F1860 but less than F1861.

    Many thanks.

  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,737

    Re: Calculate Median for only for values that meet two criteria

    Maybe this?

    =MEDIAN(IF($D$1188:$D$1847>F1860,IF($D$1188:$D$1847 < F1860,$F$1188:$F$1847)))

    You may need to enter this using CTRL+SHIFT+ENTER.
    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
    Registered User
    Join Date
    06-10-2018
    Location
    NY, NY
    MS-Off Ver
    Excel for Mac 15.40
    Posts
    27

    Re: Calculate Median for only for values that meet two criteria

    Hi-

    Thank you for your swift reply. The formula you suggested returns a #NUM! error.

    I appreciate your effort.

  4. #4
    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,737

    Re: Calculate Median for only for values that meet two criteria

    Attach the workbook.

  5. #5
    Registered User
    Join Date
    06-10-2018
    Location
    NY, NY
    MS-Off Ver
    Excel for Mac 15.40
    Posts
    27

    Re: Calculate Median for only for values that meet two criteria

    Thanks. I located an erroneous cell reference in the suggested formula. Once the second reference was corrected to F1861, it works fine.

    Much obliged for your help.

    Cheers!

  6. #6
    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,737

    Re: Calculate Median for only for values that meet two criteria

    Ah, good. The cell reference was wrong in the opening post, then. Glad it’s fixed.

  7. #7
    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,737

    Re: Calculate Median for only for values that meet two criteria

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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: 7
    Last Post: 11-08-2014, 04:05 PM
  2. [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
  3. [SOLVED] calculate a MEDIAN using multiple criteria?
    By MetricsShiva in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 PM
  4. [SOLVED] calculate a MEDIAN using multiple criteria?
    By MetricsShiva in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  5. [SOLVED] calculate a MEDIAN using multiple criteria?
    By MetricsShiva in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  6. [SOLVED] calculate a MEDIAN using multiple criteria?
    By MetricsShiva in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] calculate a MEDIAN using multiple criteria?
    By MetricsShiva in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-19-2005, 12:05 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