median excluding 0's

J

JNW

I can't think of a direct way to do it.

Let's say your numbers are in Column A, then in B1 you would place the
following formula:
=IF(A1>0,A1,"")

Then drag it down for all numbers in column A. Then you can use
=MEDIAN(B:B) to return the median while excluding zeros
 
P

Peo Sjoblom

One way

=MEDIAN(IF(A1:A50<>0,A1:A50))

it's an array formula and needs to be entered with ctrl + shift & enter

--
Regards,

Peo Sjoblom

Portland, Oregon
 
Top