The SUMIFS function returns a #VALUE! error when one or more of its arguments are incorrectly structured — typically due to mismatched range sizes, invalid criteria formats, or non-numeric sum_range values. This error prevents Excel from calculating the sum of values meeting multiple conditions. The fix is usually straightforward once you identify the root cause.

What You'll Need

  • Microsoft Excel (2007 or later)
  • A properly organized data table with clearly defined columns for sum_range, criteria_range1, criteria1, etc.
  • Access to the worksheet containing the SUMIFS formula causing the error

Step-by-Step

  1. Locate the cell containing the SUMIFS formula that shows the #VALUE! error. Click on it to view the formula in the formula bar.
  2. Check that all ranges used in the formula — the sum_range and all criteria_ranges — have the same number of rows and columns. SUMIFS requires every range to be the same size. For example, if sum_range is A1:A100, then criteria_range1 must also be 100 rows tall, such as B1:B100. If one range is 50 rows and another is 100, Excel throws #VALUE!.
  3. Verify that the sum_range contains only numeric values. If any cell in the sum_range contains text, blank cells, or errors (like #N/A or #DIV/0!), SUMIFS will fail. Use the ISNUMBER function on each cell in the sum_range to test this: for example, enter =ISNUMBER(A1) in a helper column and drag it down. If any return FALSE, correct the data.
  4. Review each criteria argument. Criteria must be formatted correctly: numbers need no quotes (e.g., 5), text must be in double quotes (e.g., "Apples"), and logical operators like > or < must be wrapped in quotes when combined with numbers (e.g., ">100"). Avoid using wildcards like * or ? unless you’re searching text.
  5. Ensure you are not referencing entire columns (e.g., A:A) as criteria_ranges. While Excel allows this, it can cause performance issues and occasionally trigger #VALUE! in older versions or complex workbooks. Limit ranges to the actual data size (e.g., A1:A500).
  6. If your criteria include cell references, confirm those cells do not contain errors. For example, if your criteria is =D5 and D5 contains #N/A, the SUMIFS will fail. Use IFERROR or IF to validate those reference cells first.
  7. Rebuild the formula from scratch if needed. Select a blank cell, type =SUMIFS(, then use Excel's autocomplete and range selection tools to click and drag the correct ranges. This avoids typos and ensures Excel validates the structure as you build.
  8. After correcting the formula, press Enter. If the error persists, temporarily simplify the formula to one criteria_range to isolate the problematic part.

Common Mistakes

  • Using different-sized ranges for sum_range and criteria_range — the most frequent cause of #VALUE!.
  • Including text in the sum_range (e.g., "Total" as a label in the same column as sales figures).
  • Writing criteria like "=5" instead of 5 — the equals sign is unnecessary and can confuse Excel.
  • Accidentally referencing a merged cell or a range that includes merged cells, which disrupts row alignment.
  • Typing criteria with extra spaces (e.g., "Apples " instead of "Apples") — Excel treats these as different values.
  • Using SUMIFS with dynamic arrays that have spilled over into other cells, creating inconsistent range boundaries.

Tips

  • Always use absolute references (e.g., $A$1:$A$100) when copying SUMIFS formulas across rows or columns to prevent range drift.
  • Use named ranges for sum_range and criteria_ranges — they are easier to debug and reduce typos.
  • Before applying SUMIFS, filter your data manually and check the sum_range visually for non-numeric entries.
  • Test your criteria independently: use COUNTIFS with the same criteria_range and criteria to verify how many rows match before summing.
  • When using dates as criteria, use DATEVALUE() or cell references to date values rather than typing date strings like "1/1/2023" — Excel may misinterpret regional formats.
  • Enable Excel’s formula auditing: go to Formulas > Evaluate Formula to step through each part of your SUMIFS calculation and spot where it fails.

Troubleshooting

If the #VALUE! error persists after checking all ranges and criteria:

  1. Copy the entire data table into a new blank workbook and reapply the formula. This rules out workbook corruption or hidden formatting.
  2. Temporarily replace the sum_range with a column of known numbers (e.g., 1, 2, 3...) to test if the criteria are working. If SUMIFS returns a result, the issue is in the original sum_range data.
  3. Check for non-breaking spaces or Unicode characters in text criteria. Use =CLEAN() or =SUBSTITUTE() to clean text in your criteria_range.
  4. Update Excel to the latest version. Older builds had bugs with SUMIFS when handling arrays or mixed data types.
  5. If you’re using Excel for the web or mobile, switch to the desktop app — some functions behave differently or lack full support on lightweight versions.
  6. As a last resort, break the SUMIFS into multiple helper columns. For example, use one column to flag rows meeting each condition, then use SUMIF or SUM on the flags.

Frequently Asked Questions

Why does SUMIFS return #VALUE! even when all ranges look the same size?

Hidden merged cells, blank rows, or partial ranges can make the apparent size different from the actual range used. Select each range in the formula bar and look at the highlighted cells — if any selection skips rows or includes extra columns, that’s the issue.

Can I use SUMIFS with criteria from another sheet?

Yes, as long as the referenced ranges have the same dimensions as the sum_range. For example, =SUMIFS(Sheet2!A1:A100, Sheet1!B1:B100, "Yes") works if both ranges are 100 rows.

Does SUMIFS work with dates?

Yes, but criteria must be formatted correctly. Use cell references to date values or functions like DATE(2023,12,31). Avoid text strings like "12/31/2023" unless you’re certain of the system’s date format.

What if my sum_range includes formulas that return numbers?

That’s fine. SUMIFS evaluates the displayed result, not the formula. If a cell shows 500 due to =A1*B1, SUMIFS will treat it as 500 — as long as the result is numeric.

Can I use OR logic in SUMIFS?

No, SUMIFS uses AND logic by default. To sum based on OR conditions, use multiple SUMIFS functions added together, like =SUMIFS(A:A,B:B,"X") + SUMIFS(A:A,B:B,"Y").

Why does my SUMIFS work in one cell but not another?

Check if the cell references are relative and have shifted when copied. Use F4 to toggle absolute references ($A$1) or use named ranges for consistent behavior across the sheet.