Excel's generic Subtotals option offers the "count" function which includes zero's in it's results and not the "countif" function I need.<br>I need a VB script that will sort by column "D" then subtotal on each change in column "D" using the "countif" function placing subtotal results in column "G". The countif condition is not equal to zero.....as in any negative or positive numerical value.<br>That is my basic requirement but it would also be nice if the subtotal result could then be multipied by 40.