FormulaCraft

How to sum only the positive numbers in Excel and Google Sheets

Topic:SUM & aggregation
Excel & Google Sheets
=SUMIF(B2:B6,">0")

Verified example

Computed by a real spreadsheet engine on the sample data below.

MonthProfit
Jan500
Feb-200
Mar350
Apr-100
May600

=SUMIF(B2:B6,">0")1450

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the range containing mixed positive and negative values, e.g. B2:B6.
  2. 2Enter =SUMIF(B2:B6,">0"). When the third argument (sum_range) is omitted, SUMIF sums the criteria range itself.
  3. 3Press Enter. Only values strictly greater than 0 are included.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What is the difference between SUMIF(range,">0") and SUM(IF(range>0,range,0))?

Both produce the same result. SUMIF is simpler and does not require Ctrl+Shift+Enter in older Excel. The SUM/IF version can be extended with extra logical conditions.

Does this formula count zero as positive?

No — ">0" is strictly greater than zero. To include zero use ">=0".

More on SUM & aggregation

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: