+ Reply to Thread
Results 1 to 7 of 7

Thread: Median

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    7

    Arrow Median

    Hi, hope you can help me with a questions.



    I have five number in five cells (in EXCEL). I have to calculate the median of them like 3,5,6,8 and 10 and the result of this should be 6, right.

    Those numbers are results of other equation anda some times the value of one or two of them is #DIV/O or 0.

    When the value is 0 I need to ignore 0 as a number like: 3,5,0,0,10. Because the result of thisp should be 5 without considering the 0. But with the 0 the result is 3.

    I need the function MED ignore the #DIV/0 or ignore the 0 value.

    Is that possible? Thank you much for your atention.
    Last edited by tomribeiropereira; 03-02-2011 at 04:43 PM. Reason: med

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777

    Re: Median

    Welcome to the forum.

    Zero is most definitely a number. Make those cells blank if you want them ignored.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Median

    It can be blank, because are results of other equation.

    Need to skip 0. Thanks.

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777

    Re: Median

    You could change the the equation can return a null string instead of a 0.

    Or use

    =median(if(a1:a5<>0, a1:a5))

    ... confirmed with Ctrl+Shift+Enter.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    03-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Median

    Hi, shg, thank for you help.


    The equation before that give me the result that are entered in the MED column is:


    =U55(T55*6.3)*10

    How this equation can give me null sign? Or zero sign?

    After that, if it give me null sign the function MED will work correctly i suppose, right?

    And if it give me Zero sign, how can MED function ignore Zero numbers?


    If one of this works itīs solve the problem. Thanks again.
    Last edited by tomribeiropereira; 03-02-2011 at 05:02 PM.

  6. #6
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777

    Re: Median

    =if(t55*u55=0, "", t55*u55*6.3*10)
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    03-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Median

    You just save me man, thanks very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0