A #SPILL! error on a SUMIFS formula in Excel means the formula is trying to return multiple results but something is blocking the cells it needs. In most cases you accidentally fed SUMIFS a range of criteria (for example a whole column of lookup values), turning it into a spilled array formula, and the spill range is obstructed by data, a merged cell, or a table edge. The fix is either to clear the obstruction or lock the formula down to a single result with an implicit intersection operator. Here is how to diagnose and fix it step by step.
What You'll Need
- Excel for Microsoft 365 or Excel 2021 (spill behavior and the #SPILL! error only exist in versions with dynamic arrays)
- A workbook containing the failing SUMIFS formula
- A few minutes to inspect the cells around the formula
Step-by-Step
Select the cell showing #SPILL!. Excel draws a dashed border around the intended spill range. Look at what that border covers — that tells you how many results the formula wants to return.
Hover over the warning icon that appears next to the cell (or click it). The tooltip tells you the exact cause: "Spill range isn't blank," "Merged cells," or similar. This determines which fix below applies.
If the message says the spill range isn't blank: delete or move the data sitting inside the dashed border. Even an invisible space character or a formula returning "" counts as content. The error clears as soon as the range is empty.
If the cause is a merged cell, unmerge it: select the merged cell, then go to Home > Merge & Center to toggle it off. Array formulas cannot spill into merged cells.
If the spill would run off the edge of the worksheet or into a table, move the formula to a location with enough empty cells below it. Spills only go downward for a vertical criteria range.
If you only wanted a single value, the real problem is that you gave SUMIFS a multi-cell criteria argument, such as
SUMIFS(C:C,A:A,E2:E10). To force a single result per cell, add the implicit intersection operator:=SUMIFS(C:C,A:A,@E2:E10)or point the criteria at one cell only, e.g.SUMIFS(C:C,A:A,E2).If you do want multiple results, keep the array version in one cell and let it spill:
=SUMIFS(C:C,A:A,E2:E10)placed in a single cell returns one total per criterion automatically. Do not copy that formula down a column — the copy below will collide with the spill above and cause the very error you are fixing.Press Enter and confirm the dashed spill border appears and results fill the range with no error.
Menu labels can differ slightly between Excel versions and between Windows, Mac and Excel for the web, but the spill behavior and error messages are the same.
Common Mistakes
- Copying an array-style SUMIFS (
SUMIFS(sum_range, criteria_range, E2:E10)) down multiple cells, so each copy tries to spill into the one below. Enter it once. - Forgetting that "" returned by another formula still blocks a spill range — the cell looks empty but isn't.
- Using the @ operator without understanding it:
@returns only the value on the same row, so results may differ from what you expected on other rows. - Trying to spill inside or across an Excel Table — dynamic array formulas cannot spill within a table's calculated columns properly.
- Confusing #SPILL! with #VALUE!: #VALUE! from SUMIFS usually means mismatched range sizes, not a blocked spill.
Tips
- Click any cell inside the dashed border and the formula bar shows the same formula in gray — a quick way to confirm you are looking at one spilled formula, not many.
- Keep spill areas free of formatting-heavy content; formatting alone (colors, borders) does not block a spill, but merged cells always do.
- If you convert a spilled formula to a Table later, move it out first — Tables and spilling arrays do not mix.
- Use F9 in the formula bar on a criteria argument to preview how many values it evaluates to; more than one means the formula will try to spill.
Troubleshooting
If the error persists after clearing the visible cells, check for hidden rows or columns inside the spill range, and for cells containing a lone apostrophe or a space — use Ctrl+End or click each cell in the dashed border and check the formula bar. If the tooltip mentions a table, delete the formula from the Table and place it in a regular cell outside the table boundary. If you inherited the workbook from someone on an older Excel version, the original formula may have been entered with Ctrl+Shift+Enter; in Microsoft 365 re-enter it with plain Enter, since legacy CSE entry can conflict with spilling. As a last resort, rewrite the formula pointing each criteria argument at a single cell so no spill is required at all.
Frequently Asked Questions
Why does SUMIFS spill at all? It returns one number.
It returns one number per criterion. If any criteria argument is a range of values instead of a single cell or value, SUMIFS returns an array of results, and in modern Excel that array spills into adjacent cells.
What does the @ symbol do in front of a range?
The @ (implicit intersection operator) restricts a range to the single value on the formula's own row, forcing a one-cell result and preventing any spill.
Does #SPILL! happen in older Excel versions?
No. Before dynamic arrays, the same formula would either show one result or need Ctrl+Shift+Enter. #SPILL! only appears in Microsoft 365 and Excel 2021 or later.
Can I stop Excel from spilling entirely?
There is no setting to disable dynamic arrays. Control spilling per formula with the @ operator or single-cell criteria references.
Why does clearing the cells not fix it?
Something invisible usually remains: a formula returning "", a space character, a merged cell, or a hidden row within the spill range. Inspect every cell inside the dashed border.
Will my spilled results update automatically?
Yes. A spilled array recalculates as a unit; change a source value or criterion and all spilled results refresh together.