A #VALUE! error in a SUMIFS function is almost always caused by a mismatch in the size or shape of the ranges selected. To fix it, ensure that the sum_range and every criteria_range are exactly the same size (same number of rows and columns) and refer to the same sheet if necessary. If the ranges are aligned but the error persists, check for non-numeric data in the sum_range or incorrect syntax in the criteria arguments.

What You'll Need

  • A Microsoft Excel workbook containing the data you wish to sum.
  • A basic understanding of cell references (e.g., A1:A10).
  • The SUMIFS function syntax: =SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...).

Step-by-Step

  1. Verify Range Dimensions: The most critical requirement for SUMIFS is that the sum_range and all criteria_range arguments must be the same size. If your sum_range is A2:A100, your first criteria_range must also be a range of 99 cells (e.g., B2:B100). If you accidentally select A2:A100 for the sum and B2:B101 for the criteria, Excel will return a #VALUE! error because it cannot map the 100th cell of one range to a corresponding cell in the other. Highlight each range in your formula and check the row numbers in the Name Box to ensure they match perfectly.
  2. Check for Full-Column References: If you are using entire columns (e.g., A:A), ensure every single argument in the formula uses the full column. Mixing a full column reference (A:A) with a specific range (B2:B100) will trigger the #VALUE! error. Either change all references to full columns or all to specific ranges.
  3. Audit the Sum Range for Non-Numeric Data: While SUMIFS generally ignores text within the sum_range, certain types of errors within those cells (like #REF! or #N/A) can propagate and cause the entire formula to fail. Scan your sum_range for existing error flags. If you find them, use the IFERROR function in the source data to clean those cells before attempting to sum them.
  4. Validate Criteria Syntax: Ensure your criteria are formatted correctly. If you are using a logical operator (like greater than or less than), the operator and the value must be enclosed in double quotes. For example, use ">10" or ">"&D1. If you simply type >10 without quotes, Excel may interpret the formula incorrectly, though this more often leads to a formula error than a #VALUE! error.
  5. Confirm Sheet Consistency: If your data is spread across multiple worksheets, ensure that the ranges are referencing the correct sheets. A common mistake is referencing a range on Sheet1 for the sum and a range on Sheet2 for the criteria without realizing the ranges are different sizes on those respective sheets. Always use the format SheetName!Range to be explicit.
  6. Test with a Simplified Formula: To isolate the problem, create a copy of your formula and remove all but one criteria pair. If the formula works with one criterion but fails with three, the error is located in one of the additional criteria ranges. Add them back one by one until the #VALUE! error reappears to identify the exact range causing the mismatch.

Common Mistakes

One of the most frequent mistakes is the "Off-by-One" error. This happens when a user selects a range starting at row 1 for the sum (A1:A100) but starts the criteria range at row 2 (B2:B100). Even though the number of cells is nearly the same, the ranges are not identical in size and position, which triggers the error.

Another mistake is attempting to use SUMIFS on a closed workbook that has been moved or renamed. While this often results in a #REF! error, in complex nested formulas, it can manifest as a #VALUE! error if the range reference becomes corrupted or defaults to a size that no longer matches the other arguments.

Users also frequently confuse SUMIF (singular) and SUMIFS (plural). In SUMIF, the sum_range is the last argument. In SUMIFS, the sum_range is the first argument. Swapping these positions will not always cause a #VALUE! error, but if the criteria_range is placed where the sum_range should be and contains text, the formula may behave unexpectedly or fail if the dimensions are mismatched.

Tips

To avoid range mismatches, use Excel Tables (Ctrl+T). When you use structured references (e.g., Table1[SalesAmount]), Excel automatically ensures that the ranges are the same height. You no longer have to worry about whether you selected row 100 or 101; the table reference always covers the entire column of the table regardless of how many rows are added or deleted.

When dealing with dates as criteria, avoid typing the date directly into the formula. Instead, put the date in a separate cell and reference that cell. This prevents syntax errors and makes it easier to see if the date is being recognized as a true date value or as text, which can affect the result of the sum.

Use the "Evaluate Formula" tool found under the Formulas tab > Formula Auditing. This allows you to step through the SUMIFS calculation one part at a time, showing you exactly which range or criteria argument is returning the #VALUE! result.

Troubleshooting

If you have verified that all ranges are the same size and the error persists, try the following steps in order:

  1. Clear Formatting: Sometimes "invisible" characters or strange formatting in the criteria cells can cause issues. Select your criteria cells and use the Clear Formats option.
  2. Check for Hidden Rows/Columns: Ensure you haven't accidentally included a hidden column in one range but not the other. This can happen when clicking and dragging to select a range.
  3. Convert Text-to-Numbers: If your sum_range looks like numbers but is actually stored as text, SUMIFS will typically treat them as zeros. However, if there are actual error values (like #VALUE!) inside the sum_range itself, the SUMIFS function will return that error. Use the =ISNUMBER() function on a few cells in your sum_range to confirm they are truly numeric.
  4. Restart Excel: In rare cases, a calculation glitch can occur in very large workbooks. Saving, closing, and reopening the file can force a recalculation of all ranges.

Frequently Asked Questions

Why does SUMIFS give a #VALUE! error when SUMIF works?

SUMIF is more lenient with range sizes; if the sum_range is a different size than the criteria_range, Excel will often "force" the sum_range to match the size of the criteria_range. SUMIFS does not do this; it requires an exact match in dimensions or it returns #VALUE!.

Can I use SUMIFS across different worksheets?

Yes, you can. However, you must ensure that the range on the second sheet is exactly the same size as the range on the first sheet. If Sheet1!A1:A10 is your sum_range, then Sheet2!B1:B10 must be your criteria_range.

Does the sum_range have to be a column?

Not necessarily, but it must match the shape of the criteria ranges. If your sum_range is a horizontal row (A1:Z1), then your criteria_range must also be a horizontal row of the same length (A2:Z2).

What if my criteria is a cell reference?

If your criteria is a cell reference (e.g., D1), you do not need quotes. If you are combining a cell reference with a logical operator, you must use the ampersand: ">"&D1. Failing to do this won't usually cause a #VALUE! error, but it will result in a sum of 0 because the criteria isn't being met.

Can I use wildcards in SUMIFS to avoid errors?

Wildcards like * (any sequence of characters) and ? (any single character) are useful for text criteria. They don't prevent #VALUE! errors (which are range-related), but they can help you find the correct data if you are getting 0 as a result when you expected a sum.