SPILL ERROR on function

Crystal Hurla 0 Reputation points
2026-01-21T19:26:24.4633333+00:00

I can't get this function to work:

=SUMPRODUCTIFS(($C2:$C141="KS")($D2:$D141="STEER"), $I2:$I141, L2:L141)/SUMIF($I2:$I141,($C2:$C141="KS")($D2:$D141="STEER"))

Giving me a spill error or saying too few arguments...

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hendrix-C 10,195 Reputation points Microsoft External Staff Moderator
    2026-01-21T20:40:11.1933333+00:00

    Hi @Crystal Hurla,

    Thank you for posting your question in the Microsoft Q&A forum.

    Based on your sharing, you are having syntax issue in your formula since Excel does not have a built-in function of SUMPRODUCTIFS.

    If your goal is to calculate the sum of (I*L) divided by sum of I for rows where C="KS" and D="STEER", you can try this formula:

    =SUMPRODUCT(($C$2:$C$141="KS")*($D$2:$D$141="STEER")*$I$2:$I$141*$L$2:$L$141)/SUMPRODUCT(($C$2:$C$141="KS")*($D$2:$D$141="STEER")*$I$2:$I$141)
    

    You can try workaround and notify me whether it helps. If not, we can work together to find a solution. 

    I hope this information is helpful. If you have any questions or need more help, please feel free to share them in the comments. I will be happy to assist you further.

    Thank you for your patience and understanding. I'm looking forward for your reply.  


    If the answer is helpful, please click "Accept Answer" 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.

    0 comments No comments

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.