William C Johnson
asked on
How do I construct a multiple IF statement?
How do I construct a multiple if statement.
If D2="Will attend" or "Will not attend" then enter Yes, enter No
If D2="Will attend" or "Will not attend" then enter Yes, enter No
=IF(D2 = "Will Attend", "Yes", IF(D2 = "Will not attend", "No", ""))
Use the OR function to negate the need for nested IFs...
=IF(OR(D2="Will attend", D2="Will not attend"), "Yes", "No")
=IF(OR(D2="Will attend", D2="Will not attend"), "Yes", "No")
ASKER
Let me clarify.
There are 5 possibilities in D2:
Expected to attend
N/A
Will attend
Will not attend
Might attend-undecided
2 of the 5 choices (Will attend and Will not attend)
need a NO in C2 and 3 choices need a YES in C2.
Thanks, Bill
There are 5 possibilities in D2:
Expected to attend
N/A
Will attend
Will not attend
Might attend-undecided
2 of the 5 choices (Will attend and Will not attend)
need a NO in C2 and 3 choices need a YES in C2.
Thanks, Bill
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, this worked perfectly. I do not expect blanks. The list is very short and easily controlled. Thank you.
=IF(I11 = "Will Attend", "No", IF(I11 = "Will not attend", "No", "Yes"))
For this particular case you can even reduce it to
=IF(LEFT(A2)="W","Yes","No ")
=IF(LEFT(A2)="W","Yes","No