Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Working With Tables in Excel
  • Excel Bar Chart
  • How to calculate average last N values in a table in Excel
  • How to count table columns in Excel
  • Randomize/ Shuffle List in Excel

References

  • Basic INDEX MATCH approximate in Excel
  • How to use Excel TRANSPOSE Function
  • Two-way lookup with VLOOKUP in Excel
  • How to use Excel ROWS Function
  • How to use Excel FORMULATEXT function

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation must begin with
  • Excel Data validation only dates between
  • Excel Data validation no punctuation
  • Excel Data validation must not contain

How To Use AGGREGATE function to sum a range with errors in Excel

by

Excel functions such as SUM, COUNT, LARGE and MAX don’t work if a range includes errors. However, you can easily use the AGGREGATE function to fix this.

1. For example, Excel returns an error if you use the SUM function to sum a range with errors.

2. Use the AGGREGATE function to sum a range with errors.

Explanation: the first argument (9) tells Excel that you want to use the SUM function. The second argument (6) tells Excel that you want to ignore error values.

3. It’s not easy to remember which argument belongs to which function. Fortunately, the AutoComplete feature in Excel helps you with this.

4. The AGGREGATE function below finds the second to largest number in a range with errors.

Explanation: the first argument (14) tells Excel that you want to use the LARGE function. The second argument (6) tells Excel that you want to ignore error values. The fourth argument (2) tells Excel that you want to find the second to largest number.

5. The AGGREGATE function below finds the maximum value ignoring error values and hidden rows.

Explanation: the first argument (4) tells Excel that you want to use the MAX function. The second argument (7) tells Excel that you want to ignore error values and hidden rows. In this example, row 2 is hidden.

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

Manipulating text strings using Left, Mid, Right, Len, Substitute in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Complete List of Excel Logical Functions, References and Examples
  • Excel If, Nested If, And/Or Criteria Examples
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel FALSE Function

Date Time

  • Count day of week between dates in Excel
  • How to get same date next year or previous year in Excel
  • Add years to date in Excel
  • Two ways to sum time over 30 minutes in Excel
  • DAYS function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group times into 3 hour buckets in Excel
  • Calculate conditional mode with criteria in Excel
  • Categorize text with keywords in Excel
  • How to randomly assign people to groups in Excel
  • Running count group by n size in Excel

General

  • Spell Check in Excel
  • How to get original number from percent change in Excel
  • Excel Autofill Cell Ranges, Copy, Paste
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • Check if multiple cells have same value in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning