excel - CountIf and Subtotal -
i have series of data columnar wanting use countif visible cells have value 1. can either formula no problem, countif, or subtotal visible cells, when try combin them lost. here example of formula segments. =countif(i5:i6500,1) =subtotal(3,i5:i6000)
how combine 2 formulas have single formula counts instances of number 1 in column while not counting hidden cells due filtering???
desert spider, worked me:
=sumproduct(--(i5:i6000=(c12)),subtotal(3,offset(i5,row(i5:i6000)-row(i5),0))) or (the above uses cell value determine query, below uses user input (x)) =sumproduct(--(i5:i6000="x"),subtotal(3,offset(i5,row(i5:i6000)-row(i5),0)))
credit to:
pgc01
http://www.mrexcel.com/forum/excel-questions/600223-subtotal-countif.html#post2971937
Comments
Post a Comment