+ Reply to Thread
Results 1 to 5 of 5

=MEDIAN(IF(AJ$2:AJ$104=1,$AB$2:$AB$104)) function while the cells contain #VALUE!

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    12

    =MEDIAN(IF(AJ$2:AJ$104=1,$AB$2:$AB$104)) function while the cells contain #VALUE!

    I am trying to run the function =MEDIAN(IF(AJ$2:AJ$104=1,$AB$2:$AB$104)) while some of the cells contain #VALUE!.
    I want to ignore these #VALUE! not even regarding these as zeros which is not true.
    Is there a way to do this work?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: =MEDIAN(IF(AJ$2:AJ$104=1,$AB$2:$AB$104)) function while the cells contain #VALUE!

    Try...
    =MEDIAN(IF((AJ$2:AJ$104=1)*NOT(ISERROR($AB$2:$AB$104)),$AB$2:$AB$104))

    But it is much better to clean up range where error is found using =IFERROR('Your formula',"") or other variants.

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

    Re: =MEDIAN(IF(AJ$2:AJ$104=1,$AB$2:$AB$104)) function while the cells contain #VALUE!

    Similarly
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

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

    Re: =MEDIAN(IF(AJ$2:AJ$104=1,$AB$2:$AB$104)) function while the cells contain #VALUE!

    If you use AGGREGATE function that has a built-in option to ignore error values, i.e.

    =AGGREGATE(16,6,$AB$2:$AB$104/(AJ$2:AJ$104=1),0.5)

    [16 = PERCENTILE function but PERCENTILE set to 0.5 is the same as MEDIAN]
    Audere est facere

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: =MEDIAN(IF(AJ$2:AJ$104=1,$AB$2:$AB$104)) function while the cells contain #VALUE!

    Another option might be to remove the #VALUE error by adjusting the formula that is causing it?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Median if function
    By tis1337 in forum Excel General
    Replies: 5
    Last Post: 04-30-2016, 08:13 AM
  2. 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
  3. Excluding Cells in Median function
    By TAM77 in forum Excel General
    Replies: 9
    Last Post: 11-09-2011, 01:42 PM
  4. Median Function Help
    By couger77 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-25-2007, 04:47 PM
  5. median function
    By flyingmeatball in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-17-2006, 12:58 PM
  6. median function
    By flyingmeatball in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2006, 11:40 AM
  7. Median function
    By pamanaf in forum Excel General
    Replies: 1
    Last Post: 08-10-2005, 10:05 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