Conditional Calculations with Calculated Results

K

Koneko

Greetings!

I'm wanting to embed a calculation within a conditional formula/function.
The typical IF function is typically something like: =IF(E6>5000,"YES","NO")
read as "If cell E6 is greater than five thousand, then respond yes, if not
respond no."

The next step I am trying to do is have it do a calculation in place of
stating "yes." For example: If cell E6 is greater than five thousand, then
respond with the amount minus 5000, if not respond 0.

The logical function would seem to be something like:
=IF(F7=YES,(E7-5000),0) However, this is not working for a number of
reasons. Basically, I see an "if, then" function, but am not familiar with
Excel enough to know of another appropriate function for what I am seeking.

What function would be best for this and how would I go about entering it?

Thanks!!
 
P

Pete_UK

You've changed to a different row for your second formula, but you can
do this directly on your first:

=IF(E6>5000,E6-5000,0)

Another way to do it would be:

=MAX(0,E6-5000)

but that might confuse you more !!

Hope this helps.

Pete
 

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