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:

Some videos you may like

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,467
Office Version
  1. 365
Platform
  1. Windows
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:

Watch MrExcel Video

Forum statistics

Threads
1,123,504
Messages
5,602,057
Members
414,498
Latest member
jordanmiller7890

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
Top