VBA函数Sumif

时间:2015-10-24 23:27:04

标签: vba function

      $(document).ready(function(){                
      $('#btn').on('click', function() {    
      var mobile_no = $('#mobile_no').val(); 

        if (mobile_no != ""){           
        $.post('testPht.php', {mobile_no: mobile_no}, function(data){
        $('div#errorDiv').html(data);
        });            
        }else{      
        $('#errorDiv').html("field required");            
        }
        }); 
        });                 

    php

    if(isset($_POST['mobile_no']))  { $mobile_no = $_POST['mobile_no'];          
    search query
    echo  "Record Found"; }else{ echo "Record not Found"; }

我无法调用此功能。有人能让它发挥作用吗?

1 个答案:

答案 0 :(得分:0)

Function master(sega)
    master = WorksheetFunction.SumIf(sega, "<80")
End Function