subtracting 2 cells but only if 1st cell is greater than 0

M

Maureen

In cell e11 I would like to subtract cell d11-c11 unless the calue in c11 is
, or = to 0, in which case, I would like e11 to be 0. i have tried severeral
=if and sumif formulas and can't get anything to work. Any suggestions?
 
F

FSt1

hi
if i understand your post, you want c11 subtracted from d11 if c11 is
greater than or equal to 0 otherwize 0.
try this.....
=IF(OR(C11>0,C11=0),D11-C11,0)

post back if i misunderstood.

Regards
FSt1
 
D

David Biddulph

You could simplify =IF(OR(C11>0,C11=0),D11-C11,0) to =IF(C11>=0,D11-C11,0),
but I think the OP wanted =IF(C11>0,D11-C11,0).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top