Forum Discussion
Ellbeardo
Nov 24, 2022Copper Contributor
COUNTIFS problem
Hi, I'm trying to use the COUNTIFS formula to count cells in which the criteria are: Column T2:T3031 "Other" Column T2:T3031 "Temporary" Column W2:W3031"0" I want the formula to result ...
- Nov 24, 2022
Hi Ellbeardo,
If I've understood you correctly, you have a data set like the one I've shown in the attached image (your column T is my column A, and your W is my B), in which Column A contains various values, including "Other" and "Temporary", against which, in column B, there can be various values, but you want to count only the pairs where A= either "Other" or "Temporary" and B=0 (which I have highlighted yellow in the image.)
You could do this by summing 2 COUNTIFS() calls like this:
=COUNTIFS(A1:A19,"Other",B1:B19,0)+COUNTIFS(A1:A19,"Temporary",B1:B19,0)
or like this (same thing really)
=SUM(COUNTIFS(A1:A19,"Other",B1:B19,0),COUNTIFS(A1:A19,"Temporary",B1:B19,0))
Hope that helps 🙂
Colin
OliverScheurich
Nov 24, 2022Gold Contributor
=SUMPRODUCT(((T2:T3031="Temporary")+(T2:T3031="Other"))*(W2:W3031=0)*(W2:W3031<>""))You can try SUMPRODUCT: