Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Create a SUMIFS Formula in Excel: Step by Step

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The SUMIFS formula in Excel adds up numbers in one column only when the values in other columns meet conditions you specify. For example, you can total all sales where the region is "North" and the month is "March". The basic pattern is =SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2, ...), and it takes only a few minutes to set up once you understand what each part means.

You need a spreadsheet where your data is organised in columns with a header row, and Excel on desktop or the web. SUMIFS works identically in Excel for Microsoft 365, Excel 2019, Excel 2016 and Excel for the web.

What You'll Need

  • A spreadsheet with data arranged in columns, ideally with headers in row 1 (for example: Date, Region, Salesperson, Amount)
  • Excel on desktop or Excel for the web
  • A cell where you want the total to appear

Step-by-Step

  1. Identify your sum range: the column of numbers you want to add up. In a typical sales sheet this is the Amount column, for example C2:C100. Note that SUMIFS puts the sum range first, unlike the older SUMIF function.

  2. Identify your criteria range: the column that must match a condition, such as the Region column A2:A100, and the criterion itself, such as the text "North" or a cell reference like E1.

  3. Click the cell where you want the result to appear.

  4. Type the formula using this structure: =SUMIFS(C2:C100, A2:A100, "North") and press Enter. This adds every amount in column C where column A says North.

  5. To add more conditions, extend the formula with more range/criterion pairs. For example: =SUMIFS(C2:C100, A2:A100, "North", B2:B100, "March") totals North region sales where column B is March. You can use up to 127 pairs.

  6. Press Enter. Excel calculates the total instantly and recalculates automatically whenever the underlying data changes.

  7. Optional: replace typed criteria with cell references so you can change them without editing the formula, for example =SUMIFS(C2:C100, A2:A100, E1, B2:B100, E2) where E1 contains North and E2 contains March.

  8. Optional: use comparison operators in quotes for numeric conditions, such as ">1000" to sum amounts over 1000, or ">="&DATE(2024,1,1) to sum from a certain date onwards.

Common Mistakes

  • Putting the sum range last. SUMIF takes the sum range at the end; SUMIFS takes it first. Mixing them up gives a wrong result or an error.
  • Ranges of different sizes. Every range in a SUMIFS must cover the same number of rows. If the sum range is C2:C100, every criteria range must also be rows 2 to 100, otherwise Excel returns a #VALUE! error.
  • Forgetting quotes around text criteria. =SUMIFS(C2:C100, A2:A100, North) fails because Excel reads North as a name. Text needs double quotes: "North".
  • Extra spaces in your data. "North " with a trailing space will not match "North". Use TRIM to clean the source data if matches are being missed.
  • Numbers stored as text. If your Amount column contains text values that look like numbers, SUMIFS ignores them and the total comes out low or zero.
  • Full-column references with messy data. Using C:C is allowed, but make sure the header text and any totals row in that column don't interfere with results.

Tips

  • Use wildcards in text criteria: "*son" matches any text ending in son, and "?" matches any single character.
  • Reference criteria cells rather than hard-coding values; this turns one formula into a flexible report.
  • Use "<>" to exclude a value, for example sum everything where Region is not North.
  • Use "" as a criterion to sum rows where a cell is blank, and "<>" for non-blank cells.
  • For criteria stored in a cell that includes an operator, combine them with an ampersand: =SUMIFS(C2:C100, C2:C100, ">"&E1) sums amounts greater than the number in E1.
  • If you need OR logic (North OR South), SUMIFS cannot do it in one formula; add two SUMIFS together instead, or use SUM with a different approach.

Troubleshooting

  • Result is 0 but should not be: check for extra spaces, mismatched capitalisation is usually fine but spelling is not, and confirm your numbers are true numbers (look for left-aligned values, which indicate text). Select the cells and check for a warning triangle offering Convert to Number.
  • #VALUE! error: your ranges are different sizes. Make the sum range and all criteria ranges identical in length.
  • #NAME? error: you likely misspelled the function name or left quotes off a text criterion.
  • Formula shows as text in the cell: the cell is probably formatted as Text. Change the cell format to General (Home > Number > General), then re-enter the formula.
  • Wrong total: double-check you did not include a totals row in your ranges, and verify each criterion against the actual cell contents using Find (Ctrl+F).

Frequently Asked Questions

What is the difference between SUMIF and SUMIFS?

SUMIF allows only one condition and puts the sum range last. SUMIFS allows up to 127 conditions and puts the sum range first. For a single condition both work, but SUMIFS is the more flexible habit to build.

Can SUMIFS use OR logic?

Not directly. Every condition in a SUMIFS is AND logic, meaning all must be true. For OR conditions, add two SUMIFS formulas together, one per alternative value.

Can SUMIFS criteria reference another cell?

Yes. Replace the quoted text with a cell reference, such as =SUMIFS(C2:C100, A2:A100, E1). If you need an operator plus a cell, join them: ">"&E1.

Does SUMIFS work with dates?

Yes. Use criteria such as ">="&DATE(2024,1,1) and "<="&DATE(2024,12,31) to sum values between two dates. Make sure your date column contains real Excel dates, not text.

Is SUMIFS case-sensitive?

No. "north" and "North" are treated as the same criterion. If you need case-sensitive summing, SUMIFS alone cannot do it; you would need an array formula with EXACT instead.