excel - Sum + Countifs formula not working -
i'm using google sheets , trying formula work give me following count:
count when column t = kenneth
, column u = (pending
or contacted
) , column w has date falls between dates shown in b14 , b15.
this have far:
=sum(countifs(users!$t:$t,"kenneth",users!$u:$u,{"pending","contacted"},users!$w:$w,">"&$b14,users!$w:$w,"<="&$b15))
this giving me correct count pending
alone ignoring contacted
rows somehow not recognizing or operator.
countifs (and sumifs) not support array arguments conditions. need resort summation of countifs:
=countifs(users!$t:$t,"kenneth",users!$u:$u,"pending",users!$w:$w,">"&$b14,users!$w:$w,"<="&$b15)+countifs(users!$t:$t,"kenneth",users!$u:$u,"contacted",users!$w:$w,">"&$b14,users!$w:$w,"<="&$b15)
or different approach, eg:
=countif(filter(users!$t:$t,(users!$u:$u="pending")+(users!$u:$u="contacted"),users!$w:$w>$b14,users!$w:$w<=$b15),"kenneth")
Comments
Post a Comment