SUMIFS criteria with blanks

Nakkivaan

New Member
Joined
Nov 30, 2017
Messages
3
Hello,

I try to calculate total amounts with SUMIFS. Sheet Products contains name of products, category of products, release and end date of products and amount information on rows. Sheet Amounts is used to calculate total amounts based on categories.

I have couple different criteria and one is related to dates. The problem is in the last criterion of function. Products!E:E contains release dates of products. Cell O2 is one month for I like to calculate total amount of active products (if product is not released yet, it will not be included in total).

This works fine, but I have problem if cell is blank in Products-sheet. I want to include blank cells also to total, because I don't have every start date for products - but amounts I do. I have tried different kind of IF-functions, but not with success.

So everything in short: how I can adjust last criteria, so that function sums column E cell if it is blank (current criteria should be in use also - I don't want to add any invalid dates)?

=SUMIFS(Products!$Q:$Q;Products!A:A;'Amounts'!A1;Products!E:E;"<=" & 'Amounts'!$O$2)

Best regards
JV
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I want to include blank cells also to total, because I don't have every start date for products - but amounts I do.

Hi, as long as the blank cells are truly blank then here is one option you can try.

=SUMPRODUCT(SUMIFS(Products!$Q:$Q,Products!A:A,amounts!A1,Products!E:E,CHOOSE({1,2},"<=" & amounts!$O$2,"")))
 
Upvote 0

Forum statistics

Threads
1,215,549
Messages
6,125,473
Members
449,233
Latest member
Deardevil

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