Help with SUMIFS

Matt44

New Member
Joined
Apr 24, 2019
Messages
2
Hi,

I have a SUMIFS formula which is working well with the exception of when the sumifs argument is false it returns 0.00 and I would like it to return a blank cell.

I am thinking an additional AND formula after the initial IF argument may be the way to go but I cant get the formula to work.

Essentially I am trying to get a sub total of the values (column E) per individual date (column A) where the text (column C) matches my two criteria.

Formula is in column K and, two example cells which show 0.00 instead of being blank are K15 & K21, any suggestions?

=IF(A12<a13,sumifs($e$11:e37,$a$11:a37,a12,$c$11:c37,"*green*",$c$11:c37,"*black*"),"")


I have an example to ss to attach but I'm not sure how I do this?


Thanks in anticipation
 
Last edited by a moderator:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi, you could try something like:

<a13,if(countifs($a$11:a37,a12,$c$11:c37,"*green*",$c$11:c37,"*black*"),sumifs($e$11:e37,$a$11:a37,a12,$c$11:c37,"*green*",$c$11:c37,"*black*"),""),"")
=IF(A12 < A13,IF(COUNTIFS($A$11:A37,A12,$C$11:C37,"*green*",$C$11:C37,"*black*"),SUMIFS($E$11:E37,$A$11:A37,A12,$C$11:C37,"*green*",$C$11:C37,"*black*"),""),"")
Or you could simply use a custom number format to hide the zeros.</a13,if(countifs($a$11:a37,a12,$c$11:c37,"*green*",$c$11:c37,"*black*"),sumifs($e$11:e37,$a$11:a37,a12,$c$11:c37,"*green*",$c$11:c37,"*black*"),""),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

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