blank if sum is less than 0

F

freds

I'm trying to get a blank (or even a 0) if the sum is 0 or less.

Here's what I have in the cell SUM(D14-E14)

I have answers that go negative [-2, -5, etc] but I'm trying to just see a
number in the cell only if the value is greater than 0.

Thanks
 
F

Fred Smith

Then you want:

=if(d14<e14,0,d14-e14)

You don't need the Sum function to do arithmetic. You only need when you are
summing numbers.

Regards,
Fred.
 
E

ed

Then you want:

=if(d14<e14,0,d14-e14)

You don't need the Sum function to do arithmetic. You only need when you are
summing numbers.

Regards,
Fred.




I'm trying to get a blank (or even a 0) if the sum is 0 or less.
Here's what I have in the cell  SUM(D14-E14)
I have answers that go negative [-2, -5, etc] but I'm trying to just seea
number in the cell only if the value is greater than 0.
Thanks- Hide quoted text -

- Show quoted text -

=max(D14-E14,0) but you might like this better: =max (sum(d14,-e14),
0) The coma is missing from your formula although it may not make any
difference, and if you want nothing instead of a 0 =IF(D4-
E4)<=0,"",D4-E4).

ed
 
F

freds

All-

Thanks for your help.

I tried them all and the formula below worked best for what I needed to do [
all the formulas worked, but this one was a closer match ].

Again, thanks for helping. It is truly appreciated.
Freds


Gary''s Student said:
=IF(SUM(D14-E14)<0,"",SUM(D14-E14))
--
Gary''s Student - gsnu200780


freds said:
I'm trying to get a blank (or even a 0) if the sum is 0 or less.

Here's what I have in the cell SUM(D14-E14)

I have answers that go negative [-2, -5, etc] but I'm trying to just see a
number in the cell only if the value is greater than 0.

Thanks
 

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