iVal= Application.WorksheetFunction.CountIfs(Sheets(2).Range("I1:I10"),Sheets(2).Cells(i, 9), Sheets(2).Range("D1:D10"),"0")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)