Yes, the SUMIFS function can return a #VALUE! error, and the most common cause is mismatched range sizes: the sum range and at least one criteria range must be exactly the same number of rows and columns. The second most common cause is using SUMIFS with an array that includes a different number of elements than the criteria arrays. The fix is usually to ensure all ranges are identical in size and shape, and to avoid using entire columns in older Excel versions where array formulas are not dynamic. Below is a step-by-step guide to diagnose and fix the error.

What You'll Need

  • A spreadsheet with the data you are trying to sum (e.g., sales amounts, quantities).
  • Criteria ranges (e.g., dates, product names, regions) that correspond to the sum range.
  • Access to the formula bar and the ability to edit the formula.
  • Basic understanding of Excel or Google Sheets (the steps are similar in both).

Step-by-Step

  1. Identify the formula that returns #VALUE!. Click on the cell with the error. The formula bar will show the SUMIFS formula. For example: =SUMIFS(C2:C100, A2:A100, "Product A", B2:B100, "North"). Note the ranges used.
  2. Check the range sizes. The sum range (C2:C100) and each criteria range (A2:A100, B2:B100) must have the same number of rows and columns. In this example, all are 99 rows (rows 2 to 100). If one is C2:C99 (98 rows) and another is A2:A100 (99 rows), you get #VALUE!. Adjust the ranges so they are identical in size. The easiest way is to select the entire block of data (e.g., A2:C100) and then use that same row count for each range.
  3. Check for merged cells. Merged cells in any of the ranges can cause #VALUE! because Excel treats merged cells as a single cell but the range size may be ambiguous. Unmerge any merged cells in the sum range or criteria ranges, or adjust the ranges to avoid merged areas.
  4. Check for array formulas. In older Excel versions (pre-365), SUMIFS does not handle array constants well. If you are using an array constant like {1,2,3} as a criteria, replace it with a range reference or use SUMPRODUCT instead. In Excel 365 and Google Sheets, dynamic arrays are supported, but if you are on an older version, avoid array constants.
  5. Check for text vs. number mismatches. If your sum range contains text values (e.g., "$100" instead of 100), SUMIFS may return #VALUE!. Convert text to numbers using the VALUE function or by formatting the cells as numbers. Also, ensure criteria that are numbers are not stored as text (e.g., "123" instead of 123).
  6. Check for errors in the criteria ranges. If any cell in a criteria range contains an error like #N/A or #DIV/0!, SUMIFS will propagate that error as #VALUE!. Fix the source errors or use IFERROR to handle them.
  7. Use the Evaluate Formula tool. In Excel, go to Formulas > Evaluate Formula to step through the calculation and see exactly where the error occurs. This can pinpoint which range or criteria is causing the issue.
  8. Test with a simple case. Temporarily change the formula to =SUMIFS(C2:C100, A2:A100, "*") (using a wildcard that matches everything) to see if the error persists. If it does, the problem is with the ranges themselves. If it doesn't, the issue is with the criteria.
  9. Consider using SUMPRODUCT as a workaround. If you cannot fix the range sizes, use SUMPRODUCT with the same logic: =SUMPRODUCT((A2:A100="Product A")*(B2:B100="North")*C2:C100). This function handles arrays more flexibly, but be aware that it may treat text as zero.

Common Mistakes

  • Mismatched range sizes: The most common mistake. Always verify that the sum range and each criteria range have the exact same number of rows and columns.
  • Using entire columns (e.g., C:C) with other ranges that are not entire columns: This causes a size mismatch. If you use C:C, then all criteria ranges must also be entire columns (A:A, B:B).
  • Including header rows in one range but not another: For example, sum range is C2:C100 but criteria range is A1:A100 (includes the header). This shifts the alignment and can cause #VALUE!.
  • Using SUMIFS with multiple criteria on the same column incorrectly: For example, trying to sum values where column A is both "Product A" and "Product B" using =SUMIFS(C:C, A:A, "Product A", A:A, "Product B") will return 0, but not #VALUE!. To sum multiple criteria on the same column, use two SUMIFS formulas added together.
  • Forgetting to lock ranges when copying: If you copy the formula down, relative references change. Use absolute references (e.g., $C$2:$C$100) to keep ranges fixed.

Tips

  • Use named ranges: Define names for your data ranges (e.g., SalesAmount, Product, Region) to avoid mistakes and make formulas easier to read.
  • Keep ranges small and specific: Instead of using C:C, use C2:C1000 to avoid performance issues and potential size mismatches.
  • Use wildcards for partial matches: For text criteria, use "*" for any characters, "?" for a single character, and "~" to escape wildcards. For example, "*Apple*" matches any cell containing "Apple".
  • Convert data to a table: Using Excel Tables (Insert > Table) allows structured references like Table1[Amount], which automatically adjust and reduce errors.
  • Check for hidden characters: Sometimes imported data has non-breaking spaces or other invisible characters. Use the CLEAN and TRIM functions to clean data before applying SUMIFS.

Troubleshooting

If you've checked the range sizes and criteria and still get #VALUE!, try the following in order:

  1. Restart Excel or Google Sheets: Sometimes a temporary glitch can cause errors. Save your work and restart the application.
  2. Check for circular references: If your formula references a cell that depends on the formula itself, Excel may return #VALUE!. Look for circular references in the formula or in the criteria ranges.
  3. Verify that all criteria ranges are contiguous: Non-contiguous ranges (e.g., A2:A100 and C2:C100 with a gap) are allowed, but they must be the same size. If you have disjoint ranges, consider using SUMPRODUCT.
  4. Check for special characters in criteria: If you are using a cell reference for the criteria, ensure that cell does not contain a leading apostrophe or extra spaces. Use TRIM on the criteria cell.
  5. Use the IFERROR function to temporarily hide the error: Wrap your formula with IFERROR to see if the error is intermittent: =IFERROR(SUMIFS(...), "Check ranges"). This helps identify if the error is constant or conditional.
  6. If all else fails, recreate the formula from scratch: Delete the formula and re-enter it using the mouse to select ranges, which reduces the chance of typos.

Frequently Asked Questions

Why does SUMIFS return #VALUE! when I use a date criteria?

Dates are stored as numbers in Excel. If your criteria range contains dates as text (e.g., "2023-01-01" instead of a date), the comparison fails and can cause #VALUE!. Use the DATE function or ensure the criteria cell is formatted as a date.

Can SUMIFS handle multiple columns in the sum range?

Yes, but the sum range can be multiple columns (e.g., C2:D100) as long as all criteria ranges have the same number of rows and columns. However, if you use multiple columns, the criteria ranges must also be that many columns wide, which is unusual. Typically, you would use SUMPRODUCT for such cases.

Does SUMIFS work in Google Sheets?

Yes, SUMIFS works in Google Sheets with the same syntax. The error causes are similar, but Google Sheets is more forgiving with array constants. If you get #VALUE! in Google Sheets, the range size mismatch is still the most likely cause.

What is the difference between SUMIF and SUMIFS?

SUMIF adds values based on a single criterion, while SUMIFS can use multiple criteria. The argument order is different: SUMIFS puts the sum range first, while SUMIF puts the criteria range first. Also, SUMIFS requires all criteria ranges to be the same size as the sum range.

Why does my SUMIFS formula return 0 instead of #VALUE!?

A 0 result means the formula is syntactically correct but no cells match the criteria. Check for typos in criteria, case sensitivity (SUMIFS is not case-sensitive), or that the criteria ranges actually contain the values you expect.

Can I use SUMIFS with wildcards for numbers?

No, wildcards only work with text. For numbers, you need to use comparison operators like ">=10" or "<100". For example, =SUMIFS(C:C, B:B, ">=10") sums values where column B is 10 or greater.