I am trying to do write a nested if statement that does the following:
IF C19 = No, C20 = No, and C22 = Yes then C30 = No
else
IF C19 = Yes or C20 = Yes and C22 = Yes then C30 = Yes
So far I have the following (Non-working) code:
=IF(OR(AND(C19="No",C20="No",C22="Yes"), C22="Yes","Yes","No"))
Any Ideas?
Thanks.
You could do it like this to cater for
C30="Yes"not being met (ie giving"C22<>Yes")"C19 and/or C20 are invalid"YesorNo)Update: seeing Nick’s answer made me realise that you did have an Or test in your second test