Sumproduct returning 0 with date

grahambza

New Member
Joined
Sep 7, 2005
Messages
19
Hi all
I am having an issue with Sumproduct returning a 0 when I apply a date criteria

I tested the date format with countif and it works but gives me a 0 with sumproduct (and Countifs)

Below is some sample data with the formula I am using. Cell I18 = February 2022 which is the date i am searching for, with correct formatting applied
Any advice would be appreciated

sample data.xlsx
DEFGHIJK
12
13Column 1Month detectedMonth ResolvedSeveritySame problem with sample data
14Jan-22Critical
15Jan-22Critical=SUMPRODUCT((e17:$e25=i18)*(g17:$g25="Critical"))
16Jan-22Critical0
17Jan-22Critical
18Jan-22Jan-22CriticalFeb-22Date I am looking for
19Jan-22Jan-22Critical
20Feb-22High
21Feb-22High
22Feb-22High
23
Scratchpad
Cell Formulas
RangeFormula
I16I16=SUMPRODUCT((E14:$E22=I18)*(G14:$G22="Critical"))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I18Expression=$E18="Resolved"textNO
I18Expression=$E18="Resolved"textNO
I18Expression=$E18="Resolved"textNO
F18:F19Expression=$E18="Resolved"textNO
F18:F19Expression=$E18="Resolved"textNO
F18:F19Expression=$E18="Resolved"textNO
E20:E22Expression=$E20="Resolved"textNO
E20:E22Expression=$E20="Resolved"textNO
E20:E22Expression=$E20="Resolved"textNO
E15:E19Expression=$E15="Resolved"textNO
E15:E19Expression=$E15="Resolved"textNO
E15:E19Expression=$E15="Resolved"textNO
E14Expression=$E14="Resolved"textNO
E14Expression=$E14="Resolved"textNO
E14Expression=$E14="Resolved"textNO
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
What am I missing here ? Your example formula is looks for Feb 2022 AND "Critical".
This combination does not exist in your sample data so I would expect it to return zero.

If I change the Critical to High it works fine.
 
Upvote 0
Solution
UGH rookie error

While trying to generate better sample data I figured out that the formula worked when I linked to a cell ref but not when i entered "February 2022"
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,831
Members
449,051
Latest member
excelquestion515

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