+ Reply to Thread
Results 1 to 2 of 2

Median if (one criteria)

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    11

    Median if (one criteria)

    Hi all,
    I want to find the median of a set of data but exclude any "0"s from the median calc, like I did with the "averageif" formula. Any ideas?

    Thanks!

    ex set of data
    200
    232
    0
    150
    10
    411
    0

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Median if (one criteria)

    Assuming there are no negative numbers...

    Array entered**:

    =MEDIAN(IF(A2:A8>0,A2:A8))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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