Forum Discussion

Stephen Meyers's avatar
Stephen Meyers
Copper Contributor
Mar 03, 2017
Solved

Using a Filtered Data Range

I have a datatable that is added to daily by date.  I am using the formula =COUNTIFS(FirstVisit,"Yes",Stake,A6) to count number of "first time visits" to our facility for each group ("Stake").  Ho...
  • SergeiBaklan's avatar
    Mar 04, 2017

    Hi Stephen,

     

    That could be something like this

    =COUNTIFS(FirstVisit,"Yes",Stake,A6,VisitDate,">" & EOMONTH(DATE(2017,2,1),-1),VisitDate,"<=" & EOMONTH(DATE(2017,2,1),0))

    where the DATE() you may generate as it is more convinient for you..

     

    Perhaps bit easier it'll be to use

    =SUMPRODUCT(--(FirstVisit="Yes"),--(Stake=A6),--(MONTH(VisitDate)=2))

Resources