+ Reply to Thread
Results 1 to 6 of 6

Eliminating a cell with 0 value from Median

  1. #1
    Registered User
    Join Date
    03-24-2007
    Posts
    88

    Eliminating a cell with 0 value from Median

    I want to use a range in MEDIAN but want to exclude cells with a 0 value.

    MEDIAN(K2:K27)
    Last edited by Nunzio; 04-15-2010 at 11:44 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Eliminating a cell with 0 value from Median

    Try:

    =MEDIAN(IF(K2:K27<>0,K2:K27))

    confirmed with CTRL+SHIFT+ENTER
    not just ENTER.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-24-2007
    Posts
    88

    Re: Eliminating a cell with 0 value from Median

    I am getting a #VALUE

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Eliminating a cell with 0 value from Median

    Did you figure it out. ... I see you marked it Solved after your last post?

  5. #5
    Registered User
    Join Date
    03-24-2007
    Posts
    88

    Re: Eliminating a cell with 0 value from Median

    Yes, Thanks

    MEDIAN(IF(ISERROR(K2:K27<>0),K2:K27))

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Eliminating a cell with 0 value from Median

    I am not sure how that fixed your problem?

    Do you have errors in your K2:K27 range...

    I don't get that error unless I have that error within the range already.

+ 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.6.0 RC 1