Check box to select row summation

  • Last update:  2021-11-02
  • I. Overview

    When making a summary report, how to dynamically sum only the values of the row where check boxes are checked?

    gif.gif

    II. The train of thought

    With hidden columns, the value of the current row is determined if the current row is checked, and 0 is assigned if the current row is not checked, and then the hidden column is summed.

    Check box full selection function for reference: JS full selection of check button widgets and batch operation

    III. Example 

    1) Data preparation

    Create a new workbook and add the built-in dataset Embedded1 as follows:

    1.png

    2) Template design

    The template looks like this:

    2.png

    • Drag the ordinal and quantity fields into B2 and C2 cells, respectively, and set the left parent of B2 cell to none.

    • Right-click the A2 cell widget Settings, select the check box widget for the widget type, and set the left parent of the A2 cell to B2.

    • Write the formula IF(A2 = TRUE, C2, 0) in cell D2 and SUM(D2) in cell C3.

    • Right-click column D to hide column D.

    3.png

    3) Save and preview

    Save the template, select Data Entry Preview to see the above effect.

    IV. Download the template

    Click to download the template:

    Check_box_to_select_row_summation.cpt



    Attachment List


    Theme: Parameter
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy