Why not just use SUBTOTAL in Excel?