Sum cells if another cell is blank and another cell says something specific

Alenz

New Member
Joined
Nov 20, 2016
Messages
10
It feels that my formula should not be too complicated but I just can't get it to work. Teaching myself Excel here, yipes!

If CW16:EA16 is blank and CW7:EA7 is "Sunday", I need it to sum the amounts in CW17:EA17. Otherwise it should just say "0".

The following part is good but I need it to also look at CW16:EA16:
=IF(A11<>"",SUMIFS(CW11:EA11,$CW$7:$EA$7,"Sunday"),"")

I have tried the below that do not work:
1. =IF(CW16:EA16<>"","0",(IF(A17<>"",SUMIFS(CW17:EA17,$CW$7:$EA$7,"Sunday"),"0")))
2. =IF(ISBLANK(CW16:EA16),(IF(A17<>"",SUMIFS(CW17:EA17,$CW$7:$EA$7,"Sunday"),"")),"0")

The above point 2 keeps returning "value"! whether or not there are amounts in and weather or not CW16:EA16 is blank or contains values.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Does this work for you?

=IFERROR(IF(A11<>"",SUMIFS(CW11:EA11,$CW$7:$EA$7,"Sunday"),""),"")
 
Upvote 0
Is this what you need?

=IF(A17<>"",IF(COUNTIF(CW16:EA16,"")=COLUMNS(CW16:EA16),SUMIFS(CW17:EA17,$CW$7:$EA$7,"Sunday"),0),"")
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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