I am having 2 formulae for deriving UAT and Production defects... following they are :
FOR UAT ::
=COUNTIFS(Data!$B$2:$B$50000,"Defect",Data!$D$2:$D$50000,"UAT",Data!$E$2:$E$50000,$A2,Data!$F$2:$F$50000,"Y")
say the answer come as 121
FOR PRODUCTION ...