SUMIFS Spill Error

Venkata Marella 0 Reputation points
2026-07-15T15:53:11.4933333+00:00

Hi,

I'm getting a spill error for SUMIFS. Strangely, if I change the column then there is no error. How do I fix it?

Microsoft 365 and Office | Excel | For business | Windows

3 answers

Sort by: Most helpful
  1. Barry Schwarz 5,861 Reputation points
    2026-07-16T17:38:48.9533333+00:00

    From Google AI

    A SUMIFS formula produces a spill error when an array of criteria (such as {"Apples","Oranges"}) is passed into it instead of a single value. This tricks modern Excel into trying to output multiple calculation results into adjacent cells, but the area is blocked by surrounding data.

    In your formula, the criteria argument is StatOpr. StatOpr is defined as the area from A6 to A33, an array of 28 values. Your formula is trying to generate a vertical array of 28 sums. At least one of the 28 cells that would hold this array of sums has a value so the first cell (the one containing the formula) is set to #SPILL.Are you really trying to generate 28 sums with one formula? If so, remove any values in the 27 cells immediately below the cell containing the formula. Otherwise, tell us the real intent of the formula and we can help you achieve that.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Alina Le 4,095 Reputation points Independent Advisor
    2026-07-16T10:26:12.3633333+00:00

    Hello @Venkata Marella

    Based on your screenshot, the formula appears to be:

    =SUMIFS(CombinedCYAMT,CombinedSMAP,StatOpr)

    and it works for the "Actual" column but returns "#SPILL!" for the Budget column when you switch the sum range.

    Since the formula works with the "Actual" column but returns "#SPILL!" with the Budget column, the most likely cause is that the Budget named range is defined differently (for example, it references multiple columns/rows or a dynamic array). In that case, SUMIFS may attempt to return multiple results instead of a single value, resulting in a spill error.

    For example, if:

    CombinedCYAMT = Sheet1!B2:B100

    CombinedSMAP = Sheet1!A2:A100

    the formula returns a single value as expected. However, if the Budget range is defined as:

    CombinedBudget = Sheet1!C2:D100

    or refers to a formula that spills multiple values, SUMIFS can return a spill error.

    As a quick troubleshooting step, go to Formulas > Name Manager and compare the definitions of the Actual range, Budget range, and CombinedSMAP. Ensure they all have the same number of rows and that the Budget range references only a single column. This is the most common cause in scenarios like this.

    User's image

    User's image

    For your reference:

    Use the Name Manager in Excel | Microsoft Support

    How to correct a #SPILL! error | Microsoft Support

    If the issue still remains after trying all the steps above, please share a screenshot or provide more detailed information. I will check the situation and continue to support you. 

    Kind regards, 


    If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment"

    Note: Please follow the steps in "our documentation" to enable e-mail notifications if you want to receive the related email notification for this thread. 

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  3. Venkata Marella 0 Reputation points
    2026-07-15T16:41:29.6066667+00:00

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.