Smart Systems for Home

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

How to Use SUMIFS in Excel: Step-by-Step Guide

· 6 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

SUMIFS adds up numbers in a range only when one or more conditions are met in other ranges. It is the multi-condition version of SUMIF, and it works in Excel 2007 and later on Windows and Mac, plus Excel for the web. To use it, you need a table with a numeric column to sum and at least one criteria column; then type =SUMIFS(sum_range, criteria_range1, criteria1, ...) and fill in the arguments. The rest of this guide walks through the syntax, worked examples, common errors and fixes.

What You'll Need

  • Excel 2007 or newer (Windows or Mac) or Excel for the web. The function is not available in Excel 2003 or earlier.
  • A worksheet with a numeric column (the values to add) and one or more columns you can filter on, such as Region, Product, Salesperson or Date.
  • Consistent data: no blank rows inside the table, no text stored as numbers in the sum column, and dates entered as real dates rather than text.

Step-by-Step

  1. Lay out your data as a clean table. Put headers in row 1 and data below, with one record per row. For example: A1 Date, B1 Region, C1 Product, D1 Salesperson, E1 Amount. Avoid merged cells and totals rows inside the data range.
  2. Pick a cell for the result and type =SUMIFS(. Excel will show the argument names as a tooltip.
  3. Enter the sum_range first. This is the column of numbers to add, for example E2:E100. Unlike SUMIF, SUMIFS puts the sum range first, which is the most common source of confusion.
  4. Add the first criteria range and criteria. Type a comma, then the range to test, for example B2:B100, then a comma and the condition in quotes, for example "North". The criteria range must be the same size as the sum range.
  5. Add more criteria pairs as needed. Each pair is a range plus a condition. For two conditions: =SUMIFS(E2:E100, B2:B100, "North", C2:C100, "Widget"). You can use up to 127 pairs.
  6. Close the bracket and press Enter. The result is the total of Amount where Region is North and Product is Widget.
  7. Use cell references instead of typed text so the formula updates when criteria change. Put North in G1 and Widget in G2, then use =SUMIFS(E2:E100, B2:B100, G1, C2:C100, G2).
  8. Add comparison operators inside quotes. For amounts over 500: =SUMIFS(E2:E100, E2:E100, ">500"). For dates after 1 Jan 2024: =SUMIFS(E2:E100, A2:A100, ">="&DATE(2024,1,1)). Note the ampersand joins the operator to the date function.
  9. Use wildcards for partial text. An asterisk matches any number of characters, a question mark matches one. "North*" matches North, Northeast and Northampton. To find a literal asterisk, precede it with a tilde: "~*".
  10. Lock the ranges with absolute references (for example $E$2:$E$100) before copying the formula down or across, so the ranges do not shift.
  11. Test with a small sample. Filter the data manually to the same conditions and compare the subtotal in the status bar with your SUMIFS result. They should match.

Common Mistakes

  • Putting the sum range last. SUMIFS requires sum_range first; SUMIF requires it last. Mixing them returns wrong totals or a #VALUE! error.
  • Mismatched range sizes. If sum_range is E2:E100 but criteria_range1 is B2:B50, Excel returns #VALUE!. All ranges must be the same height and width.
  • Forgetting quotes around text and operators. "North" and ">500" need quotes; a cell reference like G1 does not.
  • Dates stored as text. If dates are left-aligned in the cell, they are probably text, and date criteria will not match. Convert them with Date > Text to Columns or by re-entering them.
  • Numbers stored as text. A green triangle in the corner of a cell usually means the number is text. SUMIFS will ignore it. Convert with Value or by multiplying by 1 in a helper column.
  • Trailing spaces in criteria. "North " does not match "North". Trim the data or use TRIM() in a helper column.
  • Using entire-column references carelessly. E:E works but can slow large workbooks; prefer bounded ranges or Excel Tables.

Tips

  • Convert your range to an Excel Table (Insert > Table) and use structured references such as Table1[Amount]. The formula then expands automatically as rows are added.
  • Use a helper cell for the operator and value, for example ">"&H1, so users can change the threshold without editing the formula.
  • For multiple OR conditions on the same column, add several SUMIFS together: one for North, one for South, and so on. SUMIFS itself combines conditions with AND.
  • Press F4 while editing a range reference to cycle through absolute and relative forms quickly.
  • Use the Evaluate Formula tool (Formulas > Evaluate Formula) to step through a formula that returns an unexpected result.

Troubleshooting

  • #VALUE! error: check that all ranges are the same size and that you have not missed a comma between a range and its criteria.
  • Result is 0 when you expect a total: confirm the criteria match exactly (case does not matter, but spaces and spelling do), check that the sum column contains real numbers, and verify that dates are real dates. Also check whether the criteria cell contains a leading apostrophe.
  • Result is too high: look for duplicate rows, or criteria that are broader than intended, such as "North*" matching more than North.
  • Formula returns #NAME?: the function name is misspelled, or you are using an Excel version older than 2007. SUMIFS is not available there; use SUMPRODUCT as an alternative.
  • Formula breaks when copied: the ranges were not locked with dollar signs. Edit the original formula and press F4 on each range.
  • Criteria reference points to an empty cell: SUMIFS treats an empty criterion as 0, which can produce unexpected totals. Wrap the formula in IF to handle blanks.

Frequently Asked Questions

What is the difference between SUMIF and SUMIFS?

SUMIF handles one condition and puts the sum range last. SUMIFS handles one or more conditions and puts the sum range first. SUMIFS can do everything SUMIF can, so many people use it exclusively.

Can SUMIFS use OR logic?

Not directly. SUMIFS combines conditions with AND. For OR, add separate SUMIFS formulas together or use SUMPRODUCT with Boolean arrays.

Does SUMIFS work with dates?

Yes, provided the dates are stored as real dates. Use operators in quotes, such as ">="&DATE(2024,1,1), or reference a cell containing a date.

Why does my SUMIFS return 0 for text criteria?

The most common causes are trailing spaces, mismatched case-sensitive text (SUMIFS is not case-sensitive, so case is rarely the issue), or criteria typed without quotes. Check for hidden characters with the LEN function.

Can I use SUMIFS across multiple sheets?

Yes. Reference ranges on other sheets with the sheet name, for example Sheet2!E2:E100. All referenced ranges must still be the same size.

Is SUMIFS available in Excel for the web and Google Sheets?

Yes, SUMIFS works in Excel for the web and in Google Sheets with the same argument order. Menu labels may differ slightly between versions and platforms.