where “values” is the named range B5:B14. Here, the number 4 specifies MAX, the number 6 is an option to ignore errors, and “values” is the named range B5:B14. With these settings, AGGREGATE returns the maximum in the remaining eight values, 100.
Alternative with MAXIFS
The MAXIFS function can return the max value in a set of data, after applying one or more criteria to filter out unwanted values. If values in the data set are known to be positive, you can use the following formula to return the maximum value while ignoring errors: This works because the “greater or equal to zero” expression effectively filers out error values, and MAXIFS returns the maximum value from the remaining 8 values, 100. Note: MAXIFS was introduced in Excel 2016 via Office 365.
Dave Bruns
Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.