I have 3 columns and what I need to do is a query where I can see Lab name, Sum Job count only N, Sum redos only Y. I tried with array, but not let me get the conditional Col2=N, Please help me.
=query({A2:B,ArrayFormula(if(C2:C="y", B2:B,0))}, "select Col1, sum(Col2), sum(Col3) where Col1 <> and Col2 ='N', '' group by Col1 label sum(Col2)'', sum(Col3)''", 0)