ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Functions > Excel AGGREGATE Function

Excel AGGREGATE Function

How to Use the Excel AGGREGATE Function
Table of contents :
  • What is the Excel AGGREGATE Function?
  • AGGREGATE Syntax
  • How to Use AGGREGATE Function in Excel
  • AGGREGATE Example

Excel AGGREGATE Function

What is the Excel AGGREGATE Function?

The Excel AGGREGATE function returns an aggregate calculation from 19 available function with eight available options.

AGGREGATE Syntax

AGGREGATE(function_num, options, ref1, ref2)

function_num, required, a function to use (1-19).

options, required, which values to ignore (0-7)

ref1, required, the first numeric argument

ref1, optional, the second numeric argument (mandatory for function with k argument)

The Function to Use

The table below is a number 1-19 following the function name to use for function_num argument

How to Aggregate Data in Excel

Which Values to Ignore

Unlike the SUBTOTAL function which only has “Ignore/Include hidden value”, the AGGREGATE function has more options to ignore. There are eight choices for “which values to ignore”

What is AGGREGATE

How to Use AGGREGATE Function in Excel

SUM Only Visible Cells

For example, there is data as shown below. Columns A, B and C contain the same data; a different function will calculate data in each column.

Aggregate Example

The formula

The formula for column A

=SUM(A2:A6)

The formula for column B

=SUBTOTAL(109,B2:B6)

function_num=109, SUM function and ignores hidden values.

The formula for column C

=AGGREGATE(9,7,C2:C6)

Function_sum=9, SUM function

Options=7, Ignore hidden rows and error values

What are the results of the three functions if row 4 and 5 is hidden using the “Hide Rows” menu (/, H, O, U, R)

Aggregate SUM

The SUM function displays the same number and calculates the hidden values. The SUBTOTAL function and the AGGREGATE function ignore hidden values and return the different result from the SUM function.

Which one is better for “SUM Only Visible Cells”? It’s up to you, both return the same result, but the AGGREGATE function has more function than the SUBTOTAL function.

SUM with Error Value

With the same data and formula as the previous example.

What is the result if line 1 is changed to a divide by zero error?

Excel AGGREGATE

Only the AGGREGATE function can calculate data with errors. No other function has the “Ignore error values” option

There is another way to calculate data with errors. First by modifying the formula to prevent error or second using an array formula. For a more detailed explanation, read the article below

  • Excel Divide by Zero Error

AGGREGATE Example

Another article using or explain about AGGREGATE Function
  • Excel Divide by Zero Error

Another Math Function

Another article about Math Function
  • Excel SUBTOTAL Function
  • Excel AGGREGATE Function
  • Excel PRODUCT Function
  • Excel CONVERT Function
  • Excel SUMIFS Function
  • Excel SUMIF Function
  • Excel SUM Function
  • Excel SUMPRODUCT Function
  • Excel QUOTIENT Function
  • Excel MOD Function
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

Excel PRODUCT Function
What is the Excel PRODUCT Function? What does product mean …

Excel PRODUCT Function

Excel SUMPRODUCT Function
What is SUMPRODUCT Function? The SUMPRODUCT function multiplies corresponding ranges …

Excel SUMPRODUCT Function

Excel AVERAGEIF Function
What is the Excel AVERAGEIF Function? The Excel AVERAGEIF function …

Excel AVERAGEIF Function

Excel IFNA Function
What is the Excel IFNA Function? The Excel IFNA function …

Excel IFNA Function

Excel CHOOSE Function
What is the Excel CHOOSE Function? The excel CHOOSE function …

Excel CHOOSE Function

Tags:Aggregate Average Aggregate Count Aggregate Example Aggregate Formula in Excel Aggregate Sum Excel Aggregate Excel Aggregate Data How to Aggregate Data in Excel How to Aggregate in Excel How to Use Aggregate Function in Excel Math Function SUM Only Visible Cells What is Aggregate

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh