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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Instead of leaving the criteria cell blank, enter a * sign. This will include all rows for that criterion.
 
Upvote 0
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
VendorContract #TO#Invoice # Amount
ABC
11351100200
ABC11351101700
ABC11357100300
ABC11355105500
ABC122211051000
ABC7501075
ABC7801580
ABC78020760
ABC78025555

<tbody>
</tbody>


I have another report that has:

ABCD
RowVendorContract #TO#Total
1
ABC11351
2ABC11355
3ABC11357
4ABC12221
5ABC750
6ABC780

<tbody>
</tbody>

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,215,584
Messages
6,125,670
Members
449,248
Latest member
wayneho98

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