Excel IF function

B

Brian

I want to use the IF function where a reserve is calculated using one of two
different calculations, but not both. I want the cell to give me an error
response if both source calculations are greater than 0 (to show that an
input error was made). I want the cell to give me a calculated amount if one
of the calculations is used properly. I would like to use as few cells as
possible to accomplish this.
 
B

Bob Phillips

=IF(AND(A1>0,B1>),"Error",IF(A1>0,A1,B1))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
B

Bob Phillips

Thanks Frank :)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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