The AGGREGATE Function in Excel: Best 20 Functions

The Aggregate Excel Function: All You Need To Know

If you are learning Excel or already know some formulas, you must learn the benefits of the AGGREGATE function. Because no joke- but this function can apply one of 20 different functions to a cell range. And it is useful for many things. Such as finding the average of a range of cells as well as counting the number of cells with error values or max and min. values. So below, you can learn how to use the AGGREGATE function and some of the things it can do.

the AGGREGATE function

  1. The AGGREGATE function can apply functions such as SUM, AVERAGE, COUNT, MAX and MIN to a cell range or an entire column or row.
  2. You can use the AGGREGATE function to calculate measures. Such as standard deviation, variance, percentage change and more simple formulas like these.



Here are some of the functions that AGGREGATE can work for below:

  1. Average of values in a range.
  2. This finds the highest number, so you can easily identify the peak value in your data.
  3. Minimum of values in a range.
  4.  This adds everything up, giving you the total.
  5. How many cells contain numbers in a range.
  6. Also, how to count the number of cells withholding dates in a range.

excel aggregate function apply one of 20 different functions across a range of cells.

The AGGREGATE function is a great way to apply one of 20 different functions across a range of cells. This can be extremely helpful when trying to find the average, max or min. Also it works to find sum of a range.  You will simply select the cells you want to aggregate and then, you will type of function you would like to apply from the list.

These functions include sum, average, count, maximum, minimum and more. The syntax is as follows:

=AGGREGATE(value1, {function1}, {argument1}, {function2}, {argument2}, …)

excel aggregate formula

The following table provides a list of functions you can apply using the AGGREGATE command. The first column describes each function you use. The second column contains the syntax for applying each function.

Also, the syntax of the AGGREGATE function is as follows:

=AGGREGATE(function_num, ref, range)

In the above syntax:

The function_num argument must be an integer between 1 and 20. This represents which function will be applied to each cell in the range. While ref is the range of cells you will apply. And range is the range of cells that you will perform aggregate functions.

The AGGREGATE formula in Excel is super handy for All of Us.

It helps you find the average of a range of cells, count how many cells have error values and so much more.

The AGGREGATE Excel function is a great way to find averages of ranges of cells.

how do you aggregate data in excel (e.g., Average, Count, Max, Min) and the range of cells you want to apply it to.

To use AGGREGATE function for above example formulas, you need to specify the function you want to use (e. g., Average, Count, Max, Min). And as well as the range of cells you want to apply it to. For example, let’s say you have a worksheet with data on students’ test scores.

The AGGREGATE function in Excel is quite good for faster working style and offers several different functions. So that, you can use to perform various calculations. Here’s a breakdown of the different functions available within the AGGREGATE formula:

  • AVERAGE: This formula calculates the average of a range and it is ignoring errors and hidden rows if specified.
  • COUNT: It counts the number of cells that contain numeric values in a range while ignoring errors and hidden rows.
  • COUNTA: While this one counts the number of non-empty cells in a range.
  • MAX: And it returns the maximum value from a range while ignoring errors and hidden rows.
  • MIN: This returns the minimum value from a range again it is ignoring errors and hidden rows.

AGGREGATE can be used with built-in functions or custom functions written

So now, we will show you how to use the AGGREGATE function in Excel. This function is useful if you want to apply a built-in or custom functions to a range of cells.

Example: excel data aggregation

So what about writing an Aggregate/Addition function by yourself? Because when we learn it, we can perform operations such as Addition, Counting, Max and Min on columns containing error values ​​and hidden cells. This function has similar features to subtotals. But it can also operate with cell ranges containing error values unlike subtotals.

This function has two uses. Reference Format and Array format. Don’t worry about this part. Because you will already know which format you should use. We will clarify this part with the following examples.

how do you aggregate data in excel

Reference format: AGGREGATE (function_num; options; ref1; ref2 ; …)

AGREEMENT(function_num, options, ref1, [ref2],..)

Array format: AGGREGATE (function_num; options; array; k)

AGREEMENT(function_num, options, array, [k])

Here are the key entries:

Function_num: The code of the operation you want to perform.

Options: What should we ignore when making a transaction? (such as error values and hidden cells)

We will need to enter code numbers for both parts. And this will be listed in front of us as we write the formula. So let’s look at the use of the function through an example.

Example 1: What is the sum of the values ​​in the following cell range?

=Aggregate(9,6,A1:A9)

The Aggregate Excel Function: All You Need To Know
The Aggregate Excel Function: All You Need To Know



the AGGREGATE function Conclusion

To wrap things up, the SUM function really focuses on those conditional formatting bounds. When it comes to data bars, Icon Sets and Color Scales, they cannot show any conditional formatting if there are errors in the range.

Because functions like MIN, MAX and PERCENTILE cannot calculate if there’s an error in the calculation range. The same goes for LARGE, SMALL and STDEVP functions. So, they can mess with some conditional formatting rules for the same reasons. The good news is using SUM function helps since it ignores errors.

With the AGGREGATE function, you can use different aggregation functions on your list or database and you can choose to ignore hidden rows and error values.

Related posts


Leave a Comment