Link to home
Start Free TrialLog in
Avatar of William C Johnson
William C JohnsonFlag for United States of America

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
Avatar of Tj a
Tj a

=IF(D2 = "Will Attend", "Yes", IF(D2 = "Will not attend", "No", ""))
Avatar of Wayne Taylor (webtubbs)
Use the OR function to negate the need for nested IFs...

    =IF(OR(D2="Will attend", D2="Will not attend"), "Yes", "No")
Avatar of William C Johnson

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
ASKER CERTIFIED SOLUTION
Avatar of Wayne Taylor (webtubbs)
Wayne Taylor (webtubbs)
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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")