Combining IF OR and AND functions

A

andyp161

Hi There,

Is it possible to combine IF OR AND functions? I can combine IF wit
AND and IF with OR but not all three.

E.g. Is it possible to put the following into a formula:
'IF A2 AND A3 = A1 OR A4 AND A5 = A1 return yes

Hope you can help.

Many thank
 
A

andyp161

Thank you - this works great.

I am also trying to make the following work, without much success - can
you help?

=IF((I5="Executive Consultant"),I5),OR(AND($A7=$A5,$I7="Executive
Consultant"),$I7)

e.g. IF I5 = "Executive Consultant" then return I5, OR if A7 = A5 AND
I7 = "Executive Consultant" return I7.

Many thanks
 
T

Toppers

Try:

=IF(I5="Executive Consultant",I5,IF(AND($A7=$A5,$I7="Executive
Consultant"),$I7,""))
 
Top