SUMIF and SUMIFS in Excel – A Beginner’s Guide

In Excel, sometimes you don’t want to add all numbers.

You only want to add numbers that match a condition.

For example:

  • Total sales from East region only
  • Total marks greater than 70
  • Total salary for HR department

For this, Excel gives us two powerful functions:

  • SUMIF – Adds numbers with one condition
  • SUMIFS – Adds numbers with multiple conditions

This guide will explain both functions step by step with clear examples.

1. SUMIF Function – One Condition

The SUMIF function adds values based on a single condition.

 Formula:

=SUMIF(range, condition, [sum_range])

  • range – Cells you want to check
  •  condition – the rule to match (example: “East”, “>70”)
  • sum\_range (optional) – the cells to add (if different)

Example 1 – Add marks greater than 70:

StudentMarks
 Suresh78
 Dev65
 Kiran92

Formula:

=SUMIF(B2:B4, “>70”)

Excel checks column B and adds only numbers greater than 70.

Result → Adds the valid numbers → 78 + 92 = 170

SUMIF Example 1

Example 2 – Add sales from East region:

RegionMonthSales
EastJan5000
EastFeb3000
WestJan4000

Formula:

=SUMIF(A2:A4, “East”, C2:C4)

Excel checks column A for “East” and adds matching sales from column B.

Result → 8000 (5000 + 3000)

SUMIF Example 2

Pro Tip:

Use cell references instead of typing conditions directly. For example:

=SUMIF(A2:A4, “A2”, B2:B4) (if A2 contains “East”).

2. SUMIFS Function – Multiple Conditions

The SUMIFS function lets you add values that match more than one condition.

Formula:

=SUMIFS(sum_range, condition_range1, condition1, condition_range2, condition2, …)

  •  sum\_range → the numbers to add
  •  condition\_range1 → first range to check
  •  condition1 → first rule
  •  condition\_range2, condition2 → second rule, and so on

Example 1 – Add sales from East region in January

RegionMonthSales
EastJan5000
EastFeb3000
WestJan4000

Formula:

=SUMIFS(C2:C4, A2:A4, “East”, B2:B4, “Jan”)

Excel checks:

  •  Region = East
  •  Month = Jan
  • Result → 5000
SUMIFS Function Multiple Condition example 1

Example 2 – Add marks greater than 70 for Science subject:

StudentSubjectMarks
ArjunMath78
MeeraScience65
RahulScience92
ArjunScience85

Formula:

=SUMIFS(C2:C5, B2:B5, “Science”, C2:C5, “>70”)

Excel checks:

  •  Subject = Science
  •  Marks > 70
  • Result → 177 (92 + 85)
SUMIFS Function Multiple Condition example 1

Difference Between SUM and SUMIF and SUMIFS:

FunctionWhat it DoesExample
SUMAdds all numbers=SUM(A1:A10)
SUMIFAdds numbers with 1 condition=SUMIF(A1:A10, “>50”)
SUMIFSAdds numbers with many conditions=SUMIFS(C2:C10, A2:A10, “East”, B2:B10, “Jan”)

The SUMIF and SUMIFS functions are must-know tools for anyone working with Excel.

Start by practicing with one condition using SUMIF.

Then move to SUMIFS for multiple conditions.

The more you use them, the faster and smarter your Excel reports will become.

You can also combine them with Excel features like Tables, Filters, and Conditional Formatting for powerful reporting.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.