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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -