Multiple If/then Statement Formula

squeakums

Well-known Member
Joined
May 15, 2007
Messages
851
Office Version
  1. 365
I need to have a field mark as "Yes" if e6 is =yes, and if not, if f6 is = yes and y6 is = direct, or if z6 = yes, or if aa6 is = yes

So, saying if e6 is yes, then yes, otherwise if f6 is yes and the fields y6, either equals direct, or z6 equals yes or aa6 equals yes. Is it possible to write this type of if/then statement in one formula? Otherwise if none of them meet the parameters, then the field is "No".

Thank you.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Re: Multiple If/then Statement Formula Help

try this out

=IF(E6="yes","yes",IF(AND(F6="yes",Y6="direct"),"yes",IF(OR(Z6="yes",AA6="yes"),"yes","no")))
 
Upvote 0
Re: Multiple If/then Statement Formula Help

Almost works how I need it, thank you for sending.

I need it to be if e8= "yes", "Yes", if not, if f8= "yes", and v8 = "direct" then yes, otherwise, if f8 = "yes" and w8 is also "yes" then "yes", or if f8 = "yes", and x8 is "yes", then yes, otherwise, "No" I tried to write below but it isn't working right. Could you please help? Thanks so much :)

=IF(E8="yes","Yes",IF(AND(F8="yes",V8="direct"),"Yes",IF(OR(F8="yes",w8="yes"),"Yes",(F8="yes",x8="yes"),"Yes","No")))
 
Upvote 0
Re: Multiple If/then Statement Formula Help

Code:
[COLOR=#333333]=IF(E8="yes","Yes",IF(AND(F8="yes",V8="direct"),"Yes",IF(OR(F8="yes",w8="yes"),"Yes",[/COLOR][COLOR=#ff0000](F8="yes",x8="yes"),"Yes","No")[/COLOR][COLOR=#333333]))[/COLOR]
You have an issue with the part in red. You are missing your IF(AND or IF(OR part before that.
 
Upvote 0
Re: Multiple If/then Statement Formula Help

Yeah like @Joe4 said above, you are missing the AND statement
Code:
=IF(E8="yes","Yes",IF(AND(F8="yes",V8="direct"),"Yes",IF(OR(F8="yes",w8="yes"),"Yes",[COLOR=#ff0000]IF(AND[/COLOR](F8="yes",X8="yes"),"Yes","No")))

I put AND according to your statement in post number 3
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top