Sumifs Criteria Question

southern5footer

New Member
Joined
Sep 21, 2016
Messages
9
I use sumifs very regularly and have recently came across a situation that one of the criteria used will in some cases be blank and some case have data. Is there a way to build into your sumif ignore if isblank?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
can you be more specific with an example

=SUMIFS(C1:C4,A1:A4,"a",B1:B4,"<>")
this will add up the values in C if A =a and B is NOT blank
 
Upvote 0
Also with a regular SUMIF since you mentioned both:

=SUMIF(B1:B4,"<>",C1:C4)

This would sum the values in C1:C4 where B1:B4 wasn't blank.
 
Upvote 0
I have a dataset that tracks invoices that has the following information (simplified example):

Table Name: INVOICEDATA
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Vendor[/TD]
[TD]Contract #[/TD]
[TD]TO#[/TD]
[TD]Invoice # [/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]ABC
[/TD]
[TD]1135[/TD]
[TD]1[/TD]
[TD]100[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]1[/TD]
[TD]101[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]7[/TD]
[TD]100[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]5[/TD]
[TD]105[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1222[/TD]
[TD]1[/TD]
[TD]105[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]750[/TD]
[TD][/TD]
[TD]10[/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]780[/TD]
[TD][/TD]
[TD]15[/TD]
[TD]80[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]780[/TD]
[TD][/TD]
[TD]20[/TD]
[TD]760[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]780[/TD]
[TD][/TD]
[TD]25[/TD]
[TD]555[/TD]
[/TR]
</tbody>[/TABLE]


I have another report that has:

[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Row[/TD]
[TD]Vendor[/TD]
[TD]Contract #[/TD]
[TD]TO#[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ABC[/TD]
[TD]1222[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]ABC[/TD]
[TD]750[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]ABC[/TD]
[TD]780[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

For each of the total line I would have:

=sumif(INVOICEDATA[Amount],INVOICEDATA[Vendor],A1,INVOICEDATA[Contract #], B1, INVOICEDATA[TO#], C1)

Row 1-4 work fine but 5 and 6 don't.
 
Upvote 0

Excel 2010
ABCD
1VendorContract #TO#Total
2ABC11351900
3ABC11355500
4ABC11357300
5ABC122211000
6ABC75075
7ABC7801395
8
2dd
Cell Formulas
RangeFormula
D2=SUMIFS(InvoicedData[[#All],[Amount]],InvoicedData[[#All],[Vendor]],A2,InvoicedData[[#All],[Contract '#]], B2, InvoicedData[[#All],[TO'#]],"="&C2)



The Source information is a Table.
The formula is a SumifS.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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