我需要以毫秒顺序填写单元格

时间:2019-02-02 03:24:19

标签: excel if-statement excel-formula

我在ms excel中有超过2K条记录数据集:

// This is the same as using $(document).ready(),
// and is recommended in jQuery 3.x
$(function () {    
    /*
    var tbl = ... get table element ...
    */

    // Since you're using jQuery, might as well use jQuery events
    // Also, using a delegate selector will ensure that only changes to input elements are handled
    $(tbl).on("change", "input", function (e) {
        // pass any necessary arguments to calculate()
        calculate();
    });

    // I would recommend calling getData() after page load as well.
    // You have to wait a short time before the AJAX request is sent,
    // but the bonus is you can be sure the document is loaded by the
    // time it returns
    getData("Advisor Staffing");
});

// accept any necessary parameters
function calculate () {
    /*
    ... calculation logic goes here ...
    */
}

function getData () {
    /* Setup and make ajax request with appropriate params */
    $.ajax().then(function (data) {
        // pass any necessary arguments to buildTable()
        buildTable();
        // pass any necessary arguments to calculate()
        calculate();
    });
}

需要填充一系列值,如下所示: (请不要关注空格。我只是为了让我的目标更清晰可见而已)

 1045
 1045
 1045
 1083
 1083
 1083
 1083
 1088
 1088
 1088

请帮助!!!谢谢大家!

1 个答案:

答案 0 :(得分:2)

在B1中输入以下公式并抄下来。

=COUNTIF(A$1:A1;A1)