If formula

xxsalahxx

Active Member
Joined
Jun 25, 2011
Messages
316
Office Version
  1. 2007
Hello

I have a formula that I am using and I would like to add to it if its possible.
So for example if in cell A2 there is a yes or/and cell B2 is a yes then enter a yes in cell C or enter no, ive mastered that part (i think), however I would like to add to this to say if A2 or B2 has the word cancelled i would like for cell C2 to say cancelled is this possible?

=IF(OR(A2="Yes",B2="Yes"),"Yes","No")
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
How about
Excel Formula:
=if(or(a2="cancelled",b2="cancelled"),"cancelled",IF(OR(A2="Yes",B2="Yes"),"Yes","No"))
 
Upvote 0
Solution
Thats perfect thank you. :) very much appreciated.

=if(or(a2="cancelled",b2="cancelled"),"cancelled",IF(OR(A2="Yes",B2="Yes"),"Yes","No"))

If i take it one step further ...sorry ive came across another one saying unknown so if A2 or b2 says unknown can this be done?
 
Upvote 0
Just add another IF for that that in the same way I did for the cancelled
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,217
Members
449,091
Latest member
jeremy_bp001

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