TGViewer
Data Analyst Interview Resources Data Analyst Interview Resources @dataanalystinterview ยท 52.6K subscribers
Post #2455 1.01K
๐Ÿš€ 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")
  • โค 4
  • ๐Ÿฅฐ 1
More from @dataanalystinterview
  1. Oct 1, 2026๐Ÿ”ฅ Top 10 Theoretical Interview Questions Every Data Analyst Must Prepare ๐Ÿ“Š Data Analystโ€ฆ
  2. Sep 29, 2026๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐—ง๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐—”๐—œ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿš€ โ€‹ Explore 6 free resourceโ€ฆ
  3. Sep 29, 2026๐Ÿ“Š Tableau Learning Roadmap โ€” Part 2 Connecting to Data Before creating visualizations inโ€ฆ
  4. Sep 28, 2026This is useful when you want to guide someone through an analytical narrative. The Tableauโ€ฆ
  5. Sep 28, 2026๐Ÿ“Š Tableau Learning Roadmap โ€” Part 1 What is Tableau? Tableau is a Business Intelligence aโ€ฆ
  6. Sep 28, 2026๐ŸŽ“ ๐—›๐—”๐—ฅ๐—ฉ๐—”๐—ฅ๐—— ๐—จ๐—ก๐—œ๐—ฉ๐—˜๐—ฅ๐—ฆ๐—œ๐—ง๐—ฌ ๐—™๐—ฅ๐—˜๐—˜ ๐—ข๐—ก๐—Ÿ๐—œ๐—ก๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐Ÿ˜ Dreaming ofโ€ฆ
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 โ†’