formula - Excel Sum(s) possibly? Trying conditional sums -
i have potentially simple problem cannot figure out in excel. want use formula sum cells if meet 2 criteria. if cells less 100 , s1 100 want add 300 total sum. however, if cells greater or equal 100, sum cells regardless of in cell s1.
a1 a2 a3 x x s1 s2 1 1 1 100 100 if sum of a2:c2 less 100 , s2 equals 100 add 300 if sum of a2:c2 greater 100 , s2 equals 100 show original sum have tried following: =if(sum(d2:h2)+sum(p2:s2)=0,0,if(sum(d2:h2)+sum(p2:s2)<100,if(r2=100,sum(d2:h2)+sum(p2:s2)+sum(300)),sum(d2:h2)+sum(p2:s2)))
try like:
=if(and(sum(d2:h2)<100,s2=100),sum(d2:h2)+300,sum(d2:h2))
will following:
if both sum of d2 h2 < 100 , s2 = 100, sum d2 h2 , add 300
if both conditions not true return sum of d2 h2
think i've got logic right here if not/you can't take , make work correct me , i'll figure out.
(ps @ risk of being of nerd don't state happens if sum of d2:h2 = 100!)
Comments
Post a Comment