jrobin5881
Technical User
From Columns A2 to H2 I have column headings to which I applied an autofilter. In cell F3 & G3 I have the formula =SUBTOTAL(9,F4:F991) & =SUBTOTAL(9,G4:G991).So when I change the filtered item in A2 I get the corresponding sums in F3 and G3 each time and that's working fine.
Here's my issue: Column E has a "Y" or an "N" in each row and I need a count of the "Y"s each time the list is filtered on the criteria in A2. I've used the =COUNTIF(E4:E991,"Y")and that gives all "Y"s no matter what selection is made in A2 and I've tried =SUBTOTAL(2,E4:E991)and am not getting the correct results. I've tried concantenating the COUNTIF AND SUBTOTAL (using 9 instead of 2) and that did not work. I tried a straight out IF formula and that did not work. Any suggestions?
Here's my issue: Column E has a "Y" or an "N" in each row and I need a count of the "Y"s each time the list is filtered on the criteria in A2. I've used the =COUNTIF(E4:E991,"Y")and that gives all "Y"s no matter what selection is made in A2 and I've tried =SUBTOTAL(2,E4:E991)and am not getting the correct results. I've tried concantenating the COUNTIF AND SUBTOTAL (using 9 instead of 2) and that did not work. I tried a straight out IF formula and that did not work. Any suggestions?