• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Calculating median and average within an amount range and excluding zero.

There are 10 cells that will contain numbers, but some will be blank or have a zero. I need to auto calculate the median and average within a high low range and exclude any cells that have a zero in the cell.

My questions are in P61, P62, P64, P65, and P68.


Thanks in advance.
 

Attachments

  • Example for average and median with high and low restrictions.xlsx
    10.6 KB · Views: 6
Perhaps
[P56]=MEDIAN(IF(P46:p54<500,P46:p54))
[P57]=AVERAGEIFS(P46:p54,P46:p54,"<"&500) or =AVERAGEIF(P46:p54,"<"&500,P46:p54)

[R56]=MEDIAN(IF(R46:R54>0,R46:R54))
[R57]=AVERAGEIFS(R46:R54,R46:R54,">"&0) or =AVERAGEIF(R46:R54,">"&0,R46:R54)

Median formula to confirm with control+shift+enter (array formula)
 
Back
Top