Sumifs on a null or blank

Tarver

Board Regular
Joined
Nov 15, 2012
Messages
109
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I'm using SUMIFS to calculate a Balance, but some of my criteria are intentionally blank in some entries.

Screenshot 2022-09-14 170745.png


As in the screenshot, I don't want to include the "Invoice" document type (and others) but I do need to include the "Refund" type and the null/blank type (and others.) I've tried excluding all criteria except the ones I need, I've tried including all of the criteria I need, and I'm still unable to get Excel to include the Balance amount from my rows with blank cells.

How can I include these blanks and still get the correct sums?

Thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
As you want to include blanks (which may make it difficult with multiple criteria for that column), I would say that the best way would be

=SUM(range to sum)-SUM(SUMIFS(range to sum, criteria range, array of items to exclude))
 
Upvote 0
As it turns out, my problem here was NOT that the field was blank. There was an invisible character in there, and that was gumming up the works. When the blank wouldn't be picked up my SUMIFS, I checked the LEN of the blank cell and was surprised to find it was 1. Then I did a whole bunch of IF statements to find if the VALUE of the cell was CHAR(1), CHAR(2), etc. until I got a hit on CHAR(32).
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

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