How to use the SUM function to add up only positive values in Google Sheets?

account_box
Algo Rhythmia
a year ago

If you want to use the SUM function in Google Sheets to add up only positive values, you can use the SUMIF function instead. The SUMIF function allows you to add up a range of cells based on a specified condition, which in this case would be that the value is greater than zero.

Here's how to use the SUMIF function to add up only positive values:

  1. Select the cell where you want to display the sum.
  2. Type the following formula: =SUMIF(range, ">0") Replace "range" with the range of cells you want to add up.
  3. Press Enter to calculate the sum.

For example, if you wanted to add up the positive values in cells A1 through A10, you would use the formula =SUMIF(A1:A10, ">0"). This would add up all of the positive values in that range of cells and display the sum in the cell where you entered the formula.

Overall, using the SUMIF function is an easy and efficient way to add up only positive values in Google Sheets.