Adding Only Positive Numbers

We can use an array formula to sum up only the positive numbers in a given range.

=SUM(IF(A1:A10>=0;A1:A10;0))

An array formula is defined by hitting SHIFT-CTRL-Enter instead of Enter for a normal (scalar) formula.

In documentation and texts, an array formula is indicated by ‘curly braces’ as shown below

{=SUM(IF(A1:A10>=0;A1:A10;0))}

However, the curly braces should not be included when entering the formula on the spreadsheet.

5 Responses to “Adding Only Positive Numbers”

  1. Harlan Grove Says:

    OK, it’s an example, but the better approach would be

    =SUMIF(A1:A10;”>0″)

  2. Lawrence Says:

    Kindly advise how to construct a formula to find the mimimum POSITIVE value in a range of values. Thank you.

  3. Marc Says:

    I would like to deduct values from two cells..
    How to insert difference function in calc..?

  4. Sly Says:

    Try this, You may say: “too simple to work”, but it does !

    =-sum(A1:A5)

  5. Brin Says:

    Hello, nice site :)

Leave a Reply