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.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!