# Using Sumifs where one of the criteria might be blank.

#### RockandGrohl

##### Well-known Member
Hi all, I have the following sumif, and the part I've bolded I will explain below.

Excel Formula:
``=SUMIFS(Data!\$F:\$F,Data!\$V:\$V,\$B2,Data!\$R:\$R,\$D2,[B]Data!\$S:\$S,\$E2[/B],Data!\$T:\$T,\$I2,Data!\$U:\$U,\$J2)``

So the S:S column can either be blank, or have results in it like "Apple", "Banana"

The criteria cell, E2 can either be blank or have results in it like "Apple" "Banana"

Where there are results, say, Apple, it sums perfectly.

However, where there are blanks, the sum returns 0.

I'd like the sum to return results where one part of the criteria is blank - is this possible? Thank you.

### Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use \$ signs: \$V\$2:\$Z\$99 will always point to V2:Z99, even after copying

#### mart37

##### Well-known Member
\$E2-->IF(\$E2="","",\$E2)

Replies
9
Views
382
Replies
6
Views
188
Replies
14
Views
245
Replies
3
Views
167
Replies
5
Views
61

1,127,855
Messages
5,627,269
Members
416,236
Latest member
Lynchbox

### 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.

### Which adblocker are you using?

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

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