Você pode fazer isso com `filter`. Irá retornar apenas o número de campos vazios na linha: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> $("[name^='ValorI']").on("input", function(){ var linha = $(this).closest("tr"); // seleciona a linha TR // busca os inputs na linha com name iniciando com "ValorI" var campos = $("[name^='ValorI']", linha); // conta apenas os vazios var vazios = campos.filter(function(){ return !$(this).val(); }).length; console.log(vazios); }); <!-- language: lang-html --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <table border="1"> <tr> <td><input type='text' name='ValorI[]' class='md-form-control' value=''></td> <td><input type='text' name='ValorII[]' class='md-form-control' value=''></td> <td><input type='text' name='ValorIII[]' class='md-form-control' value=''></td> <td><input type='text' name='ValorFinal[]' class='md-form-control' value=''></td> </tr> <tr> <td><input type='text' name='ValorI[]' class='md-form-control' value=''></td> <td><input type='text' name='ValorII[]' class='md-form-control' value=''></td> <td><input type='text' name='ValorIII[]' class='md-form-control' value=''></td> <td><input type='text' name='ValorFinal[]' class='md-form-control' value=''></td> </tr> <tr> <td><input type='text' name='ValorI[]' class='md-form-control' value=''></td> <td><input type='text' name='ValorII[]' class='md-form-control' value=''></td> <td><input type='text' name='ValorIII[]' class='md-form-control' value=''></td> <td><input type='text' name='ValorFinal[]' class='md-form-control' value=''></td> </tr> </table> <!-- end snippet -->