I'm trying to develop a code that will allow me to loop through a range and create a total count of rows that have 2 criteria.
For the example below I want to loop through rows 2-12 and increase the counter each time a row has the words "Pway" & "T-4". Then place the result in cell G2. I've played around with loops before but never with two variables.
Can anybody help?


If AnswerToAboveComment = "Yes" Thenyou can nest 2IF...Thenstatements to check for 1 criteria and if met, then check the 2nd, if met increase a counter variable.=COUNTIFS(A:A,"Pway",D:D,"T-4")