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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,215,336
Messages
6,124,330
Members
449,155
Latest member
ravioli44

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