Excel of Data Analytics, Basic Functions and Formulas_Part 1
Excel of Data Analytics, Basic Functions and Formulas_Part 1
formulas (Part 1)
1. SUM Function
Definition:
The SUM function is used to add up a range of numbers in Excel. It is one of the most frequently
used functions for performing quick calculations.
Syntax:
excel
=SUM(number1, number2, …)
or
=SUM(range)
Example:
=SUM(A1:A5)
2. AVERAGE Function
Definition:
The AVERAGE function calculates the mean (arithmetic average) of a set of numbers.
Syntax:
=AVERAGE(number1, number2, …)
=AVERAGE(range)
Output: 30 → (10+20+30+40+50) / 5
=AVERAGE(A1:A5)
3. MIN Function
Definition:
The MIN function returns the smallest value from a list or range of numbers.
Syntax:
=MIN(number1, number2, …)
or
=MIN(range)
Example:
The MAX function returns the largest value from a list or range of numbers.
Syntax:
=MAX(number1, number2, …)
or
=MAX(range)
Example:
=MAX(10, 5, 20, 3, 15)
5. COUNT Function
Definition:
Syntax:
=COUNT(range)
Example:
=COUNT(A1:A5)
Output: 3 (Only counts numbers: 10, 20, and 50)
6. COUNTA Function
Definition:
The COUNTA function counts all non-empty cells, including numbers, text, and special characters.
Syntax:
=COUNTA(range)
Example:
=COUNTA(A1:A5)
7. COUNTIF Function
Definition:
The COUNTIF function counts the number of cells that meet a specified condition.
Syntax:
=COUNTIF(range, criteria)
Example:
=COUNTIF(A1:A10, ">50")
If the numbers in A1:A10 are {10, 60, 75, 40, 90, 30, 50, 20, 85, 100}, the result is 5
(as five numbers are greater than 50).
=COUNTIF(A1:A10, "Passed")
8. SUMIF Function
Definition:
Syntax:
=SUMIF(range, criteria, sum_range)
Example:
Sums values from B1:B10 only where corresponding values in A1:A10 are greater than 50.
9. AVERAGEIF Function
Definition:
The AVERAGEIF function calculates the average of values that meet a specified condition.
Syntax:
=AVERAGEIF(range, criteria, average_range)
Example:
Averages values from B1:B10 only where A1:A10 has values greater than 5000.
Averages sales in B1:B10 only for rows where A1:A10 contains "Electronics".
Conclusion
These functions are essential for data analysis, reporting, and decision-making in Excel.