TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.2K subscribers
Post #2149 2.36K
๐Ÿš€ Excel Formulas Fundamentals โ€” Part 10

๐Ÿ“Š Conditional Functions (SUMIF, SUMIFS, COUNTIF, COUNTIFS, AVERAGEIF, AVERAGEIFS, SUMPRODUCT)

Conditional functions allow you to calculate, count, or average data based on one or more conditions. They are among the most commonly used functions by Data Analysts, Financial Analysts, and Business Analysts.

๐Ÿ“Œ These functions are frequently asked in Excel interviews and used in business reporting.

๐Ÿง  1. SUMIF() โ€“ Sum Based on One Condition

SUMIF() adds values that meet a single condition.

Syntax:

=SUMIF(range, criteria, sum_range)

Example:

Data: East 50000, West 30000, East 40000

Formula: =SUMIF(A2:A4,"East",B2:B4)

Result: 90000

๐Ÿ“Œ Use Cases:

Total sales by region, Total expenses by category, Revenue by product

๐ŸŽฏ 2. SUMIFS() โ€“ Sum Based on Multiple Conditions

SUMIFS() adds values only when all conditions are met.

Syntax:

=SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2)

Example:

Data: East Laptop 50000, East Mobile 30000, West Laptop 45000

Formula: =SUMIFS(C2:C4,A2:A4,"East",B2:B4,"Laptop")

Result: 50000

๐Ÿ“Œ Commonly used in dashboards and business reports.

๐Ÿ”ข 3. COUNTIF() โ€“ Count Based on One Condition

Counts the number of cells that meet a condition.

Syntax:

=COUNTIF(range, criteria)

Example:

Status: Completed, Pending, Completed

Formula: =COUNTIF(A2:A4,"Completed")

Result: 2

๐Ÿ“Œ Use Cases:

Count completed tasks, Count active customers, Count employees in a department

๐Ÿ“‹ 4. COUNTIFS() โ€“ Count Based on Multiple Conditions

Counts records that satisfy multiple conditions.

Syntax:

=COUNTIFS(criteria_range1, criteria1, criteria_range2, criteria2)

Example:

Data: East Laptop, East Mobile, West Laptop

Formula: =COUNTIFS(A2:A4,"East",B2:B4,"Laptop")

Result: 1

๐Ÿ“ˆ 5. AVERAGEIF() โ€“ Average Based on One Condition

Calculates the average for values matching one condition.

Syntax:

=AVERAGEIF(range, criteria, average_range)

Example:

Data: East 50000, West 30000, East 40000

Formula: =AVERAGEIF(A2:A4,"East",B2:B4)

Result: 45000

๐Ÿ“Š 6. AVERAGEIFS() โ€“ Average Based on Multiple Conditions

Calculates the average when multiple conditions are satisfied.

Syntax:

=AVERAGEIFS(average_range, criteria_range1, criteria1, ...)

Example:

=AVERAGEIFS(C2:C5,A2:A5,"East",B2:B5,"Laptop")

๐Ÿ“Œ Useful for finding the average sales of a specific product in a specific region.

โšก 7. SUMPRODUCT() โ€“ Multiply and Sum Arrays

SUMPRODUCT() multiplies corresponding values in arrays and returns the sum.

Syntax:

=SUMPRODUCT(array1, array2)

Example:

Data: Quantity 2 Price 500, Quantity 3 Price 700, Quantity 1 Price 1000

Formula: =SUMPRODUCT(A2:A4,B2:B4)

Calculation: (2 ร— 500) + (3 ร— 700) + (1 ร— 1000) = 4100

Result: 4100

๐Ÿ“Œ Useful for weighted calculations and financial analysis.

๐Ÿข 8. Real-World Scenario โ€“ Sales Dashboard

Data: East Laptop 50000, East Mobile 30000, West Laptop 45000, West Mobile 25000

Total Sales in East

=SUMIF(A2:A5,"East",C2:C5)

Laptop Sales in West

=SUMIFS(C2:C5,A2:A5,"West",B2:B5,"Laptop")

Number of Mobile Orders

=COUNTIF(B2:B5,"Mobile")
  • โค 3
More from @excel_analyst
  1. Oct 13, 2026๐Ÿ“Š Excel Interview Questions โ€” Part 1 1๏ธโƒฃ What is the difference between VLOOKUP and XLOOKโ€ฆ
  2. Oct 13, 2026๐—ง๐—ข๐—ฃ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐—ง๐—ข ๐—•๐—ข๐—ข๐—ฆ๐—ง ๐—ฌ๐—ข๐—จ๐—ฅ ๐—ฆ๐—ž๐—œ๐—Ÿ๐—Ÿ๐—ฆ ๐—œ๐—ก ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! Explorโ€ฆ
  3. Oct 12, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 7 This part focuses on Paste Special, Go To Special & Advanced Pโ€ฆ
  4. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  5. Oct 10, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 6 This part focuses on Worksheet & Sheet Management shortcuts โ€”โ€ฆ
  6. Oct 9, 2026Hey guys, Today, Iโ€™m covering some Excel interview questions that often pop up in data anaโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’