formula fix

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
292
Office Version
  1. 365
Platform
  1. Windows
I'm trying to add up column "K"
I keep getting "#SPILL"
Not sure why,, what did I put that I shouldnt of?

Excel Formula:
=SUMIFS(K7:K700,I7:I700,(YEAR(I7:I700)=YEAR($L$1)),F7:F700,F7:F700="YES")

Thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
You're not using the right format for SUMIFS. You can't use functions like you're doing. This is a common misunderstanding. You can use SUMIFS like I did below. This requires using 2 conditions for the date, a lower and an upper bound. Or you can use SUMPRODUCT instead, which gives you a format closer to what you originally had.

Book1
FGHIJKL
192024
29
3
4
5
6
7yes3/1/20241
8yes4/1/20242
9no5/1/20243
10yes6/1/20254
11yes7/1/20225
12yes12/31/20246
13
Sheet4
Cell Formulas
RangeFormula
K1K1=SUMIFS(K7:K700,I7:I700,">="&DATE($L$1,1,1),I7:I700,"<="&DATE($L$1,12,31),F7:F700,"Yes")
K2K2=SUMPRODUCT(K7:K700,--(YEAR(I7:I700)=$L$1),--(F7:F700="yes"))
 
Upvote 0
Solution
You're not using the right format for SUMIFS. You can't use functions like you're doing. This is a common misunderstanding. You can use SUMIFS like I did below. This requires using 2 conditions for the date, a lower and an upper bound. Or you can use SUMPRODUCT instead, which gives you a format closer to what you originally had.

Book1
FGHIJKL
192024
29
3
4
5
6
7yes3/1/20241
8yes4/1/20242
9no5/1/20243
10yes6/1/20254
11yes7/1/20225
12yes12/31/20246
13
Sheet4
Cell Formulas
RangeFormula
K1K1=SUMIFS(K7:K700,I7:I700,">="&DATE($L$1,1,1),I7:I700,"<="&DATE($L$1,12,31),F7:F700,"Yes")
K2K2=SUMPRODUCT(K7:K700,--(YEAR(I7:I700)=$L$1),--(F7:F700="yes"))
K2 worked, thanks
 
Upvote 0

Forum statistics

Threads
1,223,578
Messages
6,173,167
Members
452,504
Latest member
frankkeith2233

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top