Revise Formula to include a but
My current formula in one column that is working out is the below:
=IF(OR(CONTAINS("Term", [Column1]@row), [Column2]@row = 1), "Green", "Yellow")
For the next column I need a revised formula to say "if the term is in column 1 and column 2 is check BUT Column 3 is checked then it will give me a red ball"
What do I need to add to my formula?
Best Answer

Got it  then try this: =IF([Column 3]@row = 1, "Red", IF(OR(CONTAINS("Term", [Column 1]@row), [Column 2]@row = 1), "Green", "Yellow"))
Answers

Try This: =IF(AND(CONTAINS("Term", [Column 1]@row), [Column 2]@row = 1, [Column 3]@row = 1), "Red")

@Nic Larsen Add that to what I originally have?

=IF(AND(CONTAINS("Term", [Column 1]@row), [Column 2]@row = 1, [Column 3]@row = 1), "Red", IF(AND(CONTAINS("Term", [Column 1]@row), [Column 2]@row = 1), "Green", "Yellow"))

If I enter it the way you have it above my cell is blank. If I change the second AND to an OR it turns the right ones green but the ones that should be red are blank. I won't need a yellow option on this one so i revised to look like below @Nic Larsen
=IF(AND(CONTAINS("Term", [Column 1]@row), [Column 2]@row = 1, [Column 3]@row = 1), "Red", IF(OR(CONTAINS("Term", [Column 1]@row), [Column 2]@row = 1), "Green"))

Yup, forgot you had an OR statement in your original formula.

@Nic Larsen any other suggestions?

Sure  This is the current result  what else should it do?
If Column 1 contains Term or Column 2 is checked = Green
If Column 1 does not contain Term and Column 2 is unchecked = Yellow
If Column 1 contains Term or Column 2 is checked and Column 3 is checked = Red
Should it always turn Red if Column 3 is checked?

Yes, if column 3 is checked it should always turn red.

Got it  then try this: =IF([Column 3]@row = 1, "Red", IF(OR(CONTAINS("Term", [Column 1]@row), [Column 2]@row = 1), "Green", "Yellow"))

Yes, it worked! thanks
Help Article Resources
Categories
Check out the Formula Handbook template!