+ Reply to Thread
Results 1 to 7 of 7

MEDIAN and IF - Why no MEDIANIFS?

  1. #1
    Registered User
    Join Date
    04-30-2014
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    6

    MEDIAN and IF - Why no MEDIANIFS?

    This function is producing a "0" result. Any ideas out there?

    =MEDIAN(IF(AND('Ex.5.2 Complete Data'!$N$2:$N$4500='Ex.5.1 Detailed Summary'!$B$47,'Ex.5.2 Complete Data'!$CS$2:$CS$4500>='Ex.5.1 Detailed Summary'!$F$44,'Ex.5.2 Complete Data'!$CS$2:$CS$4500<='Ex.5.1 Detailed Summary'!$H$44,'Ex.5.2 Complete Data'!$CV$2:$CV$4501<'Ex.5.1 Detailed Summary'!$G$43),'Ex.5.2 Complete Data'!$CT$2:$CT$4501,FALSE))

    My concern is, how do I do a MedianIFs function if not like this?

    Thanks!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: MEDIAN and IF - Why no MEDIANIFS?

    You can't use AND here, try using * to simulate AND like this

    =MEDIAN(IF(('Ex.5.2 Complete Data'!$N$2:$N$4500='Ex.5.1 Detailed Summary'!$B$47)*('Ex.5.2 Complete Data'!$CS$2:$CS$4500>='Ex.5.1 Detailed Summary'!$F$44)*('Ex.5.2 Complete Data'!$CS$2:$CS$4500<='Ex.5.1 Detailed Summary'!$H$44)*('Ex.5.2 Complete Data'!$CV$2:$CV$4500<'Ex.5.1 Detailed Summary'!$G$43),'Ex.5.2 Complete Data'!$CT$2:$CT$4500))

    ....and this is an "array formula" so you need to confirm with CTRL+SHIFT+ENTER. If that's done correctly then curly braces like { and } will appear automatically around the formula
    Audere est facere

  3. #3
    Registered User
    Join Date
    04-30-2014
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: MEDIAN and IF - Why no MEDIANIFS?

    No quotes and & around the cell references? I'm getting #REF now, which would indicate an issue with my database columns.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: MEDIAN and IF - Why no MEDIANIFS?

    Quote Originally Posted by millonario101 View Post
    No quotes and & around the cell references?
    No, that syntax only applies to the SUMIF/COUNTIF/AVERAGEIF family of functions.

    Formula seems OK to me, assuming the referenced worksheets have names as shown

  5. #5
    Registered User
    Join Date
    04-30-2014
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: MEDIAN and IF - Why no MEDIANIFS?

    I now get a dialog box asking me to open up the file, which I do, then get the #NUM! error. Should I just give up an calculate it?

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: MEDIAN and IF - Why no MEDIANIFS?

    Have you used CTRL+SHIFT+ENTER?

    If so then #NUM! implies that there are no rows which meet the criteria (or there aren't any numbers in column CT when the criteria is met)

  7. #7
    Registered User
    Join Date
    04-30-2014
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: MEDIAN and IF - Why no MEDIANIFS?

    Fixed Column CT - thank you so much - perfect.

+ 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] Do a median without using the mean
    By Gaz_m2k5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2013, 12:37 PM
  2. [SOLVED] Median If
    By zero2658 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2013, 01:32 AM
  3. [SOLVED] Median Ifs, need to find median $ amount per deal for each year
    By xenomorph8472 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2012, 02:01 PM
  4. Median
    By Ocean69 in forum Excel General
    Replies: 6
    Last Post: 11-14-2009, 08:53 PM
  5. MedianIFS possible?
    By Jonny323 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-05-2009, 08:41 AM

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