Using Sumifs where one of the criteria might be blank.

RockandGrohl

Well-known Member
Joined
Aug 1, 2018
Messages
579
Office Version
  1. 2010
Platform
  1. Windows
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.
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

mart37

Well-known Member
Joined
Aug 4, 2017
Messages
1,061
Office Version
  1. 2016
Platform
  1. Windows
$E2-->IF($E2="","",$E2)
 

Watch MrExcel Video

Forum statistics

Threads
1,127,589
Messages
5,625,671
Members
416,125
Latest member
NeedExcelHelp2021

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