(https://www.facebook.com/SimonSezIT/) (https://twitter.com/simonsezit)
(https://www.youtube.com/channel/UC- 3e3hAUhDV2lwcoQGD2grg)
(Note: Suitable for users of Excel 2016, 2019, 2021, and Excel for Microsoft 365 (https://www.office.com).)
OBJECTIVE
Use the AGGREGATE Function in Excel to return an aggregate calculation, optionally ignoring errors values and hidden rows.
THE AGGREGATE FUNCTION EXPLAINED
The AGGREGATE function in Excel returns an aggregate calculation like SUM, AVERAGE, COUNT, MIN, MAX etc. We can choose to optionally ignore specific things like hidden rows and errors. This means we are still able to perform the calculation despite these things being present in the dataset.
For example, the table below shows some Items and Prices of each of those items. We want to do a SUM calculation to add up the Prices in cell B16. However, we have errors in our data. If we simply attempt to do a SUM calculation, the result will also be an error.
Simon Sez IT
(https://www.simonsezit.com/)
ADVANCE YOUR CAREER
We can use the AGGREGATE function in Excel to perform the SUM calculation and ignore the errors in the cells.
However, this isn’t the only advantage of using AGGREGATE. AGGREGATE can handle many array operations without the need for CSE (Control+Shift+Enter).
The AGGREGATE function in Excel has 4 arguments:
=AGGREGATE(function_num,options,array,[k])
function_num presents a list of 19 operations that can be performed by the AGGREGATE function
options presents a list of 7 combinations of items to be ignored in the calculation
array the range of cells we want to aggregate
k (optional) returns the nth largest or smallest value when using the LARGE or SMALL function
Example 1: SUM (Ignore errors)
Example 2: AVERAGE (Ignore hidden rows and errors)
Example 3: LARGE (Ignore errors, hidden rows and return second largest) ADVANCE YOUR CAREER
Gain instant access to 170+ courses. Earn a CERTIFICATE each time you complete a course.
TRY FOR FREE (HTTPS://SIMONSEZIT.
Related reads:
How to Use Excel MATCH Function (https://www.simonsezit.com/article/how-to-use-excel-match- function/)
How to Graph a Function in Excel (https://www.simonsezit.com/article/how-to-graph-a-function-in- excel/)
How to Use SUMPRODUCT Function in Excel (https://www.simonsezit.com/article/sumproduct- function-in-excel/)
Example 1: SUM (Ignore errors)
In this first example, we will use the SUM function to calculate the total price for our list of items. We will choose to ignore errors only.
Type =AGGREGATE Select SUM from the list.
Select Ignore error values from the list.
Simon Sez IT
(https://www.simonsezit.com/)
ADVANCE YOUR CAREER
Select the array to aggregate.
The result will be returned and any errors will be ignored.
Example 2: AVERAGE (Ignore hidden rows and errors)
This time, we will find the average price from the list and ignore hidden rows and errors.
Type =AGGREGATE
ADVANCE YOUR CAREER
Gain instant access to 170+ courses. Earn a CERTIFICATE each time you complete a course.
TRY FOR FREE (HTTPS://SIMONSEZIT.
yp
Select AVERAGE from the list.
Select Ignore hidden rows and error values.
Select the array to aggregate.
The result will be returned and any errors and hidden rows will be ignored.
Simon Sez IT
(https://www.simonsezit.com/)
ADVANCE YOUR CAREER
Suggested reads:
How to Create an Excel Gauge Chart the Easy Way (https://www.simonsezit.com/article/how-to- create-an-excel-gauge-chart/)
Battle of the Excel Lookup Functions: VLOOKUP vs INDEX/MATCH vs XLOOKUP (https://www.simonsezit.com/article/excel-lookup-functions/)
How to Alphabetize in Excel (https://www.simonsezit.com/article/how-to-alphabetize-in-excel/)
Example 3: LARGE (Ignore errors, hidden rows and return second largest)
In this example, we need to find the second largest value in the Price column. We need to ignore error values and hidden rows. The LARGE function is similar to MAX but it has an additional [k] argument.
Type =AGGREGATE
Select LARGE from the list.
ADVANCE YOUR CAREER
Gain instant access to 170+ courses. Earn a CERTIFICATE each time you complete a course.
TRY FOR FREE (HTTPS://SIMONSEZIT.
Select Ignore hidden rows and error values.
Select the array to aggregate.
The optional [k] argument allows us to specify if we want to return the largest (1), the second largest (2), the third largest (3) etc. We want to return the second largest value.
Simon Sez IT
(https://www.simonsezit.com/)
ADVANCE YOUR CAREER
The result returned is the second largest value in the Price column.
Also read:
How to Password Protect an Excel File (https://www.simonsezit.com/article/how-to-password- protect-an-excel-file-2-effective-ways/)
How to Use the Excel IFS Function (https://www.simonsezit.com/article/excel-ifs-function/) How to Add Data Bars in Excel (https://www.simonsezit.com/article/add-data-bars-in-excel/)
Please visit our free resources (https://www.simonsezit.com/blog/) center for more high-quality Excel and Microsoft Suite application guides.
Ready to dive deep into Excel? Click here (https://www.simonsezit.com/course-category/excel/) for advanced Excel courses with in-depth training modules.
Simon Sez IT taught Excel and other business software for over ten years. You can access 150+ IT training courses (https://www.simonsezit.com/) for a low monthly fee.
ADVANCE YOUR CAREER
Gain instant access to 170+ courses. Earn a CERTIFICATE each time you complete a course.
TRY FOR FREE (HTTPS://SIMONSEZIT.
(https://www.simonsezit.com/course-category/excel/?
utm_source=Blog&utm_medium=Excel%20Excel%20Banner&utm_campaign=Excel%20Courses)
Deborah Ashby
Deborah Ashby is a TAP Accredited IT Trainer, specializing in the design, delivery, and facilitation of Microsoft courses both online and in the classroom.She has over 11 years of IT Training Experience and 24 years in the IT Industry. To date, she's trained over 10,000 people in the UK and overseas at companies
such as HMRC, the Metropolitan Police, Parliament, SKY, Microsoft, Kew Gardens, Norton Rose Fulbright LLP.She's a qualified MOS Master for 2010, 2013, and 2016 editions of Microsoft Office and is
COLF and TAP Accredited and a member of The British Learning Institute.
S I M I L A R P O S T S (https://www.simonsezit.com/article/how-to-
set-up-payroll-items-in-quickbooks-2018/) How to Setup Payroll Items in
QuickBooks 2018
(https://www.simonsezit.com/arti cle/how-to-set-up-payroll-items-
in-quickbooks-2018/)
(https://www.simonsezit.com/article/how-to- use-use-timed-slides-in-powerpoint-2013/)
How to Use Timed Slides for Your PowerPoint 2013 Presentation (https://www.simonsezit.com/arti cle/how-to-use-use-timed-slides-
in-powerpoint-2013/)
(https://www.simonsezit.com/article/using- statistical-functions-for-description-in-excel- 2013/)
How to use Statistical Functions in Excel 2013
(https://www.simonsezit.com/arti cle/using-statistical-functions- for-description-in-excel-2013/)
(https://www.simonsezit.com/article/excel-
Simon Sez IT
(https://www.simonsezit.com/)
ADVANCE YOUR CAREER
settings-and-preferences-in-microsoft-word- 2013/) Using Settings and Preferences in
Microsoft Word 2013
(https://www.simonsezit.com/arti cle/using-settings-and-
preferences-in-microsoft-word- 2013/)
use-excel-2010-pivot-t How to Use Ex
Tables and Ch (https://www.sim cle/how-to-use-e tables-p
COURSE CATEGORIES
Adobe (https://www.simonsezit.com/course-category/adobe/)
Data Analysis (https://www.simonsezit.com/course-category/data-analysis/) QuickBooks (https://www.simonsezit.com/course-category/quickbooks/) Microsoft (https://www.simonsezit.com/course-category/microsoft/)
Web Development (https://www.simonsezit.com/course-category/web-development/) Work Productivity (https://www.simonsezit.com/course-category/work-productivity/)
ABOUT US
About Us (https://www.simonsezit.com/about-us/) Blog (https://www.simonsezit.com/blog/)
ADVANCE YOUR CAREER
Gain instant access to 170+ courses. Earn a CERTIFICATE each time you complete a course.
TRY FOR FREE (HTTPS://SIMONSEZIT.
Become an Instructor (https://www.simonsezit.com/became-an-instructor/)
PRODUCTS
Pricing and Plans (https://www.simonsezit.com/signup/)
Teams Pricing (https://www.simonsezit.com/multi-user-business-training/) Government Discounts (https://www.simonsezit.com/government-discount/) Non-Profit Discounts (https://www.simonsezit.com/non-profit-discounts/)
SUPPORT
FAQ’s (https://www.simonsezit.com/faqs/)
Contact Us (https://www.simonsezit.com/contact-us/) DVD support (https://www.simonsezit.com/dvd-support/)
CONNECT
(ht tps://ww w.yo utub e.co m/us er/si mon sezit traini ng)
(ht tps://ww w.fac eboo k.co m/Si mon SezIT )
(ht tps://ww w.link edin.c om/
comp any/s imon -se z-it/)
© 2024 Simon Sez IT, Inc.
Terms (https://www.simonsezit.com/terms-and-conditions/) Privacy Policy (https://www.simonsezit.com/privacy/) Sitemap (https://www.simonsezit.com/sitemap_index.xml)
888.817.6665 (tel:888.817.6665) Monday thru Friday 7:30 a.m. - 5:00 p.m. (ET)
Simon Sez IT
(https://www.simonsezit.com/)
ADVANCE YOUR CAREER