- To post as a guest, your comment is unpublished.· 8 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.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
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:
|Kutools for Excel: The 200 functions you must have in Excel, you can free download from here|
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
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 8 months 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.· 2 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: