How to sum only positive numbers in Excel
Formula (Excel and Google Sheets)
=SUMIF(C2:C9,">0")Use SUMIF with ">0", =SUMIF(C2:C9,">0"), or with "<0" to add only the negatives.
- Result on the example
- $6,543.11 in
F1 - Works in
- Every current version
- Google Sheets
- Same formula
See it work
The formula is already in F1. Change any input and the result updates, or edit the formula to experiment.
How it works
With two arguments, SUMIF tests the range and adds the same cells. ">0" keeps deposits, the refund and the interest, and skips every withdrawal. Zeros are left out too, which doesn't change a total.
=SUMIF(C2:C9,">0")Result6543.11
C2:C98 rows × 1 col: $3,250.00, -$1,800.00, -$142.67, $38.99, …A range: 8 cells in one column.
SUMIF(C2:C9,">0")6543.11SUMIF: Adds values where the range meets a condition.- range
C2:C98 rows × 1 col: $3,250.00, -$1,800.00, -$142.67, $38.99, … - criteria
">0"
- range
In Google Sheets
The same formula works in Google Sheets: =SUMIF(C2:C9,">0"). We ran it in Google Sheets mode on the same data and it returns $6,543.11.
Other ways to do it
Each one was run on the same example sheet.
| Formula | Result | When to use it |
|---|---|---|
| =SUMPRODUCT((C2:C9>0)*C2:C9) | $6,543.11 | The same test written as an array, handy when combined with other conditions. |
| =SUMIF(C2:C9,"<0") | -$2,539.07Different result | Money out: the negative amounts. Returns the withdrawals: -2,539.07. |
Common mistakes
- Amounts imported as text, like "3,250.00", are skipped. Convert them to numbers first.
- If spending is entered as positive numbers in a separate column, you need SUMIF on a type column instead of the sign.
Try it yourself
Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.
Sum only positive numbers
F1, total the money coming in: the positive amounts in C2:C9.Questions
How do I show money out as a positive number?
Use =-SUMIF(C2:C9,"<0") or =ABS(SUMIF(C2:C9,"<0")).
How do I sum positive numbers with a date condition too?
Use SUMIFS: =SUMIFS(C2:C9,C2:C9,">0",A2:A9,">="&DATE(2026,5,15)).
Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.