SUM IF POSITIVE VALUE

Jagat Pavasia

Active Member
Joined
Mar 9, 2015
Messages
359
Office Version
  1. 2021
Platform
  1. Windows
Dear sir,
I want to total B2+G2+K2,
if B2+G2+K2 has positive amount, and answer in A2.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
in A2 put
=IF( (B2+G2+K2 )>0, (B2+G2+K2 ),"")
 
Upvote 0
in A2 put
=IF( (B2+G2+K2 )>0, (B2+G2+K2 ),"")
122.JPG




my answer in this sample is 125.

I mean do not calculation if negative value
 
Upvote 0
are the entries in c,d,e,f,h,i,j
always blank
=SUMIF(B2:K2,">"&0)

Book1
ABCDEFGHIJK
1
212525100-25.22
3
Sheet1
Cell Formulas
RangeFormula
A2A2=SUMIF(B2:K2,">"&0)


or
=SUMIF(B2,">0")+SUMIF(G2,">0")+SUMIF(K2,">0")

Book1
ABCDEFGHIJK
1
212525100-25.22
3125
Sheet1
Cell Formulas
RangeFormula
A2A2=SUMIF(B2:K2,">"&0)
A3A3=SUMIF(B2,">0")+SUMIF(G2,">0")+SUMIF(K2,">0")
 
Last edited:
Upvote 0
Solution
edited post - so may have missed
=SUMIF(B2,">0")+SUMIF(G2,">0")+SUMIF(K2,">0")
 
Upvote 0
are the entries in c,d,e,f,h,i,j
always blank
=SUMIF(B2:K2,">"&0)

Book1
ABCDEFGHIJK
1
212525100-25.22
3
Sheet1
Cell Formulas
RangeFormula
A2A2=SUMIF(B2:K2,">"&0)


or
=SUMIF(B2,">0")+SUMIF(G2,">0")+SUMIF(K2,">0")

Book1
ABCDEFGHIJK
1
212525100-25.22
3125
Sheet1
Cell Formulas
RangeFormula
A2A2=SUMIF(B2:K2,">"&0)
A3A3=SUMIF(B2,">0")+SUMIF(G2,">0")+SUMIF(K2,">0")
thank you dear...
 
Upvote 0
you are welcome

maybe a better way , with 2021 , you have LET() FILTER() which may work - not sure - but other members may help
 
Upvote 0

Forum statistics

Threads
1,215,474
Messages
6,125,024
Members
449,204
Latest member
LKN2GO

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top