Add and remove zeros in front of numbers

  • Last update:  2021-05-13
  • I. Description

    When processing some numeric data, sometimes we need to add 0 or remove 0 in the front, as follows:    

    1.png                      

    II. Idea

    Use a variety of methods such as format, calculation, formula to solve.

    III. Add zeros method

    1. Format method

    In the Style>Text, select the format as a Number, and enter 0 in the input box below. 

    Note: The number of 0 means how many digits are complemented.

    2.png


    2. Formula method

    Enter FORMAT (Object, "#00000000") in the formula.

    3.png

    IV. Remove zeros method

    1. Format method

    In Style>Text, select the format as Number.

    4.png


    2. Formula method

    1) FORMAT() formula: FORMAT (Object, "#0")

    2) SUM () formula: SUM (Object)

    3) AVERAGE() formula: AVERAGE (Object)

    4) MAX() formula: MAX (Object)

    5) MIN() formula: MIN (Object)

    Note: When the data involves grouping, do not use the formula of 2)~5), which may change the size of the value.


    3. Calculation method

    1) Addition: 'Object of removing 0' + 0 . Such as: =A2+0

    2) Subtraction: 'Object of removing 0' - 0 . Such as: =A2-0

    3) Multiplication: 'Object of removing 0' * 1 . Such as: =A2*1

    4) Division: 'Object of removing 0' / 1 . Such as: =A2/1



    Attachment List


    Theme: Report Application
    • 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