Sumifs not working

ExcelBlonde

New Member
Joined
Apr 28, 2016
Messages
18
Hi there,

I've used this formula in a workbook to calculate a figure based on 2 criteria. It works fine.

=SUMIFS(Data!$AB$2:$AB$200,Data!$B$2:$B$200,$A$1,Data!$C$2:$C$200,A4)

I've tried expanding on it within another workbook and it isn't working. Can anyone see any obvious mistakes?

=SUMIFS(Data!$K$2:$K$3518,Data!$F$2:$F$3518,"*"&A1&"*",Data!$G$2:$G$3518,"*"&B4&"*")

"*"&A1&"*" looks at a cell that has a date in it. The criteria it is searching has a date and time.
Likewise with "*"&B4&"*" it is looking for a specific word. The criteria it is searching has the word somewhere in the cell. Have I done this right?

I cant see whats wrong with it. It doesn't return an error. It returns 0.
 
Last edited:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
ABCDEFGHIJKLMNOP
DataDataDataDataDate/Time inDate/Time dueDataDataDataDataCountDataDataDataDataData
12312312312313/12/2016 18:0015/12/2016 18:00Bob1231231234123123123123123
23123123123114/12/2016 12:0018/12/2016 14:00Bob2312312312231231231231231
45645645645613/12/2016 18:0015/12/2016 18:00Fred4564564561456456456456456
78978978978913/12/2016 18:0015/12/2016 14:00Bob7897897895789789789789789

<tbody>
</tbody>

I'm looking to find, for example, the number of items due 15/12/2016 with a name Bob. It should return 9.
 
Upvote 0
I hope this gives you the right guidance:


Excel 2016 (Windows) 32 bit
ABCDEFGHIJKLMNOP
1DataDataDataDataDate/Time inDate/Time dueDataDataDataDataCountDataDataDataDataData
212312312312313/12/2016 18:0015/12/2016 18:00Bob1231231234123123123123123
323123123123114/12/2016 12:0018/12/2016 14:00Bob2312312312231231231231231
445645645645613/12/2016 18:0015/12/2016 18:00Fred4564564561456456456456456
578978978978913/12/2016 18:0015/12/2016 14:00Bob7897897895789789789789789
6
79
815/12/2016
9Bob
Sheet2
Cell Formulas
RangeFormula
A7=SUMPRODUCT(ISNUMBER(SEARCH(A8,$F$2:$F$5,1))*($G$2:$G$5=A9)*($K$2:$K$5))
 
Upvote 0
"*"&A1&"*" looks at a cell that has a date in it. The criteria it is searching has a date and time.

That's the issue. Dates are stored as numbers and wildcards don't work with numbers. You can use SUMPRODUCT as Ali demonstrated.
 
Upvote 0
Hi - if you wanted to stick with SUMIFS() you could do it like this:

=SUMIFS(Data!$K$2:$K$3518,Data!$F$2:$F$3518,">="&A1,Data!$F$2:$F$3518,"<"&A1+1,Data!$G$2:$G$3518,"*"&B4&"*")
 
Upvote 0
Hi - if you wanted to stick with SUMIFS() you could do it like this:

=SUMIFS(Data!$K$2:$K$3518,Data!$F$2:$F$3518,">="&A1,Data!$F$2:$F$3518,"<"&A1+1,Data!$G$2:$G$3518,"*"&B4&"*")

That's great! It seems to work. I actually have a figure now rather than a 0. Sorry for the delay in response.

Thanks to all for your suggestions.
:)
 
Upvote 0

Forum statistics

Threads
1,214,849
Messages
6,121,925
Members
449,056
Latest member
denissimo

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