Compare SUBTOTAL vs AGGREGATE

2 vs

Compare SUBTOTAL vs AGGREGATE side-by-side — differences, popularity and recommendation

Presets: VLOOKUP vs XLOOKUP SUM vs SUMIFS INDEX vs MATCH vs XLOOKUP IF vs IFS vs SWITCH COUNT vs COUNTA vs COUNTIF AVERAGE vs AVERAGEIF vs AVERAGEIFS MAX vs LARGE vs MIN TEXT vs TEXTJOIN vs CONCAT FILTER vs SORT vs UNIQUE ROUND vs ROUNDUP vs ROUNDDOWN
All functions Pick at least 2 functions
Feature
Math & Trig
=SUBTOTAL()
Syntax
Math & Trig
=AGGREGATE()
★ Winner
Syntax
Category
Math & Trig math-trig
Math & Trig math-trig
Popularity
80 / 100
85 / 100
Views
◉ 70 views
◉ 69 views
Output
Number
Number
Version
All versions
Excel 2010
Volatile
No
No
Dynamic Array
No
No
Description
Returns a subtotal in a list or database. It is generally easier to create a list with subtotals by using the Subtotal command in the Outline group on the Data tab in the Excel desktop application. Once the subtotal list is created, you can modify it by editing the SUBTOTAL function.
The AGGREGATE function can apply different aggregate functions to a list or database with the option to ignore hidden rows and error values.
Syntax
=SUBTOTAL(function_num,ref1,[ref2],...)
=AGGREGATE(function_num, options, ref1, [ref2], …)
Arguments
3 Arguments
function_num ref1 ref2 (Optional)
4 Arguments
function_num options ref1 ref2
Examples
2
5
Tips
4
5

★ Recommendation — Winner: =AGGREGATE()

=AGGREGATE() is recommended based on higher popularity, newer version and Dynamic Array support.

Winner: =AGGREGATE()