Using two separate scenarious in one IF function

K

klgcm

Can I have more than one scenario in an IF function that are not dependent on
each other:

If (F2>75, (F2-75), (0), IF (E26>75, (E26-75), (0))
 
A

Arvi Laanemets

Hi

What about F2>75 AND E26>75 ?

When above never happens, then
=MAX((F2>75)*F2+(E2>75)*E2-75,0)


Arvi Laanemets
 
T

tjtjjtjt

So ...
Are you saying that you want both the scenarios evaluated in the same cell,
regardless of outcome?

You could use something like this:
=((IF(F2>75,F2-75,0))&" "&(IF(E26>75,E26-75,0)))
this would put 3 spaces between the two answers.

This one:
=((IF(F2>75,F2-75,0))&CHAR(10)&(IF(E26>75,E26-75,0)))
would put the answers on separate lines in the same cell, if you turn on
Cell Wrapping from Format|Cells, on the Alignment Tab.

tj
 

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