๐ Excel Formulas โ Part 8
This part focuses on Advanced Calculation Functions โ useful for working with filtered data, multiple calculations, and large datasets.
1๏ธโฃ SUBTOTAL
Performs calculations while respecting filtered or hidden rows depending on the function number.
=SUBTOTAL(9,B2:B100)
Here, 9 means SUM.
Common function numbers:
1 โ AVERAGE
2 โ COUNT
3 โ COUNTA
9 โ SUM
4 โ MAX
5 โ MIN
๐ก Very useful when working with filtered tables.
2๏ธโฃ AGGREGATE
Performs calculations while allowing you to ignore errors, hidden rows, or nested subtotals.
=AGGREGATE(9,5,B2:B100)
Here:
9 โ SUM
5 โ Ignore hidden rows
It supports functions such as:
โข AVERAGE
โข COUNT
โข MAX
โข MIN
โข SUM
โข LARGE
โข SMALL
3๏ธโฃ SUMPRODUCT
Multiplies corresponding values and then adds the results.
=SUMPRODUCT(B2:B10,C2:C10)
Example:
Product Price Quantity
Laptop 50000 2
Mouse 800 5
Keyboard 1500 3
=SUMPRODUCT(B2:B4,C2:C4)
This calculates:
50000ร2 + 800ร5 + 1500ร3
Result โ 107,500
๐ก Extremely useful for weighted calculations and business analysis.
4๏ธโฃ LARGE
Returns the nth largest value.
=LARGE(B2:B10,1)
โ Largest value
=LARGE(B2:B10,2)
โ 2nd largest value
5๏ธโฃ SMALL
Returns the nth smallest value.
=SMALL(B2:B10,1)
โ Smallest value
=SMALL(B2:B10,2)
โ 2nd smallest value
6๏ธโฃ RANK.EQ
Returns the rank of a number within a dataset.
=RANK.EQ(B2,$B$2:$B$10,0)
0 โ Highest value gets rank 1
1 โ Lowest value gets rank 1
Example:
Sales = 95000
Rank โ 2
7๏ธโฃ SUMPRODUCT + Conditions
SUMPRODUCT can also perform conditional calculations.
=SUMPRODUCT((A2:A10="East")*(B2:B10))
This calculates the total of values in column B where the region is East.
๐ก Useful when you need flexible calculations without creating helper columns.
๐ง Quick Reference
SUBTOTAL โ Calculations that work well with filtered data
AGGREGATE โ Advanced calculations with options to ignore certain values
SUMPRODUCT โ Multiply and sum corresponding values
LARGE โ nth largest value
SMALL โ nth smallest value
RANK.EQ โ Rank values
SUMPRODUCT + Conditions โ Flexible conditional calculations
๐ก Practice
Using a sales dataset, try to calculate:
1.
Total visible sales โ SUBTOTAL
2.
Average visible sales โ SUBTOTAL
3.
Sum while ignoring hidden rows โ AGGREGATE
4.
Total revenue from Price ร Quantity โ SUMPRODUCT
5.
3rd highest sale โ LARGE
6.
2nd lowest sale โ SMALL
7.
Rank each salesperson โ RANK.EQ
8.
Total East-region sales โ SUMPRODUCT
๐ฅ Double Tap โค๏ธ For More
Post #2335
2.32K
- โค 11