Hello,
I have an excel able that I am calculating count based on multiple criteria (Last Shipped Column & Status Column). So far the below formulas (1-4) work. However, I now I have to add a 3rd criteria and can't seem to get the formula's to work with either COUNTIFS or SUMPRODUCT.
The 3rd scenario is where Expiration Date (NonOptTBL[Expiration]) is either <= Today() or >Today() AND <=90.
1. Last shipped date is 1-30 days & status is NOT "I".
2. Last shipped date is 31-60 days & status is NOT "I".
3. Last shipped date is 61-90 days & status is NOT "I".
4. Last shipped date is GREATER than 90 days OR No Delivery Date is present & status is NOT "I".
TIA.
Jay
I have an excel able that I am calculating count based on multiple criteria (Last Shipped Column & Status Column). So far the below formulas (1-4) work. However, I now I have to add a 3rd criteria and can't seem to get the formula's to work with either COUNTIFS or SUMPRODUCT.
The 3rd scenario is where Expiration Date (NonOptTBL[Expiration]) is either <= Today() or >Today() AND <=90.
1. Last shipped date is 1-30 days & status is NOT "I".
Code:
=COUNTIFS(NonOptTBL[Days Last Shipped],">"&0,NonOptTBL[Days Last Shipped],"<="&30,NonOptTBL[Status],"<>"&"I")
2. Last shipped date is 31-60 days & status is NOT "I".
Code:
=COUNTIFS(NonOptTBL[Days Last Shipped],">"&30,NonOptTBL[Days Last Shipped],"<="&60,NonOptTBL[Status],"<>"&"I")
3. Last shipped date is 61-90 days & status is NOT "I".
Code:
=COUNTIFS(NonOptTBL[Days Last Shipped],">"&60,NonOptTBL[Days Last Shipped],"<="&90,NonOptTBL[Status],"<>"&"I")
4. Last shipped date is GREATER than 90 days OR No Delivery Date is present & status is NOT "I".
Code:
=(SUMPRODUCT((NonOptTBL[Days Last Shipped]>90)*(NonOptTBL[Status]<>"I")))+SUMPRODUCT((NonOptTBL[Days Last Shipped]=0)*(NonOptTBL[Status]<>"I"))
TIA.
Jay