ExcelReady
CourseFunction guidesPricing
Plan my prepStart freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Plan my prep

Product

  • Pricing
  • Certificate
  • Brand kit

Company

  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

Function guides / SUMIFS

The SUMIFS function in Excel

SUMIFS adds up numbers for the rows where all of your conditions are true, like revenue for the Leeds warehouse in the Garden line, or February units from Bristol. It's the workhorse behind most summary tables in finance and operations, and the function interviewers expect when a question has more than one "where".

Syntax

=SUMIFS(sum_range, criteria_range1, criteria1, ...)
sum_rangeThe cells to add. Note it comes first, unlike in SUMIF.
criteria_range1The first range to test.
criteria1The condition for criteria_range1, like "Leeds" or ">=80".
criteria_range2, criteria2, ...Optional. More range and condition pairs. Every range must be the same size as sum_range.

Try it yourself

This is a live spreadsheet. Type the formula and press Enter.

In E2, use SUMIFS to total the ad Spend for the Social channel in Mar.

fx
ABCDEFG
1
Channel
Month
Spend
Social, March
2
Social
Feb
1450
3
Search
Mar
2300
4
Social
Mar
1720
5
Email
Mar
400
6
Social
Mar
860
7
Search
Feb
2150
8
Email
Feb
380
9
10
11

Tip: Start with the Spend column, then add one condition pair for Channel and one for Month.

Examples

=SUMIFS(E2:E9,A2:A9,"Leeds",C2:C9,"Garden")→ 7800

Adds revenue for rows where the warehouse is Leeds and the product line is Garden.

=SUMIFS(D2:D9,B2:B9,"Feb",A2:A9,"Bristol")→ 170

Switches the sum range to Units: total February units shipped from Bristol.

=SUMIFS(E2:E9,D2:D9,">=80",D2:D9,"<=120")→ 13750

Tests the same column twice to add revenue only for shipments of 80 to 120 units.

Example data

1WarehouseMonthLineUnitsRevenue
2LeedsJanGarden1203600
3LeedsJanKitchen804000
4BristolJanGarden952850
5LeedsFebGarden1404200
6BristolFebKitchen603000
7BristolFebGarden1103300
8LeedsFebKitchen753750
9BristolJanKitchen502500

Common mistakes

  • Sum range in the wrong place

    SUMIFS starts with the cells to add: SUMIFS(E2:E9, ...). Copying the SUMIF habit of putting it last gives wrong totals or #VALUE!.

  • Ranges of different sizes

    If sum_range is E2:E9, every criteria range must also cover rows 2 to 9, or Excel returns #VALUE!.

  • Expecting OR between conditions

    All conditions must be true at once. For Leeds or Bristol, add two SUMIFS together.

  • Totals come back as 0

    Usually a condition doesn't match anything: a typo, a trailing space, or a number stored as text in the sum range. Test each condition on its own with COUNTIFS.

FAQ

How do I use SUMIFS with dates between two values?+

Use the date column twice with ">="&start and "<="&end, for example =SUMIFS(C2:C50,A2:A50,">="&F1,A2:A50,"<="&F2).

Can SUMIFS use OR logic?+

Not within one formula. Add one SUMIFS per alternative, like SUMIFS(...,"Leeds")+SUMIFS(...,"Bristol").

Should I use SUMIF or SUMIFS?+

SUMIFS works for one condition too, so many analysts use it everywhere to avoid remembering two argument orders.

Lesson

Master SUMIFS step by step: COUNTIFS and SUMIFS

Count and sum with several conditions at once, and learn why SUMIFS puts the sum range first.

Related functions

SUMIFCOUNTIFSSUM