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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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