if negative figure

Z

Zul

I want to how to put a formula for the beow requirement.

sum of two cells, if i get a postive asnswer I want to display it, if I get
a negative answer i want to display 0(zero)

Thanks

Zul
 
D

Dave

Hi TM,
Jumping in here,
I hadn't thought of using the MAX function for this issue. I like the way it
eliminates the need to repeat the main formula, which has to be done when
using the IF function.
On occasion, I have quite a long formula which sometimes returns an error,
depending on the presence, or not, of data in the contributing cells. I end
up using the something like the following:
IF(ISERROR(Quite Long Formula)=True,"",Quite Long Formula)
Is there a way to do this without having to repeat the Quite Long Formula,
as you did with the MAX function in the original question?
Regards - Dave.
 
S

Stephen Bye

On occasion, I have quite a long formula which sometimes returns an error,
depending on the presence, or not, of data in the contributing cells. I
end
up using the something like the following:
IF(ISERROR(Quite Long Formula)=True,"",Quite Long Formula)
Is there a way to do this without having to repeat the Quite Long Formula,

Put Quite Long Formula into Some Other Cell.
Then use:
=IF(ISERROR(Some Other Cell),"",Some Other Cell)
That way, your formula only needs to be evaluated once.
 
D

Dave

Hi Stephen, Thanks for that idea. Don't know why I don't think of these
things myself. This forum is an amazing wealth of knowledge and ideas.
Regards - Dave.
 
D

Dave

Hi Dana,
Thanks for that info. That's a very useful function. I still use XL2000, so
that'll be something to look forward to when I eventually upgrade.
Regards - Dave.

:
 
D

Dave

Hi Dana,
Thanks for that. For some reason I never think of using custom functions. So
useful!
Regards - Dave.
 

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