- To post as a guest, your comment is unpublished.· 11 months agoHi，Jeff，above formulas can be used in Excel 2016, have you pressed Shift + Ctrl + Enter keys together?
How to median values ignore zeros or errors in Excel?
In Excel, when we apply the common formula =MEDIAN(range), it will calculate the median value within a range including zeros, and it will also get error result when is applied in a range which includes error values as below screenshot show. In this tutorial, I am going to talking about how to medina ignoring zeros or errors in Excel.
To median a range ignoring zero values, you can apply below formula.
Select a cell that you will put the median result into, C2 for instance, type this formula =MEDIAN(IF(A2:A17<>0,A2:A17)), press Shift + Ctrl + Enter keys. See screenshot:
In the formula, A2:A17 is the range you want to median excluding zeros.
To median range values ignoring error values, you can do as below:
Select a cell which you will place the median result into, enter this formula =MEDIAN(IF(ISNUMBER(F2:F17),F2:F17)), press Shift + Ctrl + Enter keys. See screenshot:
In the formula F2:F17 is the range you want to median ignoring errors.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 1 years agoI just get 0 as the result when I use that formula. (Some differences in versions of Excel, I have 2016?)
- To post as a guest, your comment is unpublished.· 2 years agoTHANKS!!!!!!
- To post as a guest, your comment is unpublished.· 3 years agoHello, how does one median ignore both zeros and errors at the same time? Thanks
- To post as a guest, your comment is unpublished.· 2 years agoSorry, I cannot find a formula to median ignore both zeros and errors, if you want to try, you can apply Kutools for Excel's Select Specific Cells to select and copy the numbers which are greater than zero first, and then ues =MEDIAN() to find the result from the copy. See screenshot: