Forum Discussion
Trouble with Countifs with Multiple criteria
- Jan 13, 2025
The formula in C30 should probably be
=COUNTIFS('OB Summary Report'!$O:$O,"Available- Not Allocated",'OB Summary Report'!$I:$I,A27,'OB Summary Report'!$J:$J,"MPUS")+
COUNTIFS('OB Summary Report'!$O:$O,"Available- Not Allocated",'OB Summary Report'!$I:$I,A27,'OB Summary Report'!$J:$J,"ECOM")+
COUNTIFS('OB Summary Report'!$O:$O,"Waiting for Load Plan",'OB Summary Report'!$I:$I,A27,'OB Summary Report'!$J:$J,"MPUS")+
COUNTIFS('OB Summary Report'!$O:$O,"Waiting for Load Plan",'OB Summary Report'!$I:$I,A27,'OB Summary Report'!$J:$J,"ECOM")and that in D30
=SUMIFS('OB Summary Report'!$X:$X,'OB Summary Report'!$O:$O,"Available- Not Allocated",'OB Summary Report'!$I:$I,A27,'OB Summary Report'!$J:$J,"MPUS")+
SUMIFS('OB Summary Report'!$X:$X,'OB Summary Report'!$O:$O,"Available- Not Allocated",'OB Summary Report'!$I:$I,A27,'OB Summary Report'!$J:$J,"ECOM")+
SUMIFS('OB Summary Report'!$X:$X,'OB Summary Report'!$O:$O,"Waiting for Load Plan",'OB Summary Report'!$I:$I,A27,'OB Summary Report'!$J:$J,"MPUS")+
SUMIFS('OB Summary Report'!$X:$X,'OB Summary Report'!$O:$O,"Waiting for Load Plan",'OB Summary Report'!$I:$I,A27,'OB Summary Report'!$J:$J,"ECOM")
You made mistake on date column reference for highlighted cell formula. For second countifs your formula is COUNTIFS('OB Summary Report'!$J:$J,"ECOM",'OB Summary Report'!$A:$A,"7000*",'OB Summary Report'!B:B,A3) Here A3 is a date value but 'OB Summary Report'!B:B is not your date column. So this would be I column 'OB Summary Report'!I:I. And full formula will be
=COUNTIFS('OB Summary Report'!$J:$J,"MPUS",'OB Summary Report'!$I:$I,A3)+COUNTIFS('OB Summary Report'!$J:$J,"ECOM",'OB Summary Report'!$A:$A,"7000*",'OB Summary Report'!$I:$I,A3)
Thanks for pointing out the mistake there. That fixes that cell, but i'm still having issues with the other highlighted cells not grabbing all the data I need.
- Rodney2485Jan 13, 2025Brass Contributor
Noticed the same mistake in the other cells, fixed but still doesn't solve.