If Then Statement

melbrod

New Member
Joined
Mar 15, 2018
Messages
3
Good morning! I am trying to create a rule that achieves the following:

If Column C says "Yes" and/or Column D says "Yes" then say "Yes" in column E.

This is what I was using but it is erroring out on me, and I am not sure what else I need to use. Thanks!

=IF(AND(C2="Yes",D2="Yes")),"Yes","No")
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the Board!

You were getting an error because your parentheses aren't balanced. You had two left ones "(" and three right ones ")".

And just to clarify:
- With AND, all conditions must be TRUE to return TRUE
- With OR, only one condition has to be TRUE to return TRUE
 
Upvote 0
I didn't even realize the lack of balance, thanks for that. I was editing formulas that I found online and I didn't catch that. Thank you again!
 
Upvote 0

Forum statistics

Threads
1,222,749
Messages
6,167,967
Members
452,158
Latest member
MattyM

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